|
6 | 6 | "jsnext:main": "es/index.js",
|
7 | 7 | "files": [
|
8 | 8 | "lib",
|
| 9 | + "es", |
9 | 10 | "src"
|
10 | 11 | ],
|
11 | 12 | "scripts": {
|
12 |
| - "build": "babel src --out-dir lib", |
13 |
| - "prepublish": "npm run test && rimraf lib && npm run build", |
14 |
| - "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", |
15 | 16 | "posttest": "npm run lint",
|
16 | 17 | "lint": "eslint src test",
|
17 |
| - "build": "npm run build:commonjs && npm run build:umd && npm run build:umd:min && npm run build:es", |
18 |
| - "build:commonjs": "babel src --out-dir lib", |
19 |
| - "build:es": "BABEL_ENV=es babel src --out-dir es", |
20 |
| - "build:umd": "NODE_ENV=development webpack", |
21 |
| - "build:umd:min": "NODE_ENV=production webpack" |
| 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" |
22 | 23 | },
|
23 | 24 | "repository": {
|
24 | 25 | "type": "git",
|
|
35 | 36 | "author": "Dan Abramov <dan.abramov@me.com>",
|
36 | 37 | "license": "MIT",
|
37 | 38 | "devDependencies": {
|
38 |
| - "babel": "^6.1.18", |
39 |
| - "babel-cli": "^6.2.0", |
40 |
| - "babel-core": "^6.2.1", |
| 39 | + "babel-cli": "^6.6.5", |
| 40 | + "babel-core": "^6.6.5", |
41 | 41 | "babel-eslint": "^5.0.0-beta4",
|
42 | 42 | "babel-loader": "^6.2.4",
|
43 |
| - "babel-plugin-add-module-exports": "^0.1.1", |
44 |
| - "babel-preset-es2015": "^6.1.18", |
45 |
| - "babel-preset-stage-0": "^6.1.18", |
| 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", |
46 | 63 | "chai": "^3.2.0",
|
| 64 | + "cross-env": "^1.0.7", |
47 | 65 | "eslint": "^1.10.2",
|
48 | 66 | "eslint-config-airbnb": "1.0.2",
|
49 | 67 | "eslint-plugin-react": "^4.1.0",
|
50 | 68 | "mocha": "^2.2.5",
|
51 |
| - "rimraf": "^2.4.3", |
| 69 | + "rimraf": "^2.5.2", |
52 | 70 | "webpack": "^1.12.14"
|
53 | 71 | }
|
54 | 72 | }
|
0 commit comments