Simple boilerplate for single page applications.
You should have git, node and npm.
Fork this repository, and run:
git clone https://github.com/<account>/typescript-react-mobx-boilerplate.git
where <account>
is your github username.
Install global packages:
npm i -g webpack stylelint eslint eslint-plugin-node jest-cli tslint [email protected]
Go to dir:
cd typescript-react-mobx-boilerplate/
Install dependencies:
npm i
Edit misc/settings.js
as you need.
Run server:
npm start
Note: you can use
npm run server
Production build:
npm run build
Delete build folder:
npm run clean
Run tests:
npm test
Lint project:
npm run lint
Note: you can use
npm run lint:scripts
andnpm run lint:styles