Skip to content

Commit 851b791

Browse files
committed
Move bower build to build/global
1 parent abb8d9b commit 851b791

File tree

8 files changed

+11
-12
lines changed

8 files changed

+11
-12
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
examples/**/*-bundle.js
22
node_modules
3-
npm
43
npm-debug.log

bower.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "react-router",
33
"version": "0.12.0",
4+
"description": "A complete routing library for React.js",
5+
"main": "build/global/ReactRouter.js",
46
"homepage": "https://github.com/rackt/react-router",
57
"authors": [
68
"Ryan Florence",
79
"Michael Jackson"
810
],
9-
"description": "A complete routing library for React.js",
10-
"main": "dist/react-router.js",
1111
"keywords": [
1212
"react",
1313
"router"
@@ -26,4 +26,4 @@
2626
"package.json",
2727
"webpack.config.js"
2828
]
29-
}
29+
}
File renamed without changes.
File renamed without changes.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"example": "examples"
1414
},
1515
"scripts": {
16-
"build": "NODE_ENV=production webpack modules/index.js dist/react-router.js",
17-
"build-min": "NODE_ENV=production COMPRESS=1 webpack modules/index.js dist/react-router.min.js",
16+
"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\"",
1817
"build-npm": "babel -d npm/lib ./modules && cp README.md npm && node -p \"p=require('./package');p.main='lib/index.js';p.scripts=undefined;JSON.stringify(p,null,2)\" > npm/package.json",
1918
"examples": "webpack-dev-server --config examples/webpack.config.js --no-info --content-base examples",
2019
"prepublish": "npm run build-npm",

scripts/build.sh

-5
This file was deleted.

scripts/release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
scripts/build.sh
2+
npm run build-global
33
node_modules/.bin/release

webpack.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ module.exports = {
3434
}
3535
],
3636

37+
module: {
38+
loaders: [
39+
{ test: /\.js$/, loader: 'jsx-loader?harmony' }
40+
]
41+
},
42+
3743
node: {
3844
Buffer: false
3945
},

0 commit comments

Comments
 (0)