Skip to content

Commit

Permalink
fix: issue with gulp watch and static files
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed May 24, 2018
1 parent 879bce2 commit dc9cd9f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const tsSources = "src/**/*.ts"
const testTsSources = "test/**/*.ts"
const pegjsSources = "src/*.pegjs"

const staticFiles = ["package.json", "package-lock.json", "static/**", ".snyk"]
const staticFiles = ["package.json", "package-lock.json", "static/**/*", ".snyk"]

let destDir = "build"

Expand Down Expand Up @@ -200,6 +200,8 @@ gulp.task("lint", gulp.parallel("check-licenses", "tslint", "tslint-tests", "tsf
gulp.task("build", gulp.series(gulp.parallel("pegjs", "static", "tsc"), "add-version-files"))
gulp.task("dist", gulp.series((done) => { setDestDir("dist"); done() }, "lint", "build"))
gulp.task("test", gulp.parallel("build", "lint", "mocha"))
gulp.task("watch",
gulp.parallel("pegjs-watch", "static-watch", "tsc-watch", "tsfmt-watch", "tslint-watch"))
gulp.task("watch", gulp.series(
"build",
gulp.parallel("pegjs-watch", "static-watch", "tsc-watch", "tsfmt-watch", "tslint-watch")),
)
gulp.task("default", gulp.series("watch"))

0 comments on commit dc9cd9f

Please sign in to comment.