chore(config): 更新开发脚本和文档说明
- 更新 README 中的快速开始指南,使用 ql repo 命令替代手动克隆步骤 - 移除旧的环境配置说明 - 添加新的订阅方式说明
This commit is contained in:
16
README.md
16
README.md
@@ -22,21 +22,9 @@
|
|||||||
|
|
||||||
### 快速开始
|
### 快速开始
|
||||||
|
|
||||||
1. 克隆仓库
|
1. 订阅
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/your-username/ql-scripts.git
|
ql repo https://gitea.zhuhjay.cn/zhuhjay/ql-scripts.git "scrip_" "" "sendNotify|common" "js"
|
||||||
cd ql-scripts
|
|
||||||
```
|
|
||||||
|
|
||||||
2. 安装依赖
|
|
||||||
```bash
|
|
||||||
npm install
|
|
||||||
```
|
|
||||||
|
|
||||||
3. 配置环境变量
|
|
||||||
```bash
|
|
||||||
cp .env.local .env
|
|
||||||
# 编辑 .env 文件,填入必要的配置信息
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 脚本说明
|
## 脚本说明
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js",
|
"start": "node index.js",
|
||||||
"dev": "npx env-cmd -f .env.local node xiequ/switch.js",
|
"dev": "npx env-cmd -f .env.local node xiequ/scrip_switch.js",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint . --fix",
|
"lint:fix": "eslint . --fix",
|
||||||
|
|||||||
Reference in New Issue
Block a user