Skip to content

Commit

Permalink
Updated to support Gulp 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oneolddev committed Feb 21, 2019
1 parent 46756c8 commit 05c256e
Show file tree
Hide file tree
Showing 3 changed files with 4,378 additions and 538 deletions.
12 changes: 7 additions & 5 deletions AllReadyApp/Web-App/AllReady/gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <binding Clean='clean' ProjectOpened='watch' />
/// <binding Clean='clean' ProjectOpened='watch' />
var gulp = require("gulp"),
rimraf = require("rimraf"),
concat = require("gulp-concat"),
Expand All @@ -23,7 +23,7 @@ gulp.task("clean", function (cb) {
rimraf(paths.concatCssDest, cb);
});

gulp.task('build:lib', function () {
gulp.task('build:lib', function (done) {
function getNPMDependencies() {
var buffer, packages, keys;
buffer = fs.readFileSync('package.json');
Expand All @@ -46,12 +46,14 @@ gulp.task('build:lib', function () {
for (var i in dependencies) {
copyNodeModule(dependencies[i]);
}
done();
});

gulp.task('build:ts', function () {
gulp.task('build:ts', function (done) {
var tsResult = tsProject.src()
.pipe(tsProject())
.js.pipe(gulp.dest(paths.webroot));
done();
});

gulp.task("build:css", function () {
Expand All @@ -61,8 +63,8 @@ gulp.task("build:css", function () {
.pipe(gulp.dest("."));
});

gulp.task("build", ["build:lib", "build:ts", "build:css"]);
gulp.task("min", ["build"]);
gulp.task("build", gulp.series("build:lib", "build:ts", "build:css"));
gulp.task("min", gulp.series("build"));

gulp.task("watch", function () {
gulp.watch([paths.css, paths.ts], ["build"]);
Expand Down
Loading

0 comments on commit 05c256e

Please sign in to comment.