Initial commit
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
const gulp = require('gulp');
|
||||
const mkdirp = require('mkdirp');
|
||||
const del = require('del');
|
||||
const path = require('path');
|
||||
const buildTasks = path.join(process.cwd(), 'build-tasks');
|
||||
|
||||
gulp.task('clean-dist', () => del('dist'));
|
||||
//gulp.task('compile-vendor-js', require(path.join(buildTasks, 'compile-vendor-js')));
|
||||
gulp.task('compile-js', require(path.join(buildTasks, 'compile-js')));
|
||||
gulp.task('watcher', require(path.join(buildTasks, 'watcher')));
|
||||
|
||||
gulp.task('build', ['clean-dist'], () => {
|
||||
mkdirp.sync('dist');
|
||||
gulp.start('compile-js');
|
||||
});
|
||||
|
||||
gulp.task('watch', ['build', 'watcher']);
|
||||
gulp.task('default', ['build']);
|
||||
Reference in New Issue
Block a user