Skip to content

Commit

Permalink
[fixed] Build generation
Browse files Browse the repository at this point in the history
Builds are now re-created from scratch.
  • Loading branch information
mjackson committed Feb 24, 2015
1 parent 0f517cf commit 5768506
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"homepage": "https://github.com/rackt/react-router/blob/latest/README.md",
"bugs": "https://github.com/rackt/react-router/issues",
"scripts": {
"build-global": "NODE_ENV=production webpack modules/index.js build/global/ReactRouter.js && NODE_ENV=production COMPRESS=1 webpack modules/index.js build/global/ReactRouter.min.js && echo \"gzipped, the global build is `gzip -c build/global/ReactRouter.min.js | wc -c` bytes\"",
"build-npm": "babel -d build/npm/lib ./modules && cp README.md build/npm && find -X build/npm/lib -type d -name __tests__ | xargs rm -rf && node -p 'p=require(\"./package\");p.main=\"lib\";p.scripts=p.devDependencies=undefined;JSON.stringify(p,null,2)' > build/npm/package.json",
"build-global": "rm -rf build/global && NODE_ENV=production webpack modules/index.js build/global/ReactRouter.js && NODE_ENV=production COMPRESS=1 webpack modules/index.js build/global/ReactRouter.min.js && echo \"gzipped, the global build is `gzip -c build/global/ReactRouter.min.js | wc -c` bytes\"",
"build-npm": "rm -rf build/npm && babel -d build/npm/lib ./modules && cp README.md build/npm && find -X build/npm/lib -type d -name __tests__ | xargs rm -rf && node -p 'p=require(\"./package\");p.main=\"lib\";p.scripts=p.devDependencies=undefined;JSON.stringify(p,null,2)' > build/npm/package.json",
"examples": "webpack-dev-server --config examples/webpack.config.js --no-info --content-base examples",
"test": "jsxhint . && karma start"
},
Expand Down
3 changes: 3 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ update_version 'bower.json' $next_version
node_modules/.bin/changelog -t $next_ref

npm run build-global
git add -A build/global

npm run build-npm
git add -A build/npm

git commit -am "Version $next_version"

Expand Down

0 comments on commit 5768506

Please sign in to comment.