Skip to content

Commit

Permalink
fix wrong chaining of run-sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdam committed Apr 2, 2019
1 parent 5228b11 commit 4a1b612
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ gulp.task('build:clean', () => {
// Copy files to build folder
gulp.task('build:copy', () => {
return gulp.src([
`${srcFolder}/**/*`,
`!${srcFolder}/**/*.js`,
`!${srcFolder}/**/*.css`,
`!${srcFolder}/view/background.html`,
`!${srcFolder}/manifest.json`])
`${srcFolder}/**/*`,
`!${srcFolder}/**/*.js`,
`!${srcFolder}/**/*.css`,
`!${srcFolder}/view/background.html`,
`!${srcFolder}/manifest.json`
])
.pipe(gulp.dest(buildFolder));
});

Expand Down Expand Up @@ -133,7 +134,7 @@ gulp.task('pack:chromium', () => {
});

// Target platforms
gulp.task('chrome', () => {
gulp.task('chrome', (callback) => {
return runSequence(
'build:clean',
'build:copy',
Expand All @@ -144,11 +145,12 @@ gulp.task('chrome', () => {
],
[
'pack:chrome',
]
],
callback,
);
});

gulp.task('firefox', () => {
gulp.task('firefox', (callback) => {
return runSequence(
'build:clean',
'build:copy',
Expand All @@ -159,11 +161,12 @@ gulp.task('firefox', () => {
],
[
'pack:firefox',
]
],
callback,
);
});

gulp.task('chromium', () => {
gulp.task('chromium', (callback) => {
return runSequence(
'build:clean',
'build:copy',
Expand All @@ -174,11 +177,12 @@ gulp.task('chromium', () => {
],
[
'pack:chromium',
]
],
callback,
);
});

gulp.task('edge', () => {
gulp.task('edge', (callback) => {
return runSequence(
'build:clean',
'build:copy',
Expand All @@ -188,7 +192,8 @@ gulp.task('edge', () => {
'build:js',
'build:js-edge',
'build:css',
]
],
callback,
);
});

Expand Down

0 comments on commit 4a1b612

Please sign in to comment.