From 9020e3268a7caabbe042ae8df9c8fa5a7ad72448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B5=A9?= <3116737282@qq.com> Date: Thu, 10 Aug 2023 22:06:29 +0800 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新开发指引 --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9d2e258..9209a79 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,22 @@ # 荆棘鸟文学社高三特刊 ## 开发 -### 依赖环境 -- [Node.js v16.20.2](https://nodejs.org/) - -### 安装依赖 -```shell -npm install +1. 依赖环境 +- Node.js v16.20.2 +- volta +1. 建议使用 [volta](https://volta.sh/) 安装 [Node.js](https://nodejs.org/) +```sh +volta install node@16 ``` - -### 本地预览 -```shell +2. 安装依赖 +```sh +npm i +``` +3. 本地预览 +```sh npm run docs:dev ``` - -### 构建静态页面 -构建完成的网页会保存在 ``src\.vuepress\dist`` -```shell +4. 构建静态页面。构建完成的网页会保存在 ``src\.vuepress\dist`` +```sh npm run docs:build ```