Commit Graph
118 Commits
Author SHA1 Message Date
yungsters 3ded55f9f7 Revise "Why React" content. 2013-06-03 15:00:08 -07:00
Paul O’Shannessy 962cebf7c5 Merge pull request #43 from vjeux/jsfiddle
Add JSFiddle to the getting started section
2013-06-03 14:26:31 -07:00
Paul O’Shannessy 4081678f2e Merge pull request #49 from paulshen/jekyllrss
[docs] Add RSS feed.xml for blog posts
2013-06-03 14:12:54 -07:00
petehunt b202569c83 Merge pull request #52 from zpao/blog-tweaks
Improve blog setup
2013-06-03 13:59:29 -07:00
Paul O’Shannessy 55a8339781 Improve blog setup
* All posts under blog/
* Index @ blog/index.html
* Only show excerpt on index with "continue reading" link
* Date, name formatting improvements (better for humans)

It could probably still use some style tweaks but I feel better about
it.

Moving forward, we'll use the "excerpt" feature of Jekyll with the
default separator, which is just 2 newlines. So the first paragraph will
be special. Alternatively you can specify excerpt, but we'll want to fix
the layout so that gets added in.
2013-06-03 13:51:44 -07:00
petehunt a6707f158b Merge pull request #41 from divad12/homepage-examples-autobind
Consistently use autoBind on homepage examples
2013-06-03 12:53:26 -07:00
petehunt 96a5fe9e15 Merge pull request #51 from dschafer/patch-1
Highlight additional change in tutorial12.js
2013-06-03 12:51:12 -07:00
dschafer 24f523a351 Highlight additional change in tutorial12.js
tutorial12.js switches from using this.props to this.state. Let's highlight the change on line 10 as well to make that clear.
2013-06-03 13:48:14 -06:00
petehunt 065f8abfe3 Merge pull request #48 from petehunt/add-blog
Add "Why React"
2013-06-03 12:46:48 -07:00
petehunt 7b5602d00a @jeffreylin 2013-06-03 12:09:14 -07:00
Paul Shen 2bb7e15773 [docs] RSS: Pass title through xml_escape 2013-06-03 11:36:04 -07:00
Paul Shen cb9cc5de5c [docs] Use date_to_xmlschema in feed.xml 2013-06-03 11:34:42 -07:00
petehunt 0244123a52 Break lines 2013-06-03 11:19:51 -07:00
petehunt 1897bb3d2e @vjeux @benjamn 2013-06-03 11:16:38 -07:00
Paul Shen b353e8a807 [docs] Add RSS feed.xml for blog posts
uses `feed.xml` from https://github.com/snaptortoise/jekyll-rss-feeds
(slightly modified for `site.url` + `site.baseurl`)
2013-06-03 11:02:14 -07:00
petehunt b3e2aca13a Add why-react 2013-06-03 11:01:08 -07:00
Ben Newman e829f8f71f Merge pull request #1 from benjamn/run-tests-in-iframes
Run each test in its own <iframe>
2013-06-03 10:58:01 -07:00
Paul Shen 9425e58591 Merge pull request #42 from vjeux/blog
Blog article for JSFiddle Integration
2013-06-03 10:44:23 -07:00
Ben Newman 603c9ef6a8 Implement constructor-aware binding per @zpao's request.
When the function to be bound does not have a prototype, ignore the constructor case.
2013-06-03 13:20:13 -04:00
Ben Newman 906b8f3f95 Create testing <iframe>s dynamically, according to grunt config. 2013-06-03 13:20:13 -04:00
Ben Newman 6cfa71a3c2 Run each test in an <iframe>. 2013-06-03 13:20:13 -04:00
Ben Newman 42f8d155f8 Silence tests unsupported in PhantomJS.
These tests can still be run in the browser using `grunt test --debug`.
2013-06-03 13:20:13 -04:00
Ben Newman 009c0b9200 Expose test modules for requirement. 2013-06-03 13:20:13 -04:00
Ben Newman c740373b31 Fix some silly uses of Function.prototype.bind in jasmine-support.js. 2013-06-03 13:20:13 -04:00
Ben Newman 03f92bb155 Polyfill Function.prototype.bind during tests. 2013-06-03 13:20:13 -04:00
Ben Newman f8af93237a Use bin/jsx and browserify to build a jasmine bundle. 2013-06-03 13:20:13 -04:00
Ben Newman 83029eb756 Make the bin/jsx source and output directories configurable. 2013-06-03 13:20:13 -04:00
Paul O’Shannessy 99c577e210 Merge pull request #38 from camspiers/range-attributes
Add attributes used in input[type=range]
2013-06-03 10:19:19 -07:00
petehunt dd92335dc4 Merge pull request #46 from jordow/ChromeInstructions
Adding instructions for chrome. (No server needed! Just execute a single...
2013-06-03 03:22:19 -07:00
jordow 8c37499af8 Adding instructions for chrome. (No server needed! Just execute a single command
line to load in Chrome).
2013-06-03 02:43:48 -07:00
petehunt a32276e400 Fix bug in todomvc 2013-06-03 00:44:20 -07:00
petehunt 83b8ad7a31 Add TODOMVC features 2013-06-03 00:34:23 -07:00
Paul O’Shannessy dfdf1f82ae Merge pull request #44 from vjeux/script_download
Add <script> tags in the download page for easy embed
2013-06-02 17:25:49 -07:00
Vjeux cbda00c415 Add <script> tags in the download page for easy embed 2013-06-03 02:17:26 +02:00
Vjeux 21dab3d7d8 Add JSFiddle to the getting started section 2013-06-03 01:59:06 +02:00
Vjeux 9b399968eb Add a base link without JSX 2013-06-03 01:28:22 +02:00
Vjeux df361e9dd6 Adding \n at the end of the files 2013-06-03 01:06:05 +02:00
Vjeux 245f501120 Adding a left menu navigation 2013-06-03 01:04:19 +02:00
Vjeux 1902eafa8d Initial version of the blog 2013-06-03 00:48:15 +02:00
David Hu 7795968382 Consistently use autoBind on homepage examples
Except for todo.js, all the other examples on the homepage use React.autoBind
when defining event handler methods.

Test Plan: Added todo items successfully
2013-06-02 12:04:16 -07:00
Cam Spiers 415192c001 Add attributes used in input[type=range] 2013-06-02 13:32:12 +12:00
petehunt 095fccb974 ReactDOM->React.DOM 2013-06-01 13:01:52 -07:00
Ben Newman ebff2bc7a3 Merge pull request #36 from jeffreylin/master
Fix live_editor.js usage of class=
2013-06-01 06:37:55 -07:00
Jeffrey Lin a78f752143 Fix live_editor.js usage of class= 2013-05-31 20:50:21 -07:00
Paul O’Shannessy a70d567ec6 v0.3.2
Also some tweaks to package.json details.
2013-05-31 17:10:08 -07:00
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