Skip to content

Commit 7be9923

Browse files
Fix build process
1 parent 5d25d01 commit 7be9923

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

build.msbuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ReadLinesFromFile>
1212
<Exec Command="npm install" />
1313
<Exec Command="npm version --no-git-tag-version --allow-same-version $(PackageVersion)" />
14-
<Exec Command="gulp" />
14+
<Exec Command="npx gulp" />
1515
<Exec Command="nuget pack $(NuspecPath) -Version $(PackageVersion)" />
1616
</Target>
17-
</Project>
17+
</Project>

dist/jquery.unobtrusive-ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Unobtrusive Ajax support library for jQuery
22
// Copyright (c) .NET Foundation. All rights reserved.
33
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
4-
// @version v3.2.5
4+
// @version v3.2.6
55
//
66
// Microsoft grants you the right to use these script files for the sole
77
// purpose of either: (i) interacting through your browser with the Microsoft

dist/jquery.unobtrusive-ajax.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@ var gulp = require("gulp"),
55
lec = require('gulp-line-ending-corrector'),
66
pkg = require('./package.json');
77

8-
gulp.task("minifyJS", function(){
8+
gulp.task("minifyJS", function (done) {
99
gulp.src(["src/jquery.unobtrusive-ajax.js"])
1010
.pipe(replace(/@version.*/, '@version v' + pkg.version))
1111
.pipe(gulp.dest("dist"))
1212
.pipe(uglify({
1313
preserveComments: 'license'
1414
}))
15-
.pipe(lec({eolc: 'CRLF'}))
16-
.pipe(rename({suffix: '.min'}))
15+
.pipe(lec({ eolc: 'CRLF' }))
16+
.pipe(rename({ suffix: '.min' }))
1717
.pipe(gulp.dest("dist"));
18+
done();
1819
});
1920

20-
gulp.task("default", ["minifyJS"]);
21+
gulp.task('default', gulp.series('minifyJS', function (done) {
22+
done();
23+
}));

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-ajax-unobtrusive",
3-
"version": "3.2.5",
3+
"version": "3.2.6",
44
"description": "Add-on to jQuery Ajax to enable unobtrusive options in data-* attributes",
55
"main": "dist/jquery.unobtrusive-ajax.js",
66
"repository": {

0 commit comments

Comments
 (0)