- version: 0.2.7 - maintainer: ziwei@collov.com
npm install collov-component-lib- version: 0.2.7
- maintainer: ziwei@collov.com
ask ziwei@collov.com or report a bug in github issue if there is any bug or failure with the library.
``sh`
npm i collov-component-lib
`sh`
npm link ../collov-component-lib
npm i collov-component-lib
`js`
import "collov-component-lib"
#### solution1: add @babel/plugin-transform-modules-commonjs
in babel.config.js
`js`
module.exports = {
plugins: ["@babel/plugin-transform-modules-commonjs"],
}
#### solution2: update @vue/cli-plugin-babel
in babel.config.js
`js`
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
}
`sh`
cd component-lib
npm i
npm run doc
#### check document by using
`sh`
npm run doc
#### Compiles and hot-reloads for development
`sh`
npm run serve
#### Compiles and minifies for production
`sh`
npm run build
#### Lints and fixes files
`sh`
npm run lint
#### Upload to npm
`sh``
npm publish