0.3.0 • Published 2 years ago

collov-component-libv2 v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

collov-component-libv2

  • version: 0.3.0
  • maintainer: ziwei@collov.com, jimmy@collov.com

ask ziwei@collov.com or report a bug in github issue if there is any bug or failure with the library.

Installation

from NPM (recommended)

npm i collov-component-libv2

from local symbolic link

npm link ../collov-component-libv2
npm i collov-component-libv2

Usage

import which components you need

import { CRow, CCol, CCell } "collov-component-libv2"

hmm, if there are still problems importing it

solution1: add @babel/plugin-transform-modules-commonjs

in babel.config.js

module.exports = {
  plugins: ["@babel/plugin-transform-modules-commonjs"],
}

solution2: update @vue/cli-plugin-babel

in babel.config.js

module.exports = {
  presets: ["@vue/cli-plugin-babel/preset"],
}

check storybook from main code base

cd component-lib
npm i
npm run doc

For dev

check document by using

npm run doc

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Upload to npm

npm publish