Skip to content

Commit 743ad55

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 645d98e + fa7f108 commit 743ad55

File tree

18 files changed

+97
-54
lines changed

18 files changed

+97
-54
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Commit Subjects
1+
### Commit Subjects for Public API Changes
22

33
If your patch **changes the API or fixes a bug** please use one of the
44
following prefixes in your commit subject:
@@ -12,8 +12,8 @@ That ensures the subject line of your commit makes it into the
1212
auto-generated changelog. Do not use these tags if your change doesn't
1313
fix a bug and doesn't change the public API.
1414

15-
Commits with changed, added, or removed, must be reviewed by another
16-
collaborator.
15+
Commits with changed, added, or removed, should probably be reviewed by
16+
another collaborator.
1717

1818
#### When using `[changed]` or `[removed]`...
1919

@@ -31,7 +31,8 @@ always be in sync.
3131
- `scripts/test` will fire up a karma runner and watch for changes in the
3232
specs directory.
3333
- `npm test` will do the same but doesn't watch, just runs the tests.
34-
- `scripts/build-examples` does exactly that.
34+
- `scripts/dev-examples` fires up a webpack dev server that will watch
35+
for changes and build the examples.
3536

3637
### Build
3738

examples/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
### React Router Examples
1+
React Router Examples
2+
=====================
23

3-
In order to try out the examples, you need to follow these steps:
4+
To run and development examples:
45

56
1. Clone this repo
6-
1. Run `npm -g install webpack`, if you don't have it installed already
7-
1. Run `npm install` from the repo's root directory
8-
1. Run `./scripts/build-examples` from the repo's root directory
9-
1. Point your browser to the `index.html` location in this directory
7+
1. Run `npm install`
8+
1. Run `scripts/dev-examples` from the repo's root directory
9+
1. Point your browser to http://localhost:8080
10+

examples/animations/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
<body>
66
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Animations</h1>
77
<div id="example"/>
8-
<script src="../global-bundle.js"></script>
9-
<script src="app-bundle.js"></script>
8+
<script src="/__build__/shared.js"></script>
9+
<script src="/__build__/animations.js"></script>

examples/auth-flow/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<body>
55
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Auth Flow</h1>
66
<div id="example"/>
7-
<script src="../global-bundle.js"></script>
8-
<script src="app-bundle.js"></script>
7+
<script src="/__build__/shared.js"></script>
8+
<script src="/__build__/auth-flow.js"></script>
99

examples/data-flow/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
<body>
66
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Data Flow</h1>
77
<div id="example"/>
8-
<script src="../global-bundle.js"></script>
9-
<script src="app-bundle.js"></script>
8+
<script src="/__build__/shared.js"></script>
9+
<script src="/__build__/data-flow.js"></script>
10+

examples/dynamic-segments/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<body>
55
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Dynamic Segments</h1>
66
<div id="example"/>
7-
<script src="../global-bundle.js"></script>
8-
<script src="app-bundle.js"></script>
7+
<script src="/__build__/shared.js"></script>
8+
<script src="/__build__/dynamic-segments.js"></script>
9+

examples/master-detail/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var Contact = React.createClass({
110110
var avatar = contact.avatar || 'http://placekitten.com/50/50';
111111
return (
112112
<div className="Contact">
113-
<img height="50" src={avatar}/>
113+
<img height="50" src={avatar} key={avatar}/>
114114
<h3>{name}</h3>
115115
<button onClick={this.destroy}>Delete</button>
116116
</div>

examples/master-detail/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
<body>
66
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Master Detail</h1>
77
<div id="example"/>
8-
<script src="../global-bundle.js"></script>
9-
<script src="app-bundle.js"></script>
8+
<script src="/__build__/shared.js"></script>
9+
<script src="/__build__/master-detail.js"></script>
10+

examples/partial-app-loading/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<body>
55
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Partial App Loading</h1>
66
<div id="example"/>
7-
<script src="../global-bundle.js"></script>
8-
<script src="app-bundle.js"></script>
7+
<script src="/__build__/shared.js"></script>
8+
<script src="/__build__/partial-app-loading.js"></script>
9+

examples/query-params/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<body>
55
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Query Params</h1>
66
<div id="example"/>
7-
<script src="../global-bundle.js"></script>
8-
<script src="app-bundle.js"></script>
7+
<script src="/__build__/shared.js"></script>
8+
<script src="/__build__/query-params.js"></script>
9+

0 commit comments

Comments
 (0)