This is my bootstrap for building modern web applications. Formulated purely based on personal needs. But if it suits you, feel free to use it.
In this project I minimized the use of frameworks, either CSS or JavaScript. But I use many tools to make development easier. Here are the details.
- Module Bundler: I use webpack 4 for bundling a module. I used some extra loader and plugin to supports SCSS, TypeScript, and Progressive Web Apps.
- UI Components: I like Web Component, especially because it is a native API. So I decided to include
LitElement. - Testing: I use Jest for testing framework. I've integrated Jest with Puppeteer so that it can be used to test the front end. I also used
@open-wc/testingandjest-environment-jsdom-sixteento help test Web Component. - Linting: My code style based on AirBnB style. I use ESLint for linting.
To use this starter pack is quite easy. Download or Clone this repository. Then run the command npm run install. Start coding!
npm run start-devfor running a project in development mode.npm run start-dev-swsame as above, but with Service Worker (work offline capability).npm run build-localbuilding a project in production mode with BundleWebpackAnalyzer.npm run buildbuild a project in production mode with test validation.npm run testrunning test.