This is an opinionted starter created using the ejected Facebook's create-react-app@1.4.1.
git clone https://github.com/wengkhing/react-awesome-starter.git
cd react-awesome-starter
yarn
- create-react-app as base
- React Router v4 as the router
- redux for state management
- axios for universal data fetching/rehydration on the client
- redux-thunk as the middleware to deal with asynchronous action
- react-router-redux to keep your router in sync with Redux state
- react-helmet to manage title, meta, styles and scripts tags
- CSS and SASS support with PostCSS for advanced transformations (e.g. autoprefixer)
- husky to ensure code standard. standard linting and code fixing with snazzy enabled happens at pre-commit.
This starter makes no assumptions about the backend of your app.
Command | Description |
---|---|
start |
Run your app on the development server at localhost:3000 . |
build |
Remove the previous bundled files and bundle it to ./build . |
test |
Run testing. |
lint |
Lint and fix all .js files if fixable. |
release |
Shorthand for release:patch |
release:first |
To generate changelog for first release |
release:major |
Update major version number eg. 1.0.0 -> 2.0.0 |
release:minor |
Update minor version number eg. 1.0.0 -> 1.1.0 |
release:patch |
Update patch version number eg. 1.0.0 -> 1.0.1 |
release:dry |
Running release without commiting to git |
prerelease |
Make a pre-release update eg. 1.0.0 -> 1.0.1-0 |