Skip to content

Commit 5768506

Browse files
committed
[fixed] Build generation
Builds are now re-created from scratch.
1 parent 0f517cf commit 5768506

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"homepage": "https://github.com/rackt/react-router/blob/latest/README.md",
1111
"bugs": "https://github.com/rackt/react-router/issues",
1212
"scripts": {
13-
"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\"",
14-
"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",
13+
"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\"",
14+
"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",
1515
"examples": "webpack-dev-server --config examples/webpack.config.js --no-info --content-base examples",
1616
"test": "jsxhint . && karma start"
1717
},

Diff for: scripts/release.sh

+3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ update_version 'bower.json' $next_version
2525
node_modules/.bin/changelog -t $next_ref
2626

2727
npm run build-global
28+
git add -A build/global
29+
2830
npm run build-npm
31+
git add -A build/npm
2932

3033
git commit -am "Version $next_version"
3134

0 commit comments

Comments
 (0)