Skip to content

Commit

Permalink
Move to using jstransform and esprima-fb npm modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmo committed Aug 22, 2013
1 parent 2c8f907 commit 2d048f1
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 1,086 deletions.
2 changes: 1 addition & 1 deletion bin/jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"use strict";

var visitors = require('../vendor/fbtransform/visitors').transformVisitors;
var transform = require('../vendor/fbtransform/lib/transform').transform;
var transform = require('jstransform').transform;
var propagate = require("../vendor/constants").propagate;

require("commoner").resolve(function(id) {
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var React = require('./build/modules/React');
var visitors = require('./vendor/fbtransform/visitors').transformVisitors;
var transform = require('./vendor/fbtransform/lib/transform').transform;
var transform = require('jstransform').transform;

module.exports = {
React: React,
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@
"test": "grunt build && grunt test"
},
"dependencies": {
"base62": "~0.1.1",
"commoner": "~0.8.4",
"esprima": "https://github.com/facebook/esprima/tarball/a3e0ea3979eb8d54d8bfade220c272903f928b1e",
"recast": "~0.4.8",
"source-map": "~0.1.22"
"esprima-fb": "1001.1001.1000-dev-harmony-fb",
"jstransform": "~1.0.0",
"recast": "~0.4.8"
},
"devDependencies": {
"browserify": "~2.24.1",
Expand Down
4 changes: 2 additions & 2 deletions vendor/browser-transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
var runScripts;
var headEl;

var transform = require('./fbtransform/lib/transform').transform;
var transform = require('jstransform').transform;
var visitors = require('./fbtransform/visitors').transformVisitors;
var transform = transform.bind(null, visitors.react);
var docblock = require('./fbtransform/lib/docblock');
var docblock = require('jstransform/src/docblock');


exports.transform = transform;
Expand Down
86 changes: 0 additions & 86 deletions vendor/fbtransform/lib/docblock.js

This file was deleted.

141 changes: 0 additions & 141 deletions vendor/fbtransform/lib/transform.js

This file was deleted.

Loading

0 comments on commit 2d048f1

Please sign in to comment.