eternal-form
v0.1.10
Published
## How to publish package? ``` 1.add vue dir/files in @src/components/
Downloads
3
Readme
eternal-form
How to publish package?
1.add vue dir/files in @src/components/
new-component/
--NewComponent.vue
--index.js
index.js:
import NewComponent from './NewComponent';
NewComponent.install = function (Vue) {
Vue.component(NewComponent.name, NewComponent)
}
export default NewComponent;
2.add components in @src/index.js
xxx
-xxx.vue
-index.js
import NewComponent from './components/new-component/index'
export default {
//总体
install,
//支持按需引入
...
NewComponent
}
3.npm publish
you may be change npm registry:
npm config set registry=http://registry.npmjs.org
and change back to taobao.org:
npm config set registry https://registry.npm.taobao.org