A basic skeleton template to jump start a project with Webpack
, React
, SASS
, TypeScript
. This project is still evolving, so random changes will occur.
Run:
npm i && npm run dev
npn run dev
In development, localhost run with webpack-dev-server
npn run prod
In Production, localhost run with BrowserSync
Launch a bundle analyzer while the app run:
npn run dev -- --env.analyzer
npn run prod -- --env.analyzer
npn run dev -- --env.noWatch
npn run prod -- --env.noWatch
npn run dev -- --env.noBrowser
npn run prod -- --env.noBrowser
To run test, simple run:
npm run test -- -u --detectOpenHandles
npm run test:cover -- -u --detectOpenHandles
Coverage is also hook up with git push
, mean each time a git push
happen, test:cover
task is then trigger before the push