Merge pull request #3869 from zpao/jsx-cleanup

JSX -> Babel cleanup
This commit is contained in:
Paul O’Shannessy
2015-05-13 15:31:48 -07:00
7 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
// vim: set ft=javascript :
"use strict";
var babel = require('babel-core');
var babel = require('babel');
var constants = require('../vendor/constants')(babel);
+2 -2
View File
@@ -4,12 +4,12 @@ require('yaml')
desc "generate js from jsx"
task :js do
system "../bin/jsx --harmony _js js"
system "../node_modules/.bin/babel _js --out-dir=js"
end
desc "watch js"
task :watch do
Process.spawn "../bin/jsx --watch --harmony _js js"
Process.spawn "../node_modules/.bin/babel _js --out-dir=js --watch"
Process.waitall
end
+1 -1
View File
@@ -1,6 +1,6 @@
'use strict';
var babel = require('babel-core');
var babel = require('babel');
var coffee = require('coffee-script');
var tsPreprocessor = require('./ts-preprocessor');
+2 -3
View File
@@ -29,7 +29,7 @@
"jstransform": "^11.0.0"
},
"devDependencies": {
"babel-core": "^5.2.7",
"babel": "^5.3.3",
"benchmark": "~1.0.0",
"browserify": "^9.0.3",
"bundle-collapser": "^1.1.1",
@@ -91,8 +91,7 @@
"/.module-cache/"
],
"testPathDirs": [
"<rootDir>/src",
"<rootDir>/vendor/fbtransform"
"<rootDir>/src"
],
"unmockedModulePathPatterns": [
""