Permalink
Browse files

Add babel6 resources and make minor code tweak

  • Loading branch information...
1 parent d303e3f commit a53a80be07d2c0dda41ddd1572b4527e321a42c1 @craigbilner craigbilner committed with leebyron Nov 29, 2015
Showing with 20 additions and 21 deletions.
  1. +11 −0 .babelrc
  2. +9 −17 package.json
  3. +0 −4 resources/mocha-bootload.js
View
@@ -0,0 +1,11 @@
+{
+ "presets": [
+ "es2015",
+ "react"
+ ],
+ "plugins": [
+ "syntax-async-functions",
+ "transform-class-properties",
+ "transform-object-rest-spread"
+ ]
+}
View
@@ -24,19 +24,6 @@
"README.md",
"LICENSE"
],
- "babel": {
- "optional": [
- "es7.classProperties"
- ],
- "loose": [
- "es6.classes",
- "es6.destructuring",
- "es6.modules",
- "es6.properties.computed",
- "es6.spread",
- "es6.templateLiterals"
- ]
- },
"browserify-shim": {
"react": "global:React",
"react-dom": "global:ReactDOM"
@@ -46,7 +33,7 @@
},
"scripts": {
"test": "npm run lint && npm run check && npm run testonly",
- "testonly": "mocha $npm_package_options_mocha",
+ "testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha",
"lint": "eslint src",
"check": "flow check",
"build": ". ./resources/build.sh",
@@ -64,14 +51,19 @@
"react-dom": "^0.14.0 || ^15.0.0-rc"
},
"devDependencies": {
- "babel": "5.8.23",
- "babel-core": "5.8.25",
- "babel-eslint": "4.1.8",
+ "babel-cli": "6.6.5",
+ "babel-eslint": "6.0.0-beta.5",
+ "babel-plugin-syntax-async-functions": "6.5.0",
+ "babel-plugin-transform-class-properties": "^6.6.0",
+ "babel-plugin-transform-object-rest-spread": "6.6.5",
+ "babel-preset-es2015": "6.6.0",
+ "babel-preset-react": "6.5.0",
"browserify": "13.0.0",
"browserify-shim": "3.8.12",
"chai": "3.5.0",
"chai-subset": "1.2.0",
"eslint": "1.10.3",
+ "eslint-plugin-babel": "3.1.0",
"eslint-plugin-react": "3.16.1",
"flow-bin": "0.21.0",
"graphql": "0.4.18",
@@ -8,10 +8,6 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
-require('babel/register')({
- optional: [ 'es7.asyncFunctions' ]
-});
-
var jsdom = require('jsdom');
// setup the simplest document possible

0 comments on commit a53a80b

Please sign in to comment.