Skip to content

Commit 0193de3

Browse files
committed
Enabled publishing to NPM registry
1 parent a97ef37 commit 0193de3

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
bower_components/
1+
bower_components/
2+
node_modules/

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"authors": [
2424
"Microsoft"
2525
],
26-
"license": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm",
26+
"license": "https://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm",
2727
"repository": {
2828
"type": "git",
2929
"url": "git://github.com/aspnet/jquery-ajax-unobtrusive.git"

gulpfile.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var gulp = require("gulp"),
2+
uglify = require("gulp-uglify"),
3+
rename = require('gulp-rename');
4+
5+
gulp.task("minifyJS", function () {
6+
gulp.src(["jquery-ajax-unobtrusive.js"], { base: "." })
7+
.pipe(uglify())
8+
.pipe(rename({suffix: '.min'}))
9+
.pipe(gulp.dest("."));
10+
});
11+
12+
gulp.task("default", ["minifyJS"]);

package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "jquery-ajax-unobtrusive",
3+
"version": "3.2.4",
4+
"description": "Add-on to jQuery Ajax to enable unobtrusive options in data-* attributes",
5+
"main": "jquery.unobtrusive-ajax.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/aspnet/jquery-ajax-unobtrusive"
9+
},
10+
"keywords": [
11+
"unobtrusive",
12+
"ajax",
13+
"mvc",
14+
"asp.net",
15+
"jquery"
16+
],
17+
"author": "Microsoft",
18+
"license": "https://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm",
19+
"bugs": {
20+
"url": "https://github.com/aspnet/jquery-ajax-unobtrusive/issues"
21+
},
22+
"homepage": "https://github.com/aspnet/jquery-ajax-unobtrusive",
23+
"dependencies": {
24+
"jquery": ">=1.8"
25+
},
26+
"devDependencies": {
27+
"gulp": "3.8.11",
28+
"gulp-rename": "1.2.2",
29+
"gulp-uglify": "1.2.0"
30+
}
31+
}

0 commit comments

Comments
 (0)