startreact
v1.8.0
Published
React + Redux + Hot + Webpack + Express Template Generator
Readme
React Start Template
Installation
npm install -g startreactUsage
startreact [project name]
// this will create a folder [project name] contains the template in current directoryAbout the Template
- CLI to generate start files
- Fully support ES6
- Reasonable file structure for React and Redux
- React Router support
- Built-in Redux dev tools and middlewares
- Full webpack setup for dev and production environment, including compiling JSX, different loaders, CSS module, Hot Module Reload, copying dependencies, building and deploying
- Express server with customization and configuration including auth, logger, cor
- Components and Reducer tests Setup with tape and enzyme
- Nested React Router Setting
Npm scripts in the template
npm run test: run testnpm run dev: start the dev server and watch the files changingnpm run production: run production servernpm run build: build via webpack
