Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 2b55759

Browse files
committed
Add scripts for publishing
1 parent 65a76bc commit 2b55759

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@
1212
"start": "webpack-dev-server --hot --inline --port 3000 --config webpack.config.dev.js --content-base demo/",
1313
"build": "babel src -d lib --copy-files",
1414
"clean": "rimraf dist",
15+
"clean-build": "rimraf lib",
1516
"clean-umd": "rimraf umd",
1617
"copy-assets": "cp -a demo/assets/. dist/assets",
1718
"copy-html-css": "cp -a demo/index.html dist/index.html && cp -a demo/index.css dist/index.css",
1819
"dist": "npm run clean && webpack && npm run copy-assets && npm run copy-html-css",
19-
"lint": "eslint src demo --fix",
20-
"umd": "npm run clean-umd && webpack --config webpack.config.umd.js"
20+
"lint": "eslint src demo",
21+
"lint-fix": "eslint src demo --fix",
22+
"umd": "npm run clean-umd && webpack --config webpack.config.umd.js",
23+
"preversion": "npm run lint",
24+
"version": "npm run clean-build && npm run build && npm run umd"
2125
},
2226
"author": "Ken Wheeler",
2327
"license": "MIT",

0 commit comments

Comments
 (0)