Skip to content
Snippets Groups Projects
Commit ac5c3fe6 authored by João Victor Tozatti Risso's avatar João Victor Tozatti Risso
Browse files

Separate compilation tasks from copy tasks when building the project


- Move copying required files (e.g. config.json) into the 'build' gulp task
- Leave compilation task only for compilation of sources files

Signed-off-by: default avatarJoão Victor Tozatti Risso <jvtr12@inf.ufpr.br>
parent a2d420be
Branches
No related tags found
1 merge request!116Release v1.0.0
...@@ -47,16 +47,17 @@ gulp.task('compile', ['lint'], () => { ...@@ -47,16 +47,17 @@ gulp.task('compile', ['lint'], () => {
.pipe(babel()) // compile only modified files .pipe(babel()) // compile only modified files
// .pipe(cache.cache()) // cache compiled files // .pipe(cache.cache()) // cache compiled files
.pipe(gulp.dest('build')); // move compiled files to build directory .pipe(gulp.dest('build')); // move compiled files to build directory
});
gulp.task('build', ['compile'], () => {
var filesToCopy = [ 'config.json', 'package.json' ];
// copy configuration file to build directory // copy configuration file to build directory
gulp.src('config.json') gulp.src(filesToCopy)
.pipe(gulp.dest('build')); .pipe(gulp.dest('build'));
createLogDir(); createLogDir();
}); });
gulp.task('build', ['compile']);
gulp.task('docco', () => { gulp.task('docco', () => {
gulp.src('./src/**/*.js') gulp.src('./src/**/*.js')
.pipe(docco()) .pipe(docco())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment