From 5ea9cee5d123e94461e073e9f84c50fded67fd2d Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 17 Mar 2017 00:04:01 +0100 Subject: [PATCH] =?UTF-8?q?nouvel=20t=C3=A2che=20Gulp:=20psotpublish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yavsc/gulpfile.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Yavsc/gulpfile.js b/Yavsc/gulpfile.js index 4cdd519f..96bbf227 100755 --- a/Yavsc/gulpfile.js +++ b/Yavsc/gulpfile.js @@ -36,8 +36,7 @@ gulp.task("clean", ["clean:js", "clean:css"]); gulp.task('watch', shell.task(['ASPNET_ENV=Development dnx-watch web --configuration=Debug'])); gulp.task('watchlua', shell.task(['ASPNET_ENV=Lua dnx-watch luatest --configuration=Debug'])); -gulp.task('build', shell.task(['dnu build --configuration=Debug'])); -gulp.task('publish', shell.task(['dnu publish'])); + gulp.task("min:css", function () { gulp.src([paths.css, "!" + paths.minCss, '!site.css']) @@ -45,6 +44,7 @@ gulp.task("min:css", function () { .pipe(rename({suffix: '.min'})) .pipe(gulp.dest('wwwroot/css')); }); + gulp.task("min:js", function () { return gulp.src([paths.js, "!" + paths.minJs, '!site.js']) .pipe(uglify()) @@ -54,5 +54,11 @@ gulp.task("min:js", function () { gulp.task("min", ["min:js", "min:css"]); +gulp.task('build', shell.task(['dnu build'])); +gulp.task('buildrelease', shell.task(['dnu build --configuration=Release'])); +gulp.task('publish', shell.task(['dnu publish'])); +gulp.task('postpublish', shell.task(['contrib/postPublish.sh'])); +gulp.task('fullpublish', [ 'buildrelease', 'publish', 'postpublish' ] ); + gulp.task("default", ["watch"]);