packages/vant-cli/docs/commands.md
You can add built-in commands to npm scripts to use it.
// package.json
{
"scripts": {
"dev": "vant-cli dev",
"test": "vant-cli test",
"lint": "vant-cli lint",
"release": "vant-cli release",
"build-site": "vant-cli build-site"
}
}
Additionally, npx can used to be run those commands.
npx vant-cli dev
Start local dev server for browsering components and demo.
Build Vue component library.
Files will be output to es and lib directory. More details directory structure
Please add the followed config to package.json when publish to npm.
// package.json
{
"main": "lib/index.js",
"module": "es/index.js",
"files": ["es", "lib"]
}
Build documentation website. Files will be output to site directory.
Publish to npm. build will be automatically execute when run release.
Validate the format of commit message. Need husky to do this.