Packaging

This commit is contained in:
Shuhei Takahashi 2025-01-26 14:41:00 +09:00
parent f29b0bdbf9
commit 19a939625a
4 changed files with 1916 additions and 2 deletions

View file

@ -2,3 +2,5 @@
/dist
/node_modules
/out
*.vsix

File diff suppressed because it is too large Load diff

View file

@ -53,10 +53,11 @@
}
},
"scripts": {
"build": "npm run build-extension && npm run build-server",
"build": "rm -rf build && npm run build-extension && npm run build-server",
"build-extension": "webpack",
"build-server": "cargo build --release && bash -c 'cp ../target/${CARGO_BUILD_TARGET:-.}/release/gn-language-server${APPDATA:+.exe} dist/'",
"build-tests": "tsc -p . --outDir out",
"package": "vsce package",
"lint": "eslint src",
"test": "xvfb-run vscode-test",
"pretest": "npm run build-tests && npm run build && npm run lint",
@ -73,6 +74,7 @@
"@typescript-eslint/parser": "^8.17.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.2.1",
"eslint": "^9.16.0",
"ts-loader": "^9.5.1",
"typescript": "^5.7.2",

View file

@ -18,7 +18,7 @@ const path = require('path');
module.exports = {
target: 'node',
mode: 'none',
mode: 'production',
entry: './src/extension.ts',
output: {
path: path.resolve(__dirname, 'dist'),