|
20 | 20 | "options": { |
21 | 21 | "mocha": "--require resources/mocha-bootload src/**/__tests__/**/*.js" |
22 | 22 | }, |
| 23 | + "babel": { |
| 24 | + "plugins": [ |
| 25 | + "transform-async-to-generator", |
| 26 | + "transform-class-properties", |
| 27 | + "transform-flow-strip-types", |
| 28 | + "transform-es2015-template-literals", |
| 29 | + "transform-es2015-literals", |
| 30 | + "transform-es2015-function-name", |
| 31 | + "transform-es2015-arrow-functions", |
| 32 | + [ |
| 33 | + "transform-es2015-classes", |
| 34 | + { |
| 35 | + "loose": true |
| 36 | + } |
| 37 | + ], |
| 38 | + "transform-es2015-shorthand-properties", |
| 39 | + [ |
| 40 | + "transform-es2015-spread", |
| 41 | + { |
| 42 | + "loose": true |
| 43 | + } |
| 44 | + ], |
| 45 | + "transform-es2015-parameters", |
| 46 | + [ |
| 47 | + "transform-es2015-destructuring", |
| 48 | + { |
| 49 | + "loose": true |
| 50 | + } |
| 51 | + ], |
| 52 | + "add-module-exports", |
| 53 | + "transform-es2015-block-scoping", |
| 54 | + [ |
| 55 | + "transform-es2015-modules-commonjs", |
| 56 | + { |
| 57 | + "loose": true |
| 58 | + } |
| 59 | + ] |
| 60 | + ] |
| 61 | + }, |
23 | 62 | "scripts": { |
24 | 63 | "test": "npm run lint && npm run check && npm run testonly", |
25 | | - "testonly": "mocha $npm_package_options_mocha", |
| 64 | + "testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha", |
26 | 65 | "lint": "eslint src", |
27 | 66 | "check": "flow check", |
28 | 67 | "build": "babel src --ignore __tests__ --out-dir dist/ ; cp src/index.js dist/index.js.flow ; cp src/index.d.ts dist/", |
29 | | - "watch": "babel --optional runtime resources/watch.js | node", |
30 | | - "cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha", |
31 | | - "cover:lcov": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha", |
| 68 | + "watch": "babel resources/watch.js | node", |
| 69 | + "cover": "babel-node node_modules/.bin/isparta cover --root src --report html _mocha -- $npm_package_options_mocha", |
| 70 | + "cover:lcov": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly _mocha -- $npm_package_options_mocha", |
32 | 71 | "preversion": ". ./resources/checkgit.sh && npm test", |
33 | 72 | "prepublish": ". ./resources/prepublish.sh" |
34 | 73 | }, |
|
41 | 80 | "PATENTS" |
42 | 81 | ], |
43 | 82 | "devDependencies": { |
44 | | - "babel": "5.8.21", |
45 | | - "babel-runtime": "^5.8.x", |
46 | | - "babel-core": "5.8.22", |
47 | | - "babel-eslint": "4.1.8", |
| 83 | + "babel-cli": "6.14.0", |
| 84 | + "babel-eslint": "6.1.2", |
| 85 | + "babel-plugin-add-module-exports": "0.2.1", |
| 86 | + "babel-plugin-transform-async-to-generator": "6.8.0", |
| 87 | + "babel-plugin-transform-class-properties": "6.11.5", |
| 88 | + "babel-plugin-transform-es2015-arrow-functions": "6.8.0", |
| 89 | + "babel-plugin-transform-es2015-block-scoping": "6.15.0", |
| 90 | + "babel-plugin-transform-es2015-classes": "6.14.0", |
| 91 | + "babel-plugin-transform-es2015-destructuring": "6.9.0", |
| 92 | + "babel-plugin-transform-es2015-function-name": "6.9.0", |
| 93 | + "babel-plugin-transform-es2015-literals": "6.8.0", |
| 94 | + "babel-plugin-transform-es2015-modules-commonjs": "6.14.0", |
| 95 | + "babel-plugin-transform-es2015-parameters": "6.11.4", |
| 96 | + "babel-plugin-transform-es2015-shorthand-properties": "6.8.0", |
| 97 | + "babel-plugin-transform-es2015-spread": "6.8.0", |
| 98 | + "babel-plugin-transform-es2015-template-literals": "6.8.0", |
| 99 | + "babel-plugin-transform-flow-strip-types": "6.14.0", |
48 | 100 | "chai": "3.5.0", |
49 | 101 | "coveralls": "2.11.14", |
50 | | - "eslint": "1.10.3", |
51 | | - "eslint-plugin-babel": "2.2.0", |
| 102 | + "eslint": "3.5.0", |
| 103 | + "eslint-plugin-babel": "3.3.0", |
52 | 104 | "flow-bin": "0.32.0", |
53 | | - "isparta": "3.0.3", |
| 105 | + "isparta": "4.0.0", |
54 | 106 | "mocha": "3.0.2", |
55 | 107 | "sane": "1.4.1" |
56 | 108 | }, |
|
0 commit comments