Made a nix shell for development, prepared for development packaging, changed a few settings

master
m2researchdev 2023-09-10 15:21:56 +01:00
parent 639b0f451d
commit 96d3026101
9 changed files with 1837 additions and 772 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use_nix

5
.vscode/launch.json vendored
View File

@ -7,7 +7,10 @@
"request": "launch",
"name": "Launch Client",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"args": [
"--extensionDevelopmentPath=${workspaceRoot}",
"${workspaceRoot}/client/testWorkspace"
],
"outFiles": ["${workspaceRoot}/client/out/**/*.js"],
"preLaunchTask": {
"type": "npm",

View File

@ -1,4 +1,13 @@
.vscode/**
# Root
#.vscode/**
.vscode-test/**
.gitignore
node_modules/
vsc-extension-quickstart.md
# Client Project
#client/out/**
client/node_modules/**
client/testFixture/**
client/testWorkspace/**

View File

@ -27,3 +27,17 @@ however you can check its Settings for things you might want to change to your o
## Known Issues
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

View File

@ -2,6 +2,6 @@
// "openquest.handlingMode": "Remote/Local Connection",
// "openquest.serverAddress": "localhost:4000"
"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"]
}

View File

@ -3,5 +3,6 @@ define some 100
quest some with thing begin
state start begin
print("Hello")
end
end

2543
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,9 @@
".quest"
],
"configuration": "./language-configuration.json",
"embeddedLanguages": { "meta.embedded.block.lua": "lua" }
"embeddedLanguages": {
"meta.embedded.block.lua": "lua"
}
}
],
"grammars": [
@ -76,9 +78,12 @@
}
},
"scripts": {
"vscode:prepublish": "pnpm run compile",
"compile": "tsc -b",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"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 ..",
"compile": "tsc -b",
"watch": "tsc -b -w",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
"test": "sh ./scripts/e2e.sh",
@ -93,9 +98,10 @@
"devDependencies": {
"@types/mocha": "^9.1.1",
"@types/node": "^16.18.34",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@types/ws": "^8.5.5",
"@vscode/vsce": "^2.21.0",
"eslint": "^8.42.0",
"mocha": "^9.2.2",
"typescript": "^5.1.3"

18
shell.nix Normal file
View 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
];
}