Comprehensive Webpack 5 Boilerplate with Express, Netlify, and PWA support.
- Mixed
js
/ts
boilerplate withJest
andEslint
,Stylelint
, andPrettier
linting - Includes the starter simplepwa template
- Server and serverless builds with
Netlify
andExpress
- Conventional Commits prompt and commit linting using
Commitizen
andCommitlint
Husky
hooks to lint and test staged files usingLint-Staged
- Automated releases using
Semantic-Release
- Uses my shareable configs to reduce boilerplate
- ~100% + PWA Optimized Lighthouse Score
Install dependencies:
yarn
Install hooks:
yarn prepare
Install make
:
[your-package-manager] install make
Install yamllint
and actionlint
.
Run dev environment:
yarn dev
Build and serve for Netlify:
yarn build
Note: Configure script in Netlify to auto-run via push to main
branch.
Build for Express:
yarn prod
Serve for Express:
yarn serve
Commit changes using conventional changelog:
yarn commit
Lint all .js
, .jsx
, .ts
, .tsx
, .css
, .scss
, .html
, .md
files:
yarn lint
Note: release.yml
will run this before versioning and publishing.
Lint .yml
files:
make -f MAKEFILE
Run all tests:
yarn test
Note: release.yml
will run this before versioning and publishing.
- Click
Use this template
to create your own copy - Clone down the newly created repository
- Run
yarn
andyarn prepare
to install dependencies and git hooks - Update your
package.json
- Delete
CHANGELOG.md
- Customize your repo and commit changes using the
commit
script inpackage.json
- Use a commit type like
feat
- Push out your changes. This will trigger a release with a version of
1.0.0
MIT