petehunt
8d259093bf
Merge pull request #34 from zpao/npm-ship-modules
...
Ship CJS modules instead of browserified build
2013-05-31 15:41:59 -07:00
Paul O’Shannessy
0c6bbf275b
Ship CJS modules instead of browserified build
...
It turns out that if you try to browserify a file requiring react-tools,
it doesn't work. This is because browserify just visits the require
statements in the file and looks for files in that path.
./ReactCompositeComponent doesn't exist and that's the point that fails.
So the fix is to actually ship each of our CJS modules as individual
files like browserify expects. This should have no negative side effects
- we still only export React (though the rest of our modules are now
actually accessible, which might make it easier to do more with the
module).
The other change here is to move source-map to dependencies since it's
required in the transform code.
Test Plan:
```
$ npm pack .
$ cd /tmp
$ npm install path/to/react-tools-0.3.1.tgz
$ echo "require('react-tools')" > test.js
$ browserify test.js
```
2013-05-31 10:57:40 -07:00
petehunt
824a2e0630
Merge pull request #33 from spicyj/docs-fix
...
Update stale event docs in tutorial
2013-05-31 09:52:20 -07:00
Ben Newman
70a99cd1ee
Merge pull request #20 from benjamn/issue-12-test-install-package
...
Provide `grunt npm:test` for verifying NPM package functionality
2013-05-31 07:39:42 -07:00
Ben Newman
60a6665bbd
Provide grunt npm:test for verifying NPM package functionality.
...
This basically calls `npm pack`, installs the resulting package in a temporary directory, then requires it and attempts to use the .transform method.
Closes #12 .
2013-05-31 10:35:39 -04:00
Ben Alpert
2e5dae0c25
Add return false; to onSubmit handlers
2013-05-31 01:46:55 -07:00
Jeff Morrison
2d253fe1dc
Merge pull request #27 from seiffert/master
...
JSX Transformer / DisplayName Visitor: Multiple declarations with one `var` statement
2013-05-30 22:25:51 -07:00
petehunt
bb4788e997
Merge pull request #31 from spicyj/immutable-state
...
Change TodoMVC to not modify state in place
2013-05-30 22:19:59 -07:00
Paul Seiffert
510ced1d13
Removed duplicate object type check
2013-05-31 07:13:49 +02:00
Ben Alpert
767391c26e
Wording tweaks
2013-05-30 20:21:44 -07:00
Ben Alpert
6e805dda24
Change TodoMVC to not modify state in place
...
Instead, use .concat and make a new todos array.
Test Plan:
Added todo items successfully.
2013-05-30 20:19:19 -07:00
Ben Alpert
ea82dba555
Update stale event docs in tutorial
...
The example uses onSubmit but the docs were still referring to onKeyUp.
2013-05-30 18:24:48 -07:00
Paul O’Shannessy
b20a7c2beb
Bump docs version to v0.3.1
2013-05-30 15:06:46 -07:00
Paul O’Shannessy
de2832c0c0
Only re-write docs _config on version bumps
...
Doesn't fix, but mostly addresses the concerns in #24 . Some churn at
version bumps is far better than what we have right now.
2013-05-30 14:57:32 -07:00
Paul O’Shannessy
d40704ab85
Bump to 0.3.1
2013-05-30 14:57:32 -07:00
Timothy Yung
2cde6ff60f
Merge pull request #29 from petehunt/mixin-docs
...
[docs] Return of mixin docs
2013-05-30 14:52:43 -07:00
petehunt
f586c58f96
@yungsters
2013-05-30 14:45:22 -07:00
petehunt
84d4bbb13d
bla
2013-05-30 14:23:53 -07:00
petehunt
071201e84b
fixes
2013-05-30 14:22:05 -07:00
petehunt
15d8200b13
oops
2013-05-30 14:20:50 -07:00
petehunt
d73c2b23e0
Return of mixin docs
2013-05-30 14:20:50 -07:00
petehunt
a808d48169
add localstorage, oops
2013-05-30 14:19:33 -07:00
Paul O’Shannessy
6ed829ff95
Merge branch 'master' of github.com:facebook/react
2013-05-30 11:54:14 -07:00
petehunt
a52512863e
Clean up todomvc examples: autoBind(), onSubmit
2013-05-30 11:53:23 -07:00
petehunt
4297b1ad55
remove unused const
2013-05-30 11:53:23 -07:00
Paul Seiffert
b03f04ff24
Fixing Bug in JSX transformer
...
The bug fixed by this commit prevented the correct parsing of
`var` statements with multiple variables being declared. Instead
of trying to parse a whole 'variable declarations' (a `var`
statement with all its declarations), this visitor now only
parses single 'variable declarators'.
2013-05-30 20:51:15 +02:00
Paul O’Shannessy
86eeef1ccd
Update bower install command
...
Fixes #21
2013-05-30 11:49:57 -07:00
Timothy Yung
ce2d7991c9
Merge pull request #23 from yungsters/jsx-compiler
...
Add a JSX Compiler tool.
2013-05-30 11:41:24 -07:00
yungsters
5d812949a1
Ignore "docs/js/jsx-compiler.js" from Git.
2013-05-30 11:37:56 -07:00
yungsters
855c82e224
Revise 'live_editor.js' using JSX.
2013-05-30 11:31:21 -07:00
yungsters
955b472f8b
Add a JSX Compiler tool.
2013-05-30 11:26:36 -07:00
petehunt
c5612b34c9
Merge pull request #19 from seiffert/submit_button
...
Docs/Tutorial: Introducing a submit button in the comment form
2013-05-30 11:15:40 -07:00
Paul O’Shannessy
9894e7e1fe
Merge pull request #22 from yungsters/docs
...
[docs] Revise marketing copy around JSX.
2013-05-30 11:09:47 -07:00
Paul O’Shannessy
7dd4576ee4
Merge pull request #17 from seiffert/master
...
Docs/Tutorial: Highlighting the correct line
2013-05-30 10:32:42 -07:00
yungsters
5fc2aad364
[docs] Revise marketing copy around JSX.
2013-05-30 10:05:53 -07:00
Ben Newman
507ad5bac5
Prominently display Travis build status.
2013-05-30 12:57:51 -03:00
Paul Seiffert
cd665be43e
Introducing a submit button in the tutorial's comment form
2013-05-30 16:54:30 +02:00
Paul Seiffert
39c4414d5a
Highlighting the correct line
2013-05-30 16:22:11 +02:00
Ben Newman
a203bc5da9
Merge pull request #11 from zpao/fix-node-module
...
Fix react-tools module
2013-05-30 05:14:15 -07:00
petehunt
36b61d2b11
Merge pull request #14 from petehunt/marketing
...
Docs updates per community response
2013-05-30 04:42:48 -07:00
petehunt
2ce4530d24
make it a little less cynical
2013-05-30 04:42:11 -07:00
petehunt
84a7c2e67c
Merge pull request #13 from petehunt/update-docs
...
add a link to my tutorial repo
2013-05-30 04:39:42 -07:00
petehunt
c7d2760521
Move backbone integration into its own mixin
2013-05-30 04:35:42 -07:00
petehunt
875782cc0a
sync more with backbone
2013-05-30 04:18:40 -07:00
petehunt
036e11c9ee
more backbone fixes
2013-05-30 04:11:07 -07:00
petehunt
b4c0661dce
Make more idiomatic
2013-05-30 03:38:42 -07:00
petehunt
56dbec46db
Fix backbone todomvc example
2013-05-30 03:35:45 -07:00
petehunt
cfe3b75cb0
Docs updates per community response
2013-05-30 01:16:15 -07:00
petehunt
9415d839a5
add a link to my tutorial repo
2013-05-29 22:41:28 -07:00
Paul O’Shannessy
4f7380c4d7
Fix react-tools module
...
I messed this up pretty badly and didn't include react *at all*.
Test Plan: npm pack && npm install <packed.tgz>, then require('react-tools')`
2013-05-29 21:20:04 -07:00