Skip to content

Commit

Permalink
Merge pull request #280 from mikekidder/package.cleanup
Browse files Browse the repository at this point in the history
create .babelrc file and cleanup of scripts
  • Loading branch information
goatslacker committed Jun 2, 2015
2 parents a68c57d + 99b8696 commit 1e84f23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"stage": 0
}
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"jsdom": "^3.1.2",
"lunr": "^0.5.9",
"mocha": "^2.2.4",
"object-assign": "^2.0.0",
"react": "^0.13.3",
"rimraf": "^2.3.2",
"sinon": "^1.14.0"
Expand All @@ -41,22 +42,19 @@
],
"license": "MIT",
"scripts": {
"build": "npm run clean && npm run build-alt && npm run build-utils && npm run build-alt-browser && npm run build-alt-browser-with-addons",
"build-alt": "babel src/alt --out-dir lib --stage 0",
"build-utils": "babel src/utils --out-dir utils --stage 0",
"build": "npm run clean && npm run transpile && npm run build-alt-browser && npm run build-alt-browser-with-addons",
"build-alt": "babel src/alt --out-dir lib",
"build-alt-browser": "browserify src/alt -t [envify --NODE_ENV production ] -t babelify --outfile dist/alt.js --standalone Alt",
"build-alt-browser-with-addons": "browserify src/alt/addons.js -t [envify --NODE_ENV production ] -t babelify -t browserify-shim --outfile dist/alt-with-addons.js --standalone Alt",
"build-test": "babel src/alt --out-dir lib -r --stage 0 && babel src/utils --out-dir utils -r --stage 0",
"coverage": "npm run build-test && istanbul cover node_modules/mocha/bin/_mocha -- -u exports -R tap --require ./test/babel test",
"transpile": "babel src/alt --out-dir lib && babel src/utils --out-dir utils",
"coverage": "npm run transpile && istanbul cover node_modules/mocha/bin/_mocha -- -u exports -R tap --require ./test/babel test",
"clean": "rimraf lib && rimraf utils",
"lint": "eslint src components",
"posttest": "npm run build-alt",
"prepublish": "npm run lint && npm run test && npm run build",
"pretest": "npm run clean && npm run build-test",
"size": "npm run build-alt; browserify flux.js > flux-build.js; uglifyjs -m -c 'comparisons=false,keep_fargs=true,unsafe=true,unsafe_comps=true,warnings=false' flux-build.js > flux-build.min.js",
"test": "npm run tests-node",
"pretest": "npm run clean && npm run transpile",
"test": "npm run test-node",
"test-browser": "browserify test/browser/index.js -t babelify --outfile test/browser/tests.js",
"tests-node": "mocha -u exports -R nyan --require ./test/babel test"
"test-node": "mocha -u exports -R nyan --require ./test/babel test"
},
"browserify-shim": {
"react": "global:React",
Expand Down

0 comments on commit 1e84f23

Please sign in to comment.