@samitouri / QOS-React-2 / commits / 76d016c6f1

Use Babel to transform JS in docs, update other calls

Paul O’Shannessy committed May 13, 2015 at 11:08 UTC 76d016c6f1c7d0ba394b15ba3d99b25606ac3b91
4 files changed +5 -5
bin/jsx-internal
+1 -1
@@ -3,7 +3,7 @@
3 // vim: set ft=javascript :
4 "use strict";
5
6 -var babel = require('babel-core');
6 +var babel = require('babel');
7
8 var constants = require('../vendor/constants')(babel);
9
docs/Rakefile
+2 -2
@@ -4,12 +4,12 @@ require('yaml')
4
5 desc "generate js from jsx"
6 task :js do
7 - system "../bin/jsx --harmony _js js"
7 + system "../node_modules/.bin/babel _js --out-dir=js"
8 end
9
10 desc "watch js"
11 task :watch do
12 - Process.spawn "../bin/jsx --watch --harmony _js js"
12 + Process.spawn "../node_modules/.bin/babel _js --out-dir=js --watch"
13 Process.waitall
14 end
15
jest/preprocessor.js
+1 -1
@@ -1,6 +1,6 @@
1 'use strict';
2
3 -var babel = require('babel-core');
3 +var babel = require('babel');
4 var coffee = require('coffee-script');
5
6 var tsPreprocessor = require('./ts-preprocessor');
package.json
+1 -1
@@ -29,7 +29,7 @@
29 "jstransform": "^11.0.0"
30 },
31 "devDependencies": {
32 - "babel-core": "^5.2.7",
32 + "babel": "^5.3.3",
33 "benchmark": "~1.0.0",
34 "browserify": "^9.0.3",
35 "bundle-collapser": "^1.1.1",