Made a nix shell for development, prepared for development packaging, changed a few settings
This commit is contained in:
parent
639b0f451d
commit
96d3026101
5
.vscode/launch.json
vendored
5
.vscode/launch.json
vendored
|
@ -7,7 +7,10 @@
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch Client",
|
"name": "Launch Client",
|
||||||
"runtimeExecutable": "${execPath}",
|
"runtimeExecutable": "${execPath}",
|
||||||
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
|
"args": [
|
||||||
|
"--extensionDevelopmentPath=${workspaceRoot}",
|
||||||
|
"${workspaceRoot}/client/testWorkspace"
|
||||||
|
],
|
||||||
"outFiles": ["${workspaceRoot}/client/out/**/*.js"],
|
"outFiles": ["${workspaceRoot}/client/out/**/*.js"],
|
||||||
"preLaunchTask": {
|
"preLaunchTask": {
|
||||||
"type": "npm",
|
"type": "npm",
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
.vscode/**
|
# Root
|
||||||
|
#.vscode/**
|
||||||
.vscode-test/**
|
.vscode-test/**
|
||||||
.gitignore
|
.gitignore
|
||||||
|
node_modules/
|
||||||
|
|
||||||
vsc-extension-quickstart.md
|
vsc-extension-quickstart.md
|
||||||
|
|
||||||
|
# Client Project
|
||||||
|
#client/out/**
|
||||||
|
client/node_modules/**
|
||||||
|
client/testFixture/**
|
||||||
|
client/testWorkspace/**
|
||||||
|
|
14
README.md
14
README.md
|
@ -27,3 +27,17 @@ however you can check its Settings for things you might want to change to your o
|
||||||
## Known Issues
|
## Known Issues
|
||||||
Nothing quite yet
|
Nothing quite yet
|
||||||
|
|
||||||
|
|
||||||
|
### Packaging
|
||||||
|
#### Debug
|
||||||
|
Run the packaging commands (it also bundles to slim it):
|
||||||
|
`vsce package`
|
||||||
|
|
||||||
|
|
||||||
|
#### Release
|
||||||
|
No instructions yet as the release/publish process is not decided
|
||||||
|
|
||||||
|
#### Reference links
|
||||||
|
https://code.visualstudio.com/api/working-with-extensions/publishing-extension
|
||||||
|
https://code.visualstudio.com/api/working-with-extensions/bundling-extension
|
||||||
|
|
||||||
|
|
2
client/testWorkspace/.vscode/settings.json
vendored
2
client/testWorkspace/.vscode/settings.json
vendored
|
@ -2,6 +2,6 @@
|
||||||
// "openquest.handlingMode": "Remote/Local Connection",
|
// "openquest.handlingMode": "Remote/Local Connection",
|
||||||
// "openquest.serverAddress": "localhost:4000"
|
// "openquest.serverAddress": "localhost:4000"
|
||||||
"openquest.handlingMode": "Local Path",
|
"openquest.handlingMode": "Local Path",
|
||||||
"openquest.serverBinaryPath": "/run/media/nibunta/OMTRON/Projectos/Metin_Projects/General Projects/openquest/openquest-rs/target/debug/openquest-lsp",
|
"openquest.serverBinaryPath": "../../../openquest/target/debug/openquest-lsp",
|
||||||
"openquest.serverArguments": ["--transport", "stdio"]
|
"openquest.serverArguments": ["--transport", "stdio"]
|
||||||
}
|
}
|
|
@ -3,5 +3,6 @@ define some 100
|
||||||
|
|
||||||
quest some with thing begin
|
quest some with thing begin
|
||||||
state start begin
|
state start begin
|
||||||
|
print("Hello")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
2537
package-lock.json
generated
2537
package-lock.json
generated
File diff suppressed because it is too large
Load diff
14
package.json
14
package.json
|
@ -32,7 +32,9 @@
|
||||||
".quest"
|
".quest"
|
||||||
],
|
],
|
||||||
"configuration": "./language-configuration.json",
|
"configuration": "./language-configuration.json",
|
||||||
"embeddedLanguages": { "meta.embedded.block.lua": "lua" }
|
"embeddedLanguages": {
|
||||||
|
"meta.embedded.block.lua": "lua"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"grammars": [
|
"grammars": [
|
||||||
|
@ -76,9 +78,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"vscode:prepublish": "pnpm run compile",
|
"vscode:prepublish": "npm run esbuild-base -- --minify",
|
||||||
"compile": "tsc -b",
|
"esbuild-base": "esbuild ./client/src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
|
||||||
|
"esbuild": "npm run esbuild-base -- --sourcemap",
|
||||||
|
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
|
||||||
"postinstall": "cd client && pnpm install && cd ..",
|
"postinstall": "cd client && pnpm install && cd ..",
|
||||||
|
"compile": "tsc -b",
|
||||||
"watch": "tsc -b -w",
|
"watch": "tsc -b -w",
|
||||||
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
|
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
|
||||||
"test": "sh ./scripts/e2e.sh",
|
"test": "sh ./scripts/e2e.sh",
|
||||||
|
@ -93,9 +98,10 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/mocha": "^9.1.1",
|
"@types/mocha": "^9.1.1",
|
||||||
"@types/node": "^16.18.34",
|
"@types/node": "^16.18.34",
|
||||||
|
"@types/ws": "^8.5.5",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
||||||
"@typescript-eslint/parser": "^5.59.9",
|
"@typescript-eslint/parser": "^5.59.9",
|
||||||
"@types/ws": "^8.5.5",
|
"@vscode/vsce": "^2.21.0",
|
||||||
"eslint": "^8.42.0",
|
"eslint": "^8.42.0",
|
||||||
"mocha": "^9.2.2",
|
"mocha": "^9.2.2",
|
||||||
"typescript": "^5.1.3"
|
"typescript": "^5.1.3"
|
||||||
|
|
18
shell.nix
Normal file
18
shell.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ nixpkgs ? import <nixpkgs> {} }:
|
||||||
|
let
|
||||||
|
pinnedPkgs = nixpkgs.fetchFromGitHub {
|
||||||
|
owner = "NixOS";
|
||||||
|
repo = "nixpkgs";
|
||||||
|
rev = "964006733a3380811d2e6c5870a8dc42f681429f";
|
||||||
|
sha256 = "sha256-Ax4xTY4x8rHIrUt/xgTQ6/YBzE0JQ2fsXFuvkqx4X5s=";
|
||||||
|
};
|
||||||
|
pkgs = import pinnedPkgs {};
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
typescript
|
||||||
|
nodejs_20
|
||||||
|
vsce
|
||||||
|
esbuild
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue