0.1.2 • Published 8 months ago
poro-components v0.1.2
React Components
本地测试
创建软链接到全局
npm link
在测试项目中,软链接到本项目
npm link poro-components
发包
查看镜像配置
npm config ls
查看本机 npm 账号
npm whoammi
登录 npm 账号
npm adduser
npm install poro-components 时所有 dependencies 都会被安装,可以把开发依赖移动到 devDependencies 中
发包
npm publish
记录
"prepublishOnly": "npm run test:nowatch && npm run lint && npm run build"
"husky": {
"hooks": {
"pre-commit": "npm run test:nowatch && npm run lint"
}
}