0.0.5 • Published 3 years ago

dcandbi-test v0.0.5

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

dcandbi

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

推送工程到npm上

npm run build

npm login

npm publish

测试插件

npm pack
  • npm pack 之后,会在当前目录下生成一个 xx-btn-1.0.0.tgz 的文件。
  • 打开一个vue项目,将压缩文件放到项目某个目录下,执行命令
  • npm install 路径\xx-btn-1.0.0.tgz
  • 路径是指压缩包所在的绝对路径,文件名必须是压缩包的全名

在其他项目引用组件

<template>
    <side-menu />
</template>

<script>
import { SideMenu } from 'dcandbi';
export default {
    components: {
        SideMenu
    }
}
</script>

在其他项目引用方法

import { GetConfigurationFun } from 'dcandbi';

在其他项目nuxt.config.js中改动

transpile: [/^dcandbi/]
0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago