This project has been created using webpack-cli, you can now run
npm run build
or
yarn build
to bundle your application
-
Init project ->
- npm init
- echo > .gitignore
-
Install webpack ->
- npm install webpack webpack-cli webpack-dev-server --save-dev
- echo {}> tsconfig.json
-
Install babel ->
- npm install --save-dev @babel/core @babel/cli @babel/preset-env
- npm install --save-dev @babel/preset-typescript
- npm install --save-dev babel-loader
-
Install jest -> npm install --save-dev jest
-
Install ts ->
- npm install --save-dev typescript
- echo {}> tsconfig.json
-
Install eslint ->
- npm install eslint --save-dev
- npm install --save-dev eslint-plugin-prettier
- npm install --save-dev --save-exact prettier
- echo {}> .prettierrc.json - if there is a problem with encoding prettier/prettier#8815
- echo > .prettierignore
- npm install --save-dev eslint-config-prettier prettier/prettier#8815
-
Install husky https://typicode.github.io/husky/#/?id=install
- npm install husky --save-dev
- npx husky install
- npm set-script prepare "husky install"
- npx husky add .husky/pre-commit "npm test"