Skip to content

Commit cf4cbff

Browse files
committed
update examples
1 parent e193e65 commit cf4cbff

File tree

4 files changed

+48
-22
lines changed

4 files changed

+48
-22
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Regular Redux
22
一个微型模块用于 [Regular](http://regularjs.github.io) 组件实现[Redux](http://redux.js.org).
33

4-
[![build status](https://img.shields.io/travis/regularjs/rgl-redux/master.svg?style=flat-square)](https://travis-ci.org/regularjs/rgl-redux) [![npm version](https://img.shields.io/npm/v/rgl-redux.svg?style=flat-square)](https://www.npmjs.com/package/rgl-redux)
4+
[![build status](https://img.shields.io/travis/regularjs/rgl-redux/develop.svg?style=flat-square)](https://travis-ci.org/regularjs/rgl-redux) [![npm version](https://img.shields.io/npm/v/rgl-redux.svg?style=flat-square)](https://www.npmjs.com/package/rgl-redux)
55

66
```sh
77
npm install rgl-redux
@@ -54,6 +54,10 @@ export default connect({
5454
})(MyComp);
5555

5656
```
57+
## 示例项目
58+
示例项目位于 `examples` 目录,克隆项目后,运行 `npm run example`
59+
* [TodoApp 示例](examples/Todo)
60+
5761
## 文档
5862
### StoreProvider
5963
位于`src/StoreProvider.js`

examples/Todo/build/bundle.js

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/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+
<title>Examples - RegularRedux</title>
6+
<style>
7+
html, body {
8+
padding: 0;
9+
margin: 0;
10+
background: #f3f3f3;
11+
}
12+
</style>
13+
</head>
14+
<body>
15+
<div class="g-main">
16+
<header>RegularRedux 示例项目列表</header>
17+
<ul>
18+
<li><a href="./Todo/todo.html">Todo App</a></li>
19+
</ul>
20+
</div>
21+
</body>
22+
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"istanbul": "^0.4.5",
6565
"mocha": "^3.2.0",
6666
"nyc": "^10.1.2",
67-
"puer": "^1.1.1",
67+
"puer": "leeluolee/puer#next",
6868
"raw-loader": "^0.5.1",
6969
"redux": "^3.6.0",
7070
"regularjs": "^0.6.0-beta.1",

0 commit comments

Comments
 (0)