|
3 | 3 | "version": "1.0.3",
|
4 | 4 | "description": "Thunk middleware for Redux.",
|
5 | 5 | "main": "lib/index.js",
|
| 6 | + "jsnext:main": "es/index.js", |
6 | 7 | "files": [
|
7 | 8 | "lib",
|
| 9 | + "es", |
8 | 10 | "src"
|
9 | 11 | ],
|
10 | 12 | "scripts": {
|
11 |
| - "build": "babel src --out-dir lib", |
12 |
| - "prepublish": "npm run test && rimraf lib && npm run build", |
13 |
| - "test": "mocha --compilers js:babel-core/register --reporter spec test/*.js", |
| 13 | + "clean": "rimraf lib dist es", |
| 14 | + "build": "npm run build:commonjs && npm run build:umd && npm run build:umd:min && npm run build:es", |
| 15 | + "prepublish": "npm run clean && npm run test && npm run build", |
14 | 16 | "posttest": "npm run lint",
|
15 |
| - "lint": "eslint src test" |
| 17 | + "lint": "eslint src test", |
| 18 | + "test": "cross-env BABEL_ENV=commonjs mocha --compilers js:babel-core/register --reporter spec test/*.js", |
| 19 | + "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", |
| 20 | + "build:es": "cross-env BABEL_ENV=es babel src --out-dir es", |
| 21 | + "build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack", |
| 22 | + "build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack" |
16 | 23 | },
|
17 | 24 | "repository": {
|
18 | 25 | "type": "git",
|
|
29 | 36 | "author": "Dan Abramov <[email protected]>",
|
30 | 37 | "license": "MIT",
|
31 | 38 | "devDependencies": {
|
32 |
| - "babel": "^6.1.18", |
33 |
| - "babel-cli": "^6.2.0", |
34 |
| - "babel-core": "^6.2.1", |
| 39 | + "babel-cli": "^6.6.5", |
| 40 | + "babel-core": "^6.6.5", |
35 | 41 | "babel-eslint": "^5.0.0-beta4",
|
36 |
| - "babel-plugin-add-module-exports": "^0.1.1", |
37 |
| - "babel-preset-es2015": "^6.1.18", |
38 |
| - "babel-preset-stage-0": "^6.1.18", |
| 42 | + "babel-loader": "^6.2.4", |
| 43 | + "babel-plugin-check-es2015-constants": "^6.6.5", |
| 44 | + "babel-plugin-transform-es2015-arrow-functions": "^6.5.2", |
| 45 | + "babel-plugin-transform-es2015-block-scoped-functions": "^6.6.5", |
| 46 | + "babel-plugin-transform-es2015-block-scoping": "^6.6.5", |
| 47 | + "babel-plugin-transform-es2015-classes": "^6.6.5", |
| 48 | + "babel-plugin-transform-es2015-computed-properties": "^6.6.5", |
| 49 | + "babel-plugin-transform-es2015-destructuring": "^6.6.5", |
| 50 | + "babel-plugin-transform-es2015-for-of": "^6.6.0", |
| 51 | + "babel-plugin-transform-es2015-function-name": "^6.5.0", |
| 52 | + "babel-plugin-transform-es2015-literals": "^6.5.0", |
| 53 | + "babel-plugin-transform-es2015-modules-commonjs": "^6.6.5", |
| 54 | + "babel-plugin-transform-es2015-object-super": "^6.6.5", |
| 55 | + "babel-plugin-transform-es2015-parameters": "^6.6.5", |
| 56 | + "babel-plugin-transform-es2015-shorthand-properties": "^6.5.0", |
| 57 | + "babel-plugin-transform-es2015-spread": "^6.6.5", |
| 58 | + "babel-plugin-transform-es2015-sticky-regex": "^6.5.0", |
| 59 | + "babel-plugin-transform-es2015-template-literals": "^6.6.5", |
| 60 | + "babel-plugin-transform-es2015-unicode-regex": "^6.5.0", |
| 61 | + "babel-plugin-transform-es3-member-expression-literals": "^6.5.0", |
| 62 | + "babel-plugin-transform-es3-property-literals": "^6.5.0", |
39 | 63 | "chai": "^3.2.0",
|
| 64 | + "cross-env": "^1.0.7", |
40 | 65 | "eslint": "^1.10.2",
|
41 | 66 | "eslint-config-airbnb": "1.0.2",
|
42 | 67 | "eslint-plugin-react": "^4.1.0",
|
43 | 68 | "mocha": "^2.2.5",
|
44 |
| - "rimraf": "^2.4.3" |
| 69 | + "rimraf": "^2.5.2", |
| 70 | + "webpack": "^1.12.14" |
45 | 71 | }
|
46 | 72 | }
|
0 commit comments