0.0.8 • Published 1 year ago

ndjjd-cli v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

南岛聚集地脚手架

组件发布目前仅支持vite项目

安装

npm install ndjjd-cli -g

登录

发布远程组件需要南岛聚集地的账号 请前往注册账号

发布远程单组件

ndd publish -r [组件相对地址]

比如:

ndd publish -r ./src/components/HelloWorld.vue

根据配置发布组件

在项目根目录创建ndd.config.json文件

格式如下

{
  "exposes": [
    {
      "src": "./src/components/HelloWorld.vue",
      "module": "HelloWorld",
      "name": "HelloWorld"
    }
  ],
  "external": [], // 组件中不要编译到最终输出文件的第三方包
  "ignorePlugins": [], //编译组件需要忽略的vite插件
  "include": []
}

然后在项目根目录执行

ndd publish
0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago