Skip to content

Commit f52e07b

Browse files
Add some npm scripts for win more time!
1 parent e43ece4 commit f52e07b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,20 @@
2020
"email": "r.entringer@gmail.com"
2121
},
2222
"homepage": "https://github.com/robertoentringer/animations.js",
23-
"main": "animations.js",
23+
"main": "src/animations.js",
2424
"unpkg": "dist/animations.js",
2525
"files": [
26-
"animations.js",
27-
"dist"
26+
"src/animations.js",
27+
"dist/**/*.js"
2828
],
2929
"scripts": {
30-
"lint": "eslint --fix animations.js",
31-
"build": "parcel build animations.js --detailed-report --no-source-maps --no-cache --global animations.js"
30+
"lint": "eslint --fix src/**",
31+
"build": "parcel build src/animations.js --out-dir dist --detailed-report --no-source-maps --no-cache --global animations.js",
32+
"prepare": "npm run lint",
33+
"prepublishOnly": "npm run build",
34+
"preversion": "npm run lint",
35+
"version": "npm run lint && git add -A src",
36+
"postversion": "git push --dry-run && git push --tags --dry-run"
3237
},
3338
"bundledDependencies": [],
3439
"devDependencies": {

0 commit comments

Comments
 (0)