You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project now follows the same development workflow as the one explained in [topheman/webpack-babel-starter](https://github.com/topheman/webpack-babel-starter) (with some additions, specific to the project).
*Note:* Installing the [topheman-apis-proxy](#with-topheman-apis-proxy) backend is **no longer mandatory** (I changed the code so that you could do unauthenticated request to the github API - you will be [rate limited to 10 requests per minute](https://developer.github.com/v3/search/#rate-limit) though).
73
73
74
-
####Run
74
+
####Run
75
75
76
-
#####Dev mode
76
+
#####Dev mode
77
77
78
78
*`npm start`
79
79
* Open [http://localhost:8080/](http://localhost:8080/)
80
80
81
81
You're good to go with hot-reload / redux-devtools / time-travel / sourcemaps ...!
82
82
83
-
#####Mock mode
83
+
#####Mock mode
84
84
85
85
You can also run the app in mock mode (useful for tests):
86
86
87
87
*`npm run webpack-mock`
88
88
* Open [http://localhost:8080/](http://localhost:8080/)
89
89
90
90
91
-
####Build
91
+
####Build
92
92
93
93
At the root of the project :
94
94
@@ -100,9 +100,9 @@ A `/build/dist` folder will be created with your project built in it.
100
100
101
101
You can run it with `npm run serve-build`
102
102
103
-
####Test
103
+
####Test
104
104
105
-
#####Unit tests
105
+
#####Unit tests
106
106
107
107
`npm test` will launch:
108
108
@@ -116,7 +116,7 @@ If you wish to generate coverage reports, just `npm run karma-coverage` (those r
116
116
117
117
*Note:* Unit-tests are run through karma in PhantomJS (the `webpack.config.js` being injected), they can also be run directly via mocha ([see wiki](https://github.com/topheman/react-es6-redux/wiki/Advanced-tasks#test-tasks)).
118
118
119
-
#####End to end tests
119
+
#####End to end tests
120
120
121
121
e2e tests are located in `/test/e2e/spec`.
122
122
@@ -127,14 +127,14 @@ Open two terminal tabs, on each one:
127
127
128
128
Those tests are run on Travis CI, via [SauceLabs](https://saucelabs.com/u/react-es6-redux).
129
129
130
-
####Linter
130
+
####Linter
131
131
132
132
I'm using eslint, based on [eslint-config-airbnb](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb), a preset for `.eslintrc` configuration. For more infos, checkout the release it was implemented: [v2.5.0](https://github.com/topheman/react-es6-redux/releases/tag/v2.5.0).
133
133
134
134
*`npm run lint`: single run linting of `/src` & `/test` folders
135
135
*`npm run lint-watch`: same in watch mode
136
136
137
-
####Specific commands
137
+
####Specific commands
138
138
139
139
You may want some granularity, the `DEVTOOLS`, `SHOW_DEVTOOLS`, `NODE_ENV` & `LINTER` variables are at your disposal:
140
140
@@ -147,7 +147,7 @@ You may want some granularity, the `DEVTOOLS`, `SHOW_DEVTOOLS`, `NODE_ENV` & `LI
147
147
148
148
**Read the ["Advanced tasks" wiki section](https://github.com/topheman/react-es6-redux/wiki/Advanced-tasks) for more infos ...**
149
149
150
-
####With topheman-apis-proxy
150
+
####With topheman-apis-proxy
151
151
152
152
**This part is optional**
153
153
@@ -159,17 +159,17 @@ Then your workflow will be:
159
159
* Open a terminal in the topheman-apis-proxy folder and `grunt serve` (see more in the [run in local](https://github.com/topheman/topheman-apis-proxy#run-in-local) README section)
160
160
* Go to [http://localhost:8080/](http://localhost:8080/)
161
161
162
-
###Deploy
162
+
###Deploy
163
163
164
164
I'm using github pages for hosting (free https, easy deploy via git - a good deal since I don't need any server-side logic). You'll find a [gh-pages orphan branch](https://github.com/topheman/react-es6-redux/tree/gh-pages) where the deployed builds are stored.
165
165
166
166
My deployment routine is described on the [topheman/webpack-babel-starter Wiki](https://github.com/topheman/webpack-babel-starter/wiki).
167
167
168
-
###Notes
168
+
###Notes
169
169
170
170
*`build-prod-all-owner`: build task for [topheman.github.io/react-es6-redux](https://topheman.github.io/react-es6-redux/)
171
171
172
-
###License
172
+
###License
173
173
174
174
This software is distributed under an MIT licence.
Copy file name to clipboardExpand all lines: bin/README.dist.template.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
##react-es6-redux - distribution version (gh-pages branch)
1
+
##react-es6-redux - distribution version (gh-pages branch)
2
2
3
3
This is the distribution version of [topheman/react-es6-redux](https://github.com/topheman/react-es6-redux) - v<%= pkg.version %><% if (urlToCommit !== null) { %> - [#<%= gitRevisionShort %>](<%= urlToCommit %>)<% } %>.
4
4
5
5
**Warning**: This is the **generated** code, versionned on the `gh-pages` branch, testable online [here](https://topheman.github.io/react-es6-redux/). If you wish to see the original source code, switch to the [master branch](https://github.com/topheman/react-es6-redux).
6
6
7
-
###Infos:
7
+
###Infos:
8
8
9
9
Those informations are available on the [topheman/webpack-babel-starter](https://github.com/topheman/webpack-babel-starter) project:
0 commit comments