Skip to content

Commit d23ee65

Browse files
committed
🏗 Remove Makefile in favor of npm scripts
1 parent f91e46a commit d23ee65

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

Makefile

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
1616
"uglify-js": "^3.5.3"
1717
},
1818
"scripts": {
19-
"preversion": "make lint",
20-
"version": "make version",
21-
"test": "make lint"
19+
"bundle": "node tasks/bundle",
20+
"dist": "npm run bundle && npm run uglify",
21+
"lint": "eslint js/ demos/ tasks/",
22+
"preversion": "npm run lint",
23+
"version": "node tasks/version && npm run dist && git add -A dist js",
24+
"test": "npm run lint",
25+
"uglify": "uglifyjs dist/zdog.dist.js -o dist/zdog.dist.min.js --mangle --comments /^!/"
2226
},
2327
"repository": {
2428
"type": "git",

0 commit comments

Comments
 (0)