From 7be9923f7acd6f326ceb5b7049a1ce4faa7f6f14 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Thu, 13 Sep 2018 12:18:12 -0700 Subject: [PATCH] Fix build process --- build.msbuild | 4 ++-- dist/jquery.unobtrusive-ajax.js | 2 +- dist/jquery.unobtrusive-ajax.min.js | 2 +- gulpfile.js | 11 +++++++---- package-lock.json | 2 +- package.json | 2 +- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/build.msbuild b/build.msbuild index 37ee4b9..8feae1b 100644 --- a/build.msbuild +++ b/build.msbuild @@ -11,7 +11,7 @@ - + - \ No newline at end of file + diff --git a/dist/jquery.unobtrusive-ajax.js b/dist/jquery.unobtrusive-ajax.js index 9b6f08c..85a9b1d 100644 --- a/dist/jquery.unobtrusive-ajax.js +++ b/dist/jquery.unobtrusive-ajax.js @@ -1,7 +1,7 @@ // Unobtrusive Ajax support library for jQuery // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -// @version v3.2.5 +// @version v3.2.6 // // Microsoft grants you the right to use these script files for the sole // purpose of either: (i) interacting through your browser with the Microsoft diff --git a/dist/jquery.unobtrusive-ajax.min.js b/dist/jquery.unobtrusive-ajax.min.js index a45e4d5..ae780ac 100644 --- a/dist/jquery.unobtrusive-ajax.min.js +++ b/dist/jquery.unobtrusive-ajax.min.js @@ -1,7 +1,7 @@ // Unobtrusive Ajax support library for jQuery // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -// @version v3.2.5 +// @version v3.2.6 // // Microsoft grants you the right to use these script files for the sole // purpose of either: (i) interacting through your browser with the Microsoft diff --git a/gulpfile.js b/gulpfile.js index b8b3121..66032b8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -5,16 +5,19 @@ var gulp = require("gulp"), lec = require('gulp-line-ending-corrector'), pkg = require('./package.json'); -gulp.task("minifyJS", function(){ +gulp.task("minifyJS", function (done) { gulp.src(["src/jquery.unobtrusive-ajax.js"]) .pipe(replace(/@version.*/, '@version v' + pkg.version)) .pipe(gulp.dest("dist")) .pipe(uglify({ preserveComments: 'license' })) - .pipe(lec({eolc: 'CRLF'})) - .pipe(rename({suffix: '.min'})) + .pipe(lec({ eolc: 'CRLF' })) + .pipe(rename({ suffix: '.min' })) .pipe(gulp.dest("dist")); + done(); }); -gulp.task("default", ["minifyJS"]); \ No newline at end of file +gulp.task('default', gulp.series('minifyJS', function (done) { + done(); +})); diff --git a/package-lock.json b/package-lock.json index 3e42f84..34128ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "jquery-ajax-unobtrusive", - "version": "3.2.5", + "version": "3.2.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7212193..5281c51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery-ajax-unobtrusive", - "version": "3.2.5", + "version": "3.2.6", "description": "Add-on to jQuery Ajax to enable unobtrusive options in data-* attributes", "main": "dist/jquery.unobtrusive-ajax.js", "repository": {