From 5768506827414e74a2586c6a5215bed1eb8a5dc1 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Tue, 24 Feb 2015 13:50:09 -0800 Subject: [PATCH] [fixed] Build generation Builds are now re-created from scratch. --- package.json | 4 ++-- scripts/release.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 84a234ea11..519f7013ea 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/scripts/release.sh b/scripts/release.sh index 48da6b1e0f..577dc5b0c5 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -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"