Commit Graph

69 Commits

Author SHA1 Message Date
Ben Newman 9da3f92853 Upgrade envify dependency to v1.0.1.
This version uses Recast for source transformation:
https://github.com/hughsk/envify/pull/4
2013-12-22 11:58:56 -05:00
Ben Newman b805eff032 Upgrade populist dependency to v0.1.6.
This reduces the time taken by `grunt populist:test` from 7s to 550ms,
which should make @spicyj especially happy.

Relevant commits from the `populist` and `ast-types` repositories:
https://github.com/benjamn/populist/commit/9863ad16c0753f714fdb83007515637511c346d6
https://github.com/benjamn/ast-types/commit/dabef2a4ac48ebdb5c76baf1fb94f4997b6484ac
2013-12-17 16:26:51 -05:00
Ben Newman f3a6775098 Upgrade recast dev dependency to v0.5.6.
Paving the way for source maps.
2013-12-17 14:50:36 -05:00
Paul O’Shannessy 153b75f186 Bump version to 0.9.0-alpha
This is trunk, which will be 0.9. We'll have to cherry-pick this whole
thing into a 0.8 branch.
2013-12-06 15:11:25 -08:00
Paul O’Shannessy a42b61fa85 Fix botched rebase 2013-12-06 15:10:57 -08:00
petehunt ef339c9cc4 Version bump, make tests work 2013-12-06 11:56:30 -08:00
petehunt 036e621467 version bump to 0.8 to get on top of react.js 2013-12-06 11:56:30 -08:00
petehunt 5466d0a063 first work: __DEV__
fix invariant

Get browserify working

remove dead code elimination step since it is not needed due to minifier

use industry standard NODE_ENV
2013-12-06 11:56:29 -08:00
Ben Alpert 1be9a9e986 Bump version of wd
wd 0.2.2 gives `TypeError: Cannot call method 'jsCondition' of undefined` since #551; 0.2.6 is the latest and works so switch to that.
2013-12-05 17:13:52 -08:00
Thomas Aylott 2b3e97b5a4 NEW grunt complexity reporting task 2013-12-05 16:27:10 -05:00
Paul O’Shannessy 2bbc42ce41 Update package devDependencies 2013-12-04 21:07:16 -08:00
Ben Newman 057c88ce52 s/jsxConfig/commonerConfig/g 2013-12-04 16:47:13 -05:00
Ben Newman 3527d9d91c Establish a convention for forcing jsx rebuilds.
Pull request #526 updated the behavior of vendor/constants.js without
changing any source files or the bin/jsx-internal script, so files that
should have been rebuilt (like utils/__tests__/ImmutableObject-test.js)
were not automatically rebuilt (unless you knew to do `grunt clean` or
`rm -rf .module-cache` manually).

This commit allows us to bump a version number when we know the transform
toolchain has been altered in a way that will not be visible to
commoner/jsx.

With this convention, if we reset to an older revision (e.g. during a git
bisect) and the appropriate cached module files are still in the
.module-cache/, they can be used without rebuilding. That's why I prefer
this approach to just deleting the .module-cache/.

Closes #104.
Closes #496.
Closes #530.
2013-12-04 16:36:59 -05:00
Paul O’Shannessy 126ef094fc Merge pull request #593 from spicyj/run-lint
Run lint on Travis in a matrix
2013-11-27 14:14:33 -08:00
Ben Alpert 2104327ba1 Run lint automatically on Travis (in a matrix) 2013-11-27 16:53:57 -05:00
Ben Alpert 0e2840abce Update commoner to 0.8.8 for Windows support
benjamn/commoner#44 fixed commoner to work on Windows when module path relativization isn't used; with this, the `jsx` binary should work properly on Windows (though `jsx-internal` still won't).

Fixes #316, fixes #391, fixes #567.
2013-11-24 16:02:01 -05:00
Thomas Aylott 4c881d8487 require coverify 2013-11-18 16:37:46 -05:00
Ben Newman f9423241d9 Merge pull request #510 from subtleGradient/subtlegradient/run-the-browser-tests-on-saucelabs
Make it easy to run the browser tests on saucelabs.
2013-11-14 10:08:51 -08:00
Ben Newman d44c07b9a7 Upgrade populist version to v0.1.5 for better error reporting. 2013-11-13 17:42:17 -05:00
Thomas Aylott 0401a0a67c NEW sauce-tunnel grunt task 2013-11-13 16:22:10 -05:00
Ben Newman 2b763fc452 Rewrite vendor/constants.js to use require("ast-types").traverse.
Most notably, this new style of transformation gives us access to
this.parent.node, which allows us to avoid replacing identifiers that are
not actually free variables, such as member expression properties.

Closes #496.
2013-11-13 15:33:10 -05:00
Andreas Svensson 595b482478 JSXTransformer now supports IE8 2013-11-08 23:04:43 +01:00
Ben Newman b3c87ea017 Merge pull request #451 from subtleGradient/subtlegradient/browser-testing
Browser testing.
2013-11-07 10:20:58 -08:00
Ben Newman c2ef6e343d Make bin/jsx --version output the React version according to package.json.
Closes #329.
2013-11-07 10:52:02 -05:00
Thomas Aylott 19a5505c50 making phantomjs version less specific 2013-11-06 17:00:25 -05:00
Thomas Aylott 2b273d8568 remove saucelabs for now 2013-11-06 15:30:51 -05:00
Thomas Aylott 0f274e5b22 new webdriver-jasmine task and config 2013-11-06 15:30:51 -05:00
Thomas Aylott 694cd6e9e8 test runner requires es5-shim 2013-11-06 15:30:50 -05:00
Thomas Aylott 6a7a15cf30 disable testling 2013-11-06 15:30:50 -05:00
Thomas Aylott 3df6942cde SauceLabs Browser testing via Travis 2013-11-06 15:30:50 -05:00
Thomas Aylott ecd847cad7 enable testling-ci browser testing 2013-11-06 15:30:49 -05:00
Thomas Aylott b867aa0410 Format test results as TAP 2013-11-06 15:30:49 -05:00
Cheng Lou d6cbc710bd remove examples/wrapup
Apparently it's no longer relevant.
2013-11-03 15:41:40 -05:00
Ben Newman d1ad4a3ff0 Bump populist version to v0.1.4.
The new version includes a fix for this IE8 issue reported by
@subtleGradient: https://github.com/benjamn/populist/issues/4

Closes #456.
2013-10-31 13:03:31 -04:00
Paul O’Shannessy 48281a17e4 bump version to 0.6.0-alpha 2013-10-15 22:39:28 -07:00
Paul O’Shannessy d8c949e4d8 Update browserify 2013-10-15 21:27:26 -07:00
JeffMo 243a2b816e bump baseline jstransform and esprima dependency versions 2013-10-15 18:54:01 -07:00
Ben Newman adda400602 Make constant propagation smarter about pruning if statements. 2013-09-18 13:33:45 -04:00
Ben Newman 658f41cb30 Simplify bin/jsx to perform just the JSX transform.
We will continue using `bin/jsx-internal`, well, internally.

Note that this version no longer respects `@providesModule`, and it
doesn't do anything special with constants like `__DEV__`, so we can no
longer get to claim that `bin/jsx` can be used to build the core.

I'm happy about this, personally, because it demonstrates the flexibility
of Commoner.
2013-09-06 16:20:25 -04:00
Paul O’Shannessy 553ed1416c Update package dependencies
Sometimes I look at https://david-dm.org/facebook/react
2013-08-27 14:46:06 -07:00
Paul O’Shannessy 6ca8d31c83 [react-tools] Add src/ to files
This is so it's possible to use the original @providesModule source
files in a toolchain that understands those.
2013-08-22 22:35:50 -07:00
JeffMo 2d048f1f34 Move to using jstransform and esprima-fb npm modules 2013-08-22 15:28:41 -07:00
Paul O’Shannessy cb00d3e66c Upgrade phantomjs to 1.9.1-4
This fixes the install and permissions issues we've been seeing with
other 1.9.1-x versions.
2013-08-13 15:37:26 -07:00
Ben Newman 983120102c Hold PhantomJS version at 1.9.0-1.
And don't attempt any chmod magic, either.
2013-08-12 17:47:31 -04:00
Paul O’Shannessy bbb4a367be Run grunt build with npm test so that we can upload all files 2013-07-22 18:16:44 -07:00
Paul O’Shannessy 52e622f1db Version bump for 0.5.0 development 2013-07-17 16:45:38 -07:00
Paul O’Shannessy a54333842f Bump version for v0.4.0 2013-07-17 11:33:31 -07:00
Ben Newman 301c571405 Upgrade Commoner and Populist to force upgrade to graceful-fs v2.0.0.
A silent upgrade from graceful-fs v1.2.2 to v1.2.3 (a dependency for both
Commoner and Populist) broke the build process, even though tests were
still passing. The 2.0.0 version fixes whatever was broken, though I won't
pretend to know exactly what the root cause was.
2013-07-16 15:42:17 -04:00
Ben Newman c6c4657f83 Use populist v0.1.2 to bundle test modules instead of browserify.
This will allow full support for mocking, dumpCache, and correct line
numbers in error messages.
2013-07-15 18:10:49 -04:00
Paul O’Shannessy 8db2ba9130 Upgrade other dependencies
Nothing groundbreaking. `semver` was likely already installed at 2.0.x
anyway (since >=) and `grunt-contrib-jshint` just gives us `jshint`
@ 2.1.3
2013-07-09 10:55:56 -07:00