mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-23 15:01:14 +02:00
fix gulp tasks
This commit is contained in:
@@ -226,7 +226,7 @@ gulp.task('buildDistFolder', function (cb) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('cleanup', function () {
|
gulp.task('cleanup', function () {
|
||||||
return child_process.exec('rm -rf build');
|
return child_process.exec('rm -rf build dist create');
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('start-preview-server', function () {
|
gulp.task('start-preview-server', function () {
|
||||||
@@ -237,6 +237,7 @@ gulp.task('start-preview-server', function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO: fix tasks. eg. buildWebsite isn't needed anymore
|
||||||
exports.release = series(
|
exports.release = series(
|
||||||
parallel('runWebpack', 'buildWebsite'),
|
parallel('runWebpack', 'buildWebsite'),
|
||||||
'copyFiles',
|
'copyFiles',
|
||||||
@@ -284,7 +285,8 @@ const buildExtension = series(
|
|||||||
'copyFiles',
|
'copyFiles',
|
||||||
'fixIndex',
|
'fixIndex',
|
||||||
'useRef',
|
'useRef',
|
||||||
'packageExtension'
|
'packageExtension',
|
||||||
|
'cleanup'
|
||||||
);
|
);
|
||||||
|
|
||||||
function runWatcher(cb) {
|
function runWatcher(cb) {
|
||||||
|
Reference in New Issue
Block a user