Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy Root README to dist #85

Merged
merged 10 commits into from
May 14, 2017
13 changes: 11 additions & 2 deletions generators/app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,22 @@ gulp.task('copy:manifest', function () {
});

/**
* 9. Delete /.tmp folder
* 9. Copy README.md from / to /dist
*/
gulp.task('copy:readme', function () {
return gulp.src([path.join(rootFolder, 'README.MD')])
.pipe(gulp.dest(distFolder));
});

/**
* 10. Delete /.tmp folder
*/
gulp.task('clean:tmp', function () {
return deleteFolders([tmpFolder]);
});

/**
* 10. Delete /build folder
* 11. Delete /build folder
*/
gulp.task('clean:build', function () {
return deleteFolders([buildFolder]);
Expand All @@ -170,6 +178,7 @@ gulp.task('compile', function () {
'rollup:umd',
'copy:build',
'copy:manifest',
'copy:readme',
'clean:build',
'clean:tmp',
function (err) {
Expand Down