Skip to content

Commit d3d0ea0

Browse files
committed
Merge branch 'browserify'
* browserify: set browser-focused entrypoint configure coffeeify transform via package.json npm script to check require hierarchy of browserify bundle initial browserify build
2 parents 14eec14 + 088c85b commit d3d0ea0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: package.json

+11
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,33 @@
88
"email": "[email protected]",
99
"url": "http://testdouble.com"
1010
},
11+
"main": "index.js",
12+
"browser": "lib/testdouble.coffee",
1113
"config": {
14+
"build_file": "dist/testdouble.js",
1215
"mocha_reporter": "spec"
1316
},
1417
"scripts": {
1518
"start": "testem",
1619
"test": "mocha -u mocha-gwt -R $npm_package_config_mocha_reporter --compilers coffee:coffee-script --recursive test/helper.coffee test/",
1720
"test:debug": "npm test -- --debug-brk",
21+
"build": "browserify . --extension=.coffee -o $npm_package_config_build_file",
22+
"audit:disc": "npm run build -- --full-paths && discify $npm_package_config_build_file --open",
1823
"preversion": "git pull --rebase && npm test",
1924
"postversion": "git push && git push --tags && npm publish"
2025
},
26+
"browserify": {
27+
"transform": [ "coffeeify" ]
28+
},
2129
"dependencies": {
2230
"coffee-script": "^1.10.0",
2331
"lodash": "^3.10.1"
2432
},
2533
"devDependencies": {
34+
"browserify": "^11.0.1",
2635
"chai": "^3.2.0",
36+
"coffeeify": "^1.1.0",
37+
"disc": "^1.3.2",
2738
"mocha": "^2.3.1",
2839
"mocha-gwt": "^0.2.0",
2940
"testem": "^0.9.4"

0 commit comments

Comments
 (0)