nstc_middleware v1.1.396
nstc_middleware
Project setup
yarn install
Compiles and hot-reloads for development
yarn serve
Compiles and minifies for production
yarn build
Compiles and minifies for npm publish
npm run lib
Lints and fixes files
yarn lint
Customize configuration
公共模块说明文件
npm 上传包所需内容
var npm="u/p/e:nstc/Ninestar123456/chenlu@nstc.com.cn";
username: nstc
password: *******
email: chenlu@nstc.com.cn
上传步骤:
1、跟换到 npm config set registry https://registry.npmjs.org
2、确定包名不重复
3、登录npm:npm login
4、根据提示输入,用户信息
5、运行命令行 npm run lib 构建库文件
6、上传:npm publish。
注:每次发布package.json 中的 version的值一定要不一样!!!
目录说明、规则说明
packages:公共组件
public: 预览工程的入口页面
/src/
api: 后端接口api
mixins:混入js
preview: 预览
config:配置
locale:语言包
theme:样式包
theme1:主题1
styles:样式
layout:布局
icons:图标
img:图片
js:js文件
utils:工具包
directive:指令包
store:vuex 状态管理
vendor:导入导出
使用淘宝镜像
背景
npm从国外下载, 很慢。
采用淘宝镜像,从国内下载, 较快
###设置淘宝镜像 npm config set registry http://registry.npm.taobao.org/
查看: npm get registry
###写法变化: npm login -> npm adduser --registry http://registry.npmjs.org
npm publish --registry http://registry.npmjs.org
3 months ago
3 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago