Skip to content

Commit f5cc73f

Browse files
committed
Merge pull request #19 from mikekidder/npm.tasks
change to npm tasks; sync packages with redux
2 parents 6c66830 + 389eaf4 commit f5cc73f

File tree

12 files changed

+48
-63
lines changed

12 files changed

+48
-63
lines changed

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
"description": "Redux bindings for React",
55
"main": "./lib/index.js",
66
"scripts": {
7-
"browser": "scripts/browser",
8-
"build": "scripts/build",
9-
"clean": "scripts/clean",
10-
"lint": "scripts/lint",
11-
"prepublish": "scripts/prepublish",
12-
"test": "scripts/test",
13-
"test:watch": "scripts/test-watch",
14-
"test:cov": "scripts/test-cov"
7+
"build:lib": "babel src --out-dir lib",
8+
"build:umd": "webpack src/index.js dist/react-redux.js --config webpack.config.development.js",
9+
"build:umd:min": "webpack src/index.js dist/react-redux.min.js --config webpack.config.production.js",
10+
"build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
11+
"clean": "rimraf lib dist coverage",
12+
"lint": "eslint src test",
13+
"prepublish": "npm run clean && npm run build",
14+
"test": "mocha --compilers js:babel/register --recursive",
15+
"test:watch": "npm test -- --watch",
16+
"test:cov": "babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive"
1517
},
1618
"repository": {
1719
"type": "git",
@@ -36,14 +38,15 @@
3638
"homepage": "https://github.com/gaearon/react-redux",
3739
"devDependencies": {
3840
"babel": "^5.5.8",
39-
"babel-core": "5.6.15",
41+
"babel-core": "5.6.18",
4042
"babel-eslint": "^3.1.15",
4143
"babel-loader": "^5.1.4",
4244
"eslint": "^0.23",
4345
"eslint-config-airbnb": "0.0.6",
4446
"eslint-plugin-react": "^2.3.0",
45-
"expect": "^1.6.0",
46-
"istanbul": "^0.3.15",
47+
"expect": "^1.8.0",
48+
"isparta": "^3.0.3",
49+
"istanbul": "^0.3.17",
4750
"jsdom": "~5.4.3",
4851
"mocha": "^2.2.5",
4952
"mocha-jsdom": "~0.4.0",

scripts/browser

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/build

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/clean

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/lint

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/prepublish

Lines changed: 0 additions & 6 deletions
This file was deleted.

scripts/test

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/test-cov

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/test-watch

Lines changed: 0 additions & 3 deletions
This file was deleted.

webpack.config.js renamed to webpack.config.base.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,6 @@
22

33
var webpack = require('webpack');
44

5-
var plugins = [
6-
new webpack.DefinePlugin({
7-
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
8-
}),
9-
new webpack.optimize.OccurenceOrderPlugin()
10-
];
11-
12-
if (process.env.NODE_ENV === 'production') {
13-
plugins.push(
14-
new webpack.optimize.UglifyJsPlugin({
15-
compressor: {
16-
screw_ie8: true,
17-
warnings: false
18-
}
19-
})
20-
);
21-
}
22-
235
var reactExternal = {
246
root: 'React',
257
commonjs2: 'react',
@@ -49,7 +31,6 @@ module.exports = {
4931
library: 'ReactRedux',
5032
libraryTarget: 'umd'
5133
},
52-
plugins: plugins,
5334
resolve: {
5435
extensions: ['', '.js']
5536
}

0 commit comments

Comments
 (0)