Skip to content

Commit e3b766c

Browse files
committedFeb 3, 2016
Merge pull request #73 from BigstickCarpet/better-browser-build
Improved the browser build
2 parents febebbd + e62a351 commit e3b766c

5 files changed

+325
-7
lines changed
 

‎dist/chai-http.js

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/chai-http.js.map

+67
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/chai-http.min.js

+166
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/chai-http.min.js.map

+67
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+18-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
"version": "2.0.0",
44
"description": "Extend Chai Assertion library with tests for http apis",
55
"author": "Jake Luer <jake@alogicalparadox.com>",
6-
"keywords": ["chai", "chai-plugin", "browser", "http", "request", "vendor", "supertest", "superagent"],
6+
"keywords": [
7+
"chai",
8+
"chai-plugin",
9+
"browser",
10+
"http",
11+
"request",
12+
"vendor",
13+
"supertest",
14+
"superagent"
15+
],
716
"contributors": [
817
"Jake Luer <jake@alogicalparadox.com>",
918
"Veselin Todorov <hi@vesln.com>",
@@ -21,10 +30,12 @@
2130
},
2231
"scripts": {
2332
"build": "npm run build:readme && npm run build:js",
24-
"prebuild:js": "mkdir -p dist",
25-
"build:js": "browserify lib/http.js --outfile dist/chai-http.js --standalone chaiHttp",
33+
"prebuild:js": "rm -rf dist",
34+
"build:js": "simplifyify lib/http.js --outfile dist/chai-http.js --bundle --minify --debug --standalone chaiHttp",
2635
"build:readme": "rm -rf README.md && node ./support/readme",
27-
"start": "npm run build && http-server -c-1",
36+
"start": "npm-run-all --parallel watch server",
37+
"watch": "npm run build:js -- --watch",
38+
"server": "http-server -o -c-1",
2839
"test": "istanbul cover --report lcovonly _mocha",
2940
"posttest": "if [ -z \"$COVERALLS_REPO_TOKEN\" ]; then cat coverage/lcov.info | coveralls; fi"
3041
},
@@ -42,14 +53,15 @@
4253
"superagent": "1.2.x"
4354
},
4455
"devDependencies": {
45-
"browserify": "*",
56+
"simplifyify": "^2.0.1",
4657
"chai": "*",
4758
"coveralls": "^2.11.6",
4859
"dox": "*",
4960
"es6-shim": "*",
5061
"http-server": "*",
5162
"istanbul": "^0.4.2",
52-
"mocha": "*"
63+
"mocha": "*",
64+
"npm-run-all": "^1.5.1"
5365
},
5466
"engines": {
5567
"node": ">= 0.6.0"

0 commit comments

Comments
 (0)
Please sign in to comment.