An example project for teaching build configuration with React.
To install use:
npm install
To run the test suite use:
npm test
Tests also run on git push
.
To run the site use:
npm start
To build a deployable version use:
npm run build
To check the code style with ESLint run:
npm run lint
ESLint linting also runs on git commit
.
To check the code style with ESLint run:
npm run lint
Prettier formatting also runs on git push
.
To check TypeScript use:
npm run ts
This doesn't generate any TypeScript definitions, when the build runs it will run this check as well as generating the definition files.