Frontend Boilerplate with Tests, React, MobX and TypeScript
Based on rokoroku's react-mobx-typescript-boilerplate and TJ's frontend-boilerplate.
See also: react-redux-typescript-boilerplate
Contains
Build tools
- Webpack
- ts-loader
- PostCSS Loader
- autoprefixer
- CSS modules
- React Hot Loader
- ExtractText Plugin
- HTML Webpack Plugin
Test tools
- Mocha
- Chai
- test-drive-react
- Karma
Setup
- Clone the repository
- In the cloned folder run:
$ yarn install
Running
Run the dev-server:
$ yarn start
- Dev mode will be served at http://localhost:3000/
- Live tests (will update when changing the code) will be served at http://localhost:3000/tests.html
Testing
$ yarn test
or:
while running in dev-server (yarn start
)
go to http://localhost:3000/tests.html
Build
$ yarn run build
License
MIT