0.1.0 • Published 2 years ago

hafan-plugins-demo v0.1.0

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

vue3

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.

插件发布流程 - https://blog.csdn.net/qq_34817440/article/details/107600868

    // package.json 配置
    {
        "name": "hafan-plugins-demo", // 必须 npm 生态唯一
        "version": "0.1.0",
        "private": false, // 必须设置公有
        "description": "hafan plugins demo",
        "license": "MIT", // 设置开源协议
        "main": "lib/hafan-plugins-demo.umd.min.js", // 配置插件入口
        "scripts": {
            "serve": "vue-cli-service serve",
            "build": "vue-cli-service build",
            "lint": "vue-cli-service lint",
            "lib": "vue-cli-service build --target lib --name hafan-plugins-demo --dest lib ./src/plugins/index.js" // 设置打包命令
        },
    }

发布流程

1. npm login - hafanyao/hafanYao1001
2. 
0.1.0

2 years ago