0.1.1 • Published 4 years ago
products-components v0.1.1
products-components
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
说明
packages
你要封装的包在这里写,按照里面写的格式,写完之后在packages下的index.js将包引入
examples
可在这边调试你的代码
发布
1、npm run build
2、npm publish
npm
添加源 npm install -g nrm nrm add snebnpm http://10.5.54.75:8081/repository/npm-all/ nrm use snebnpm
登入账号 $ npm login Username: npmuser Password: sneb-301 Email: (this IS public) npmuser@qq.com Logged in as npmuser on http://10.5.54.75:8081/repository/npm-all/.
发布包 npm publish --registry http://10.5.54.75:8081/repository/npm-internal/
http://10.5.54.75:8081/repository/npm-all/ 请注意:其他情况请使用
http://10.5.54.75:8081/repository/npm-internal/ 请注意:[发布包]时请将registry设为该地址。