Skip to content

Commit 6458076

Browse files
committed
package.json scripts
1 parent 85defd2 commit 6458076

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,18 @@
1919
"homepage": "https://github.com/witoldsz/angular-http-auth",
2020
"devDependencies": {
2121
"mkdirp": "^0.5.1",
22+
"rimraf": "^2.5.4",
2223
"uglifyjs": "^2.4.10"
2324
},
2425
"scripts": {
25-
"minify": "mkdirp dist && uglifyjs src/http-auth-interceptor.js -o dist/http-auth-interceptor.min.js -c"
26+
"clean": "rimraf dist/*",
27+
28+
"prebuild": "npm run clean -s && mkdirp dist",
29+
"build": "npm run build:minify -s && npm run build:copy -s",
30+
"build:minify": "uglifyjs src/http-auth-interceptor.js -o dist/http-auth-interceptor.min.js -c",
31+
"build:copy": "cat src/http-auth-interceptor.js > dist/http-auth-interceptor.js",
32+
33+
"version": "npm run build && git add -A dist",
34+
"postversion": "git push && git push --tags"
2635
}
2736
}

0 commit comments

Comments
 (0)