Code Monkey home page Code Monkey logo

vue-components-management's Introduction

Vue 组件库

基础的Vue组件仓库,用于维护组件源码

build base vue-cli v3.x packages manage by lerna

功能

创建

npm run pkg-new <package name>

  • package name 检查
  • 根据scripts/template下模板创建新组件模板
  • 根据eslint配置格式化初始文件
  • 添加到预览开发的导航中

开发

npm run serve

  • 提供预览开发的导航
  • Vue clivue-cli-service serve功能,详见Vue cli

构建

npm run pkg-build [package name]

  • 构建所有/指定组件
  • 支持组件目录下自定义构建,或根目录下通用构建配置文件
  • Vue clivue-cli-service build功能,详见Vue cli

删除

npm run pkg-del <package name>

  • 删除组件及二次确认

发布组件

npm run publish

  • 执行lerna publish,详见lerna
  • 需先执行git commitlerna会检查有变动的包,并发布gitnpm

其他

约定

1.package name 命名需要加-vue尾缀

2.发布会用namespace作为包前缀@namespace/,可以修改template中代码进行修改

说明

搭建时,对lerna的学习不够,该项目应该可以全部使用lerna来实现。

vue-components-management's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.