Skip to content

Commit 58c8c7a

Browse files
committed
append todomvc miss files
1 parent 6e5d86a commit 58c8c7a

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

examples/todomvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]
1818
},
1919
"scripts": {
20-
"build": "NODE_ENV=production browserify src/app.jsx --extension=.jsx | java -jar bin/compiler.jar > public/app.js",
20+
"build": "NODE_ENV=production browserify src/app.jsx --extension=.jsx --extension=.es6 | java -jar bin/compiler.jar > public/app.js",
2121
"start": "ecstatic -p 8000 public",
2222
"watch": "watchify -d src/app.jsx --extension=.jsx --extension=.es6 -o public/app.js -dv",
2323
"test": "jest"

examples/todomvc/public/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Template • TodoMVC</title>
7+
<link rel="stylesheet" href="//rawgit.com/tastejs/todomvc-common/master/base.css">
8+
<link rel="stylesheet" href="//rawgit.com/tastejs/todomvc-app-css/master/index.css">
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<footer class="info">
13+
<p>Double-click to edit a todo</p>
14+
<!-- Remove the below line ↓ -->
15+
<p>Template by <a href="http://sindresorhus.com">Sindre Sorhus</a></p>
16+
<!-- Change this out with your name and url ↓ -->
17+
<p>Created by <a href="https://github.com/jcouyang">Jichao Ouyang</a></p>
18+
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
19+
</footer>
20+
<script src="app.js"></script>
21+
</body>
22+
</html>

examples/todomvc/public/todos.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[{
2+
"text": "Try React Most",
3+
"completed": false,
4+
"id": 0
5+
},{
6+
"text": "Give it a Star on Github",
7+
"completed": false,
8+
"id": 1
9+
}]

0 commit comments

Comments
 (0)