Fix build process
This commit is contained in:
Родитель
5d25d01163
Коммит
7be9923f7a
|
@ -11,7 +11,7 @@
|
|||
</ReadLinesFromFile>
|
||||
<Exec Command="npm install" />
|
||||
<Exec Command="npm version --no-git-tag-version --allow-same-version $(PackageVersion)" />
|
||||
<Exec Command="gulp" />
|
||||
<Exec Command="npx gulp" />
|
||||
<Exec Command="nuget pack $(NuspecPath) -Version $(PackageVersion)" />
|
||||
</Target>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
11
gulpfile.js
11
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"]);
|
||||
gulp.task('default', gulp.series('minifyJS', function (done) {
|
||||
done();
|
||||
}));
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "jquery-ajax-unobtrusive",
|
||||
"version": "3.2.5",
|
||||
"version": "3.2.6",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче