person configuration with cli
Lets you quickly get a default develop configuration
- support eslint + prettier configuration
- support typescript tsconfig.json
- support vue-cli vue.config.js
yarn add @wuxingtao/config-cli
npm run @wuxingtao/config-cli
Usage: config [options] [command]
config cli program
Options:
-v,--version output the version number
-h, --help display help for command
Commands:
init-format eslint+prettier+tsconfig default configuration
init-vue vue-cli vue.config.js configuration
help [command] display help for command
config init-format
~/test » config init-vue
? vue.config.js already exists, whether to overwrite Yes
? Whether to open CSS SourceMap Yes
? Whether to open devServer Yes
success Configuration
--------------------------------------------------------------------------------
~/test » config init-format
? Check the configuration you need prettier
success Configuration
--------------------------------------------------------------------------------
~/test » config init-format
? Check the configuration you need prettier, eslint
? Pick a linter / formatter config ESLint + Prettier
? Pick one mvvm frame vue
success Configuration
config init-vue
-[x] eslint+prettier+typescript config
-[x] vue-cli config
-[ ] rollup project config
-[ ] storybook config
-[ ] webpack config
MIT © xingtao