Skip to content

Commit

Permalink
Create npm prepublish script that builds the bundles before publish
Browse files Browse the repository at this point in the history
Build the unminified and minified client-side bundles before
publish.
  • Loading branch information
remarkablemark committed Sep 26, 2016
1 parent 6495a8e commit 22453d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"build": "NODE_ENV=development webpack index.js dist/html-to-react.js",
"build-min": "NODE_ENV=production webpack -p index.js dist/html-to-react.min.js",
"prepublish": "npm run build && npm run build-min",
"test": "mocha",
"lint": "eslint index.js \"lib/**\" \"test/**\"",
"cover": "istanbul cover _mocha -- -R spec \"test/**/*\"",
Expand Down

0 comments on commit 22453d0

Please sign in to comment.