-
Development (view the tool)
- run
npm i
npm run dev
- browse
localhost:3001
- test
npm i
npm run test
- run
-
Production (build and release)
- build and publish to npm cloud server
npm i
npm run build
npm run publish:customized
- build and publish to npm cloud server
-
react eco
- react
- react router
-
webpack
- tree shaking
- code split
-
style
- styled-components
- normalize.css
-
server
- express
-
code standard
- eslint
- prettier (atom)
-
testing
- Jest + react testing library
-
package
- typescript
-
api || state management
- graphql + apollo
-
testing
- cypress
-
comp development
- storybook
- Server-Side-Rendering
- hot module reload
- when error occurs
- PWA
- AMP
- code splitting + tree shaking
- use webpack-dev-middleware+ exress to replace webpack-dev-server
- for consistent future SSR in both dev and prod mode
- history + react-router
- you may need es6 promise + promise-polyfill for older browser.
- import() calls use promises internally. If you use import() with older browsers (e.g., IE 11), remember to shim Promise using a polyfill such as es6-promise or promise-polyfill.