From a7e45368c167ebfab071bb67f4afc6add8280d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=8F=E6=A0=B9?= <hxg@haomo-studio.com> Date: Sat, 27 Jan 2018 23:23:25 +0100 Subject: [PATCH] init README --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c0beab..6574840 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,44 @@ ### 目录结构 -### 编译 + +```bash +# 克隆项目 +git clone https://github.com/PanJiaChen/vue-element-admin.git + +# 安装ä¾èµ– +npm install +  +# 建议ä¸è¦ç”¨cnpm安装 会有å„ç§è¯¡å¼‚çš„bug å¯ä»¥é€šè¿‡å¦‚下æ“作解决 npm 下载速度慢的问题 +npm install --registry=https://registry.npm.taobao.org + +# å¯åЍæœåŠ¡ +npm run dev +``` +æµè§ˆå™¨è®¿é—® http://localhost:9527 + +### å‘布 +```bash +# 构建测试环境 +npm run build:sit + +# 构建生æˆçŽ¯å¢ƒ +npm run build:prod +``` + +### 其它 +```bash +# --report to build with bundle size analytics +npm run build:prod --report + +# --preview to start a server in local to preview +npm run build:prod --preview + +# lint code +npm run lint + +# auto fix +npm run lint -- --fix +``` ## å‚考 \ No newline at end of file -- 2.21.0