A minimal setup for frontend development in TypeScript and SASS, with Jest for tests, and builds with Webpack.
- Node/npm
npm i -g windows-build-tools
if you're on windows.
- Cloning this repo
- delete the .git folder
- modify package.json to change the name/owner/etc for your project
- rename the folder appropriate
- consider deleting this file
git init
and away you go
npm start
kicks off the webpack dev server, which will automatically rebuild and refresh the browser on changes.
npm test:watch
starts Jest in watch mode, rerunning unit tests impacted by the changed files. It is worth noting that this requires static dependencies (so not dynamic module loading)