1.0.14 • Published 4 years ago

wbw-test v1.0.14

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

wbw-test

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

该项目是先

vue init webpack-simple project-name

创建一个简单的webpack项目

参考网址:https://www.cnblogs.com/yalong/p/10388384.html

npm login
//按照提示输入帐号,密码,邮箱
npm version patch //更新补丁,还有minor,major两个  分别对应major.minor.patch分别对应版本号1.1.1
npm publish//发布插件

//可以将自己的组件发布到npm上,可以供别人下载使用
//使用方式就是跟一般插件一样

此时源码是公开的,如果你不想公开源码,你可以npm run build之后,你可以把

index.js里面修改代码

import Main from './dist/wbw-test'
// import Main from './src/components/Main'
import _Vue from 'vue'

然后在.gitignore里面把components文件取消上传,只调用dist里面压缩好的文件就ok了,

当然 更好的方法目前还不知道

1.0.15

4 years ago

1.0.14

4 years ago

1.0.11

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago