feat: provide schema for config based on tauri-build version (#162)

* feat: provide schema for config based on cli version

* fallback to latest release

* enable commented code

* get schema based on tauri-build version

* change url

* handle schema get request error

* Update versioned-schema.md

* Update extension.ts
This commit is contained in:
Amr Bashir
2022-09-19 15:08:43 +02:00
committed by GitHub
parent a8a8a393b5
commit f85fc5c174
22 changed files with 475 additions and 273 deletions

View File

@@ -33,7 +33,8 @@
"onCommand:tauri.deps-update",
"onCommand:tauri.dev",
"onCommand:tauri.build",
"onCommand:tauri.build-debug"
"onCommand:tauri.build-debug",
"onFileSystem:tauri"
],
"main": "./out/extension.js",
"contributes": {
@@ -45,7 +46,7 @@
"tauri.*.conf.json",
"tauri.*.conf.json5"
],
"url": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/tooling/cli/schema.json"
"url": "tauri://schemas/config.json"
}
],
"commands": [
@@ -95,6 +96,7 @@
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"format": "prettier ./**/*.{json,ts,js} -w --ignore-path .gitignore",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js"
@@ -109,9 +111,12 @@
"@vscode/test-electron": "2.1.5",
"eslint": "8.23.1",
"mocha": "10.0.0",
"prettier": "^2.7.1",
"typescript": "4.8.3"
},
"dependencies": {
"@types/semver": "^7.3.12",
"axios": "^0.27.2",
"glob": "8.0.3",
"run-in-terminal": "^0.0.3"
},