Skip to content

Commit

Permalink
use envify in script builds, to work in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekidder committed Mar 27, 2015
1 parent 3ffd457 commit 42d8ca4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"browserify": "^9.0.3",
"chai": "^2.1.0",
"coveralls": "^2.11.2",
"envify": "^3.4.0",
"eslint": "^0.17.1",
"iso": "^4.0.2",
"istanbul": "^0.3.5",
Expand All @@ -27,16 +28,16 @@
"url": "https://github.com/goatslacker/alt.git"
},
"scripts": {
"build": "npm run build-alt; npm run build-alt-runtime; npm run build-alt-browser; npm run build-alt-browser-with-addons",
"build": "npm run build-alt && npm run build-alt-runtime && npm run build-alt-browser && npm run build-alt-browser-with-addons",
"build-alt": "babel ./src/alt.js > dist/alt.js",
"build-alt-runtime": "babel --external-helpers src/alt.js > dist/alt-with-runtime.js",
"build-alt-browser": "NODE_ENV=production browserify src/alt.js -t babelify --outfile dist/alt-browser.js --standalone Alt",
"build-alt-browser-with-addons": "NODE_ENV=production browserify src/alt-with-addons.js -t babelify --outfile dist/alt-browser-with-addons.js --standalone Alt",
"build-alt-browser": "browserify src/alt.js -t [envify --NODE_ENV production ] -t babelify --outfile dist/alt-browser.js --standalone Alt",
"build-alt-browser-with-addons": "browserify src/alt-with-addons.js -t [envify --NODE_ENV production ] -t babelify --outfile dist/alt-browser-with-addons.js --standalone Alt",
"coverage": "istanbul cover _mocha -- -u exports -R spec --compilers js:babel/register --require babel/external-helpers test",
"lint": "eslint src mixins utils",
"prepublish": "npm run test-build",
"test": "npm run build-alt-runtime; npm run tests-all",
"test-build": "npm run build; npm run tests-all",
"test": "npm run build-alt-runtime && npm run tests-all",
"test-build": "npm run build && npm run tests-all",
"test-browser": "browserify test/browser/index.js -t babelify --outfile test/browser/tests.js",
"tests-all": "mocha -u exports -R spec --compilers js:babel/register --require babel/external-helpers test"
},
Expand Down

0 comments on commit 42d8ca4

Please sign in to comment.