offline tools for vue component
$ vc-tools run lint: run lint by https://github.com/vuejs/eslint-plugin-vue-libs
$ vc-tools run pub: compile and npm publish
$ vc-tools run watch --out-dir=/xx: watch and compile to /xx, default to lib
$ vc-tools run build: build examples
$ vc-tools run gh-pages: push example to gh-pages
$ vc-tools run start: start dev server
package.json demo
{
"config": {
// show access log in console
"accesslog": true,
// dev server port
"port": 9528,
// webpack entry for build dist umd
"entry": {
"my-project": [
"./src/index.ts"
]
},
"parallel": ["es", "js", "css"],
// webpack output for build dist umd
"output": {},
// webpack css loader options
"css": {
"loaderOptions": {
"less": {
"options": {
"javascriptEnabled": true
}
},
"css": {
"options": {
"sourceMap": true
}
}
}
}
}
}