Skip to content

Commit 9475168

Browse files
committed
Update browserify and split up build script into browserified version and min version
1 parent 8cb59aa commit 9475168

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"unexpected-dom.min.js"
1010
],
1111
"scripts": {
12-
"build": "browserify lib/index.js --standalone unexpected.dom --debug --x jsdom > unexpected-dom.js && uglifyjs unexpected-dom.js > unexpected-dom.min.js",
12+
"build:browserify": "browserify lib/index.js --standalone unexpected.dom --debug --x jsdom > unexpected-dom.js",
13+
"build:min": "uglifyjs unexpected-dom.js > unexpected-dom.min.js",
14+
"build": "npm run build:browserify && npm run build:min",
1315
"lint": "jshint lib test --exclude-path .gitignore",
1416
"test": "npm run lint && mocha",
1517
"travis": "npm run lint && npm run coverage && npm run build",
@@ -34,7 +36,7 @@
3436
},
3537
"homepage": "https://github.com/Munter/unexpected-dom",
3638
"devDependencies": {
37-
"browserify": "^13.0.0",
39+
"browserify": "^14.3.0",
3840
"coveralls": "^2.13.1",
3941
"istanbul": "^0.4.5",
4042
"jsdom": "^11.0.0",

0 commit comments

Comments
 (0)