Webpack 5 with webpack-dev-server configuration (and Web Components).
- Node v14.18.0 (or later)
- Yarn v1.22 (or later) | NPM v6.13.4 (or later)
- Install w5kit-cli
npm install -g w5kit-cli
- Launch the CLI
w5kit
- Choose
TypeScript
- Clone this repository
git clone https://github.com/king-prawns/webpack5-starter-kit-ts.git [your-app-name]
Remove the .git folder and change details within:
package.json
src/manifest.json
- Install dependencies
$ cd your-app-name
$ yarn
# Runs development server (Webpack dev server)
$ yarn dev
# Build command
$ yarn build
# Lint with TSLint
$ yarn lint
# Run only type checking
$ yarn tc
# Run unit tests (ts-jest)
$ yarn test
# Runs http-server on port 8082
$ yarn httpserver