Skip to content

Commit

Permalink
! Fix gulp task async issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed May 29, 2017
1 parent 0b4c954 commit 7b1ada4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
20 changes: 12 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"use strict";

const gulp = require("gulp");
const gulpsync = require("gulp-sync")(gulp);
const del = require("del");
const babel = require("gulp-babel");
const zip = require("gulp-zip");
Expand Down Expand Up @@ -58,9 +59,6 @@ gulp.task("build:src:css", function() {

gulp.task(
"build:src:static_files",
[
"clean:build",
],
function() {
return gulp.src([
"./src/**/*",
Expand Down Expand Up @@ -104,8 +102,14 @@ gulp.task(
);

// a single command for each piece
gulp.task("build:src", [
"build:src:static_files",
"build:src:js",
"build:src:css",
]);
gulp.task(
"build:src",
gulpsync.sync([
"clean:build",
[
"build:src:static_files",
"build:src:js",
"build:src:css",
],
])
);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"gulp-babel": "^6.1.2",
"gulp-cli": "^1.2.2",
"gulp-zip": "^4.0.0",
"gulp-sync": "0.x.x",
"mz": "^2.6.0",
"stylelint": "^7.7.1"
}
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,10 @@ gulp-cli@^1.2.2:
wreck "^6.3.0"
yargs "^3.28.0"

gulp-sync@0.x.x:
version "0.1.4"
resolved "https://registry.yarnpkg.com/gulp-sync/-/gulp-sync-0.1.4.tgz#22eb9528f95737d4715c01272180a08f24133db5"

gulp-util@^3.0.0:
version "3.0.8"
resolved "https://registry.yarnpkg.com/gulp-util/-/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f"
Expand Down

0 comments on commit 7b1ada4

Please sign in to comment.