1.0.2 • Published 4 years ago
itownet v1.0.2
Build Setup
# Install dependencies
npm install
# 建议不要用cnpm 安装有各种诡异的bug 可以通过如下操作解决npm速度慢的问题
npm install --registry=https://registry.npm.taobao.org
# 如果还是不行 取消ssl验证
npm config set strict-ssl false
npm config set registry http://registry.npm.taobao.org/
#原来的npm
npm config set registry http://registry.npmjs.org
# serve with hot reload at localhost:9528
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
#自动修复
npm run lint -- --fix
#内存设置
npm run fix-memory-limit
#版本检查 列出所以可以更新的包。免得再一个个去npm找相对于的可用版本了。
npm outdated
npm config set registry http://tools.lc.com:8082/nexus/repository/npm-lc/
npm install --registry=http://tools.lc.com:8082/nexus/repository/npm-lc/ ----注意/ --- 发布 npm login --registry=http://tools.lc.com:8082/nexus/repository/npm-ibps/ npm adduser --registry=http://tools.lc.com:8082/nexus/repository/npm-ibps/ npm publish --registry=http://tools.lc.com:8082/nexus/repository/npm-ibps/