generator-reactapp
v1.5.3
Published
Yeoman generator
Maintainers
Readme
generator-reactapp
What
generator-reactapp is a yeoman generator for react app.
Dependencies:
test
tools
- webpack-dev-server(Hot-reload & Mock-API)
cross-env (Sets an environment using unix style and have it work on windows too)
- autoprefixer (Add vendor prefixes to CSS rules)
- precss (Use Sass-like markup in your CSS files)
Why
Quickly start a project.
How
Getting Started
To install Yeoman
npm install -g yoTo install generator-reactapp from npm, run:
npm install -g generator-reactappFinally, initiate the generator:
yo reactappAnd then, generate feature by sub-generator:
yo reactapp:featureStarting the dev-server and api-server
npm startRunning Tests
npm testOR
npm run testingBuilding Project
Building for production
npm run build Project Structure
.babelrc
babel config.editorconfig
editor config.eslintrc
eslint configgulpfile.js
gulp tasksserver.js
dev-serverapi.js
mock api serverdb.json
mock database for apiwebpack.config.js
webpack configtest/
testssrc/
- templates/index.html
html entry template - assets/
- constants/
common constants - components/
react components(reusability) - styles/
css styles - containers/
react containers(route) - apis/
api config - stores/
mobx stores - actions/
redux actions - reducers/
redux reducers - sagas/
redux sagas - schemas/
redux schemas - selectors/
redux selectors - index.jsx
js entry - libs.jsx
js vendor - config.js
config
- templates/index.html
dist/
generated by building
License
MIT

