Use this template and clone your repo (if you haven't already).
Useful commands:
npm i # π install dependencies
npm start # π start dev server
# --> entry file is src/index.tsx
# --> served on localhost:3000
npm run build # π build your app
# --> build files in dist/
npm test # π run tests
# --> test root is src/test/index.ts
π Don't forget to read the docs.
Stack
-
Typescript for transpilation
- Configuration in
tsconfig.json
- Configuration in
-
Snowpack for dev server
- Configuration in
snowpack.config.js
- Configuration in
-
Webpack for production bundling
- Configuration in
webpack.config.js
- Configuration in
-
ESLint for linting
- typescript-eslint for using ESLint on Typescript
- Configuration in
.eslintrc
-
- TS-Node for binding TypeScript into Mocha