Skip to content

Commit 214767f

Browse files
committed
add zip script
1 parent 722fa8c commit 214767f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ npm run format # 使用 Prettier 自動格式化程式碼
6666

6767
---
6868

69+
### 打包
70+
71+
```bash
72+
npm run zip:dev # dev 模式下的打包
73+
npm run zip:prod # prod 打包, 只有在要上傳到商店時才會使用
74+
```
75+
76+
---
77+
6978
## 📚 使用說明
7079

7180
1. 登入 Moodle(目前支援中正大學 https://ecourse2.ccu.edu.tw/)

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
"hotfixcss": "npx tailwindcss -c tailwind.config.js -i ./src/css/input.css -o ./src/css/output.css --watch",
2323
"format": "prettier --write 'src/**/*.{js,html,css}'",
2424
"lint": "eslint",
25-
"build:md": "node scripts/md-to-html.mjs"
25+
"build:md": "node scripts/md-to-html.mjs",
26+
"zip:dev": "zip -r dist_dev.zip dist",
27+
"zip:prod": "./zip_dist.sh"
2628
}
2729
}

0 commit comments

Comments
 (0)