♻️ Remove vditor assets from this repo

use download_dist.sh to download assets
This commit is contained in:
zhengyi 2023-12-19 00:59:39 +08:00
parent c4ea2e3a07
commit f87377b365
3 changed files with 17 additions and 1 deletions

2
.gitignore vendored
View File

@ -30,7 +30,7 @@ log/
nbproject/private/
build/
nbbuild/
./dist/
dist/
nbdist/
.nb-gradle/

View File

@ -96,6 +96,12 @@ git clone git@github.com:{your_github_id}/vditor-mde.git
cd path/to/plugin-starter
```
```bash
# 下载依赖包
chmod a+x download_dist.sh
./download_dist.sh
```
```bash
# macOS / Linux
./gradlew pnpmInstall

10
download_dist.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/zsh
cd src/main/resources/static
pwd
curl -o vditor.tgz \
https://git.mczhengyi.top/zhengyi/-/packages/npm/@zhengyi%2Fvditor/3.9.7/files/248
tar -xzvf vditor.tgz
mv package/dist .
rm -rf package
rm -f vditor.tgz