@tzui/cli
v3.11.14
Published
Tzui Cli is a Vue component building tool. Through Tzui Cli you can easily create a set of fully featured Vue components。
Downloads
25
Readme
Tzui Cli
Tzui Cli is a Vue component building tool. Through Tzui Cli you can easily create a set of fully featured Vue components。
Advantage
- Provide a big set of commands, covering the complete process from development and testing to build and release
- Best practice code structures and docs generation
- in-built ESlint、Stylelint code check
- Component library supports on-demand introduction by default、theming、Tree Shaking
Quick Start
Create a project using Tzui Cli
yarn create tzui-cli-app
install manually
# npm
npm i @tzui/cli -D
# yarn
yarn add @tzui/cli --dev
after install, please add the following content to package.json file
{
"scripts": {
"dev": "tzui-cli dev",
"test": "tzui-cli test",
"lint": "tzui-cli lint",
"build": "tzui-cli build",
"prepare": "husky install",
"release": "tzui-cli release",
"build-site": "tzui-cli build-site"
},
"lint-staged": {
"*.md": "prettier --write",
"*.{ts,tsx,js,vue,less,scss}": "prettier --write",
"*.{ts,tsx,js,vue}": "eslint --fix",
"*.{vue,css,less,scss}": "stylelint --fix"
},
"eslintConfig": {
"root": true,
"extends": ["@tzui"]
},
"stylelint": {
"extends": ["@tzui/stylelint-config"]
},
"prettier": {
"singleQuote": true
},
"browserslist": ["Chrome >= 51", "iOS >= 10"]
}