mirror of
https://github.com/remnawave/xray-monaco-editor.git
synced 2026-05-13 12:16:43 +00:00
fix(go): add xray.schema.cn.json generation to Makefile and update .gitignore
- Added xray.schema.cn.json to the build process in the Makefile. - Updated .gitignore to include xray.schema.cn.json for better file management.
This commit is contained in:
parent
1b9a6ff7b7
commit
dd502fa1b5
2 changed files with 14 additions and 4 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -2,7 +2,7 @@
|
|||
*.js
|
||||
assets
|
||||
*.schema.json
|
||||
|
||||
*.schema.cn.json
|
||||
|
||||
# Logs
|
||||
logs
|
||||
|
|
@ -28,3 +28,5 @@ dist-ssr
|
|||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
|
||||
|
|
|
|||
14
go/Makefile
14
go/Makefile
|
|
@ -1,6 +1,6 @@
|
|||
build: main.wasm wasm_exec.js xray.schema.json
|
||||
build: main.wasm wasm_exec.js xray.schema.json xray.schema.cn.json
|
||||
mkdir -p ../public
|
||||
mv main.wasm wasm_exec.js xray.schema.json ../public/
|
||||
mv main.wasm wasm_exec.js xray.schema.json xray.schema.cn.json ../public/
|
||||
.PHONY: build
|
||||
|
||||
dev-lite:
|
||||
|
|
@ -44,4 +44,12 @@ xray.schema.json: assets/Xray-docs-next-main
|
|||
| cut -d: -f2- \
|
||||
| PYTHONUNBUFFERED=1 \
|
||||
python3 scrape-docs.py "Основные модули конфигурации" \
|
||||
> xray.schema.json
|
||||
> xray.schema.json
|
||||
|
||||
|
||||
xray.schema.cn.json:
|
||||
grep -rI '' assets/Xray-docs-next-main/docs/config/ \
|
||||
| cut -d: -f2- \
|
||||
| PYTHONUNBUFFERED=1 \
|
||||
python3 scrape-docs.py "基础配置模块" \
|
||||
> xray.schema.cn.json
|
||||
Loading…
Add table
Add a link
Reference in a new issue