Repo Template: webpack, mocha-chai, babel, css, eslint.
Install Node.js, start a new repository using this template, create a local clone of your new repository, and run the following console commands within your local copy:
# install dependencies
npm install
# create a development build
npm run dev
# start a dev server and open in web browser
npm run start
Action | Command | Description |
---|---|---|
clean | npm run clean |
Empty the contents of the "dist" folder. |
dev | npm run dev |
Create a development build into "dist" |
build | npm run build |
Create a production build into "dist" |
preview | npm run preview |
Start a local server to preview production build |
start | npm run start |
Start a dev server and open in web browser |
lint | npm run lint |
Run static code analysis |
test | npm run test |
Run unit tests |
watch | npm run watch |
Watch for changes and rebuild |
Tool | Reference |
---|---|
Node.js | https://nodejs.org |
Webpack | https://webpack.js.org |
Mocha | https://mochajs.org |
Chai | https://www.chaijs.com |
Babel | https://babeljs.io |
ESLint | https://eslint.org |
Prettier | https://prettier.io |
EditorConfig | https://editorconfig.org |
Website | Reference |
---|---|
Can I Use | https://caniuse.com |
Browserslist | https://browsersl.ist |
convertacolor | https://convertacolor.com |
Polyfill.io | https://polyfill.io |
This template is released under the MIT License.