|
3 | 3 | "version": "3.2.1", |
4 | 4 | "description": "Predictable state container for JavaScript apps", |
5 | 5 | "main": "lib/index.js", |
6 | | - "jsnext:main": "src/index.js", |
| 6 | + "jsnext:main": "es/index.js", |
7 | 7 | "files": [ |
8 | 8 | "dist", |
9 | 9 | "lib", |
| 10 | + "es", |
10 | 11 | "src" |
11 | 12 | ], |
12 | 13 | "scripts": { |
13 | 14 | "clean": "rimraf lib dist coverage", |
14 | 15 | "lint": "eslint src test examples", |
15 | | - "test": "mocha --compilers js:babel-register --recursive", |
| 16 | + "test": "cross-env BABEL_ENV=commonjs mocha --compilers js:babel-register --recursive", |
16 | 17 | "test:watch": "npm test -- --watch", |
17 | | - "test:cov": "babel-node $(npm bin)/isparta cover $(npm bin)/_mocha -- --recursive", |
18 | | - "test:examples": "babel-node examples/testAll.js", |
19 | | - "check:lib": "npm run lint && npm run test", |
| 18 | + "test:cov": "cross-env BABEL_ENV=commonjs babel-node $(npm bin)/isparta cover $(npm bin)/_mocha -- --recursive", |
| 19 | + "test:examples": "cross-env BABEL_ENV=commonjs babel-node examples/testAll.js", |
| 20 | + "check:src": "npm run lint && npm run test", |
20 | 21 | "check:examples": "npm run build:examples && npm run test:examples", |
21 | | - "build:lib": "babel src --out-dir lib", |
22 | | - "build:umd": "cross-env NODE_ENV=development webpack src/index.js dist/redux.js", |
23 | | - "build:umd:min": "cross-env NODE_ENV=production webpack src/index.js dist/redux.min.js", |
24 | | - "build:examples": "babel-node examples/buildAll.js", |
25 | | - "build": "npm run build:lib && npm run build:umd && npm run build:umd:min && node ./prepublish", |
26 | | - "prepublish": "npm run clean && npm run check:lib && npm run build", |
| 22 | + "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", |
| 23 | + "build:es": "cross-env BABEL_ENV=es babel src --out-dir es", |
| 24 | + "build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack src/index.js dist/redux.js", |
| 25 | + "build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack src/index.js dist/redux.min.js", |
| 26 | + "build:examples": "cross-env BABEL_ENV=commonjs babel-node examples/buildAll.js", |
| 27 | + "build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min && node ./prepublish", |
| 28 | + "prepublish": "npm run clean && npm run check:src && npm run build", |
27 | 29 | "docs:clean": "rimraf _book", |
28 | 30 | "docs:prepare": "gitbook install", |
29 | 31 | "docs:build": "npm run docs:prepare && gitbook build -g rackt/redux", |
|
0 commit comments