This project is generated via @vue/cli with the following manually selected features:
- Babel
- Linter/Formatter
- ESLint + Prettier
- Lint on save
- config in dedicated files
Then the following extra configuration was applied:
-
add plugin
vue add xxx
:- bootstrap-vue
-
add packages
yarn add xxx
:- topojson-client
- d3-fetch
- d3-transition
- d3-geo
-
add dev packages
yarn add -D xxx
:- @vue/eslint-config-prettier
-
.eslintrc.js extra config - see comments
-
.prettierrc.js extra config - see comments
-
vue.config.js extra config - see comments
Tip: With VSCode create a custom shortcut for doc formatting different from the standard Alt+Shift+F
(say Alt+Shift+G
) to avoid conflicts.
yarn install
yarn run serve
yarn run build
yarn run test
yarn run lint