Update dependencies, recommend local TypeScript and vsce

Local package installations should be favored over global installations
to avoid conflicts when working on multiple projects on the same system.

Only dependencies that did not cause the build to break were updated.

- Add `package` npm script to run local vsce installation.
This commit is contained in:
Hugo Locurcio
2022-01-27 00:19:59 +01:00
parent 1b358fadec
commit 355c0f8614
4 changed files with 2556 additions and 197 deletions

View File

@@ -11,13 +11,14 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v2.5.1
with:
node-version: 12.x
node-version: 16.x
- name: Lint and build extension
run: |
npm install
npm run lint
node_modules/.bin/vsce package --out godot-tools.vsix
npm run package -- --out godot-tools.vsix
ls -l godot-tools.vsix
- name: Upload extension VSIX
uses: actions/upload-artifact@v2

View File

@@ -103,14 +103,12 @@ for the latest changes.
#### Requirements
- [npm](https://www.npmjs.com/get-npm)
- Typescript to compile, installed using npm with `npm install -g typescript`
- VSCE to create a VSIX file, installed using npm with `npm install -g vsce`
#### Process
1. Open a command prompt/terminal and browse to the location of this repository on your local filesystem.
2. Download dependencies by using the command `npm install`
3. When done, package a VSIX file by using the command `vsce package`.
3. When done, package a VSIX file by using the command `npm run package`.
4. Install it by opening Visual Studio Code, opening the Extensions tab, clicking on the More actions (**...**) button in the top right, and choose **Install from VSIX...** and find the compiled VSIX file.
When developing for the extension, you can open this project in Visual Studio Code and debug the extension by using the **Run Extension** launch configuration instead of going through steps 3 and 4. It will launch a new instance of Visual Studio Code that has the extension running. You can then open a Godot project folder and debug the extension or GDScript debugger.

2725
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -27,7 +27,8 @@
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "tslint -p ./",
"watch": "tsc -watch -p ./"
"watch": "tsc -watch -p ./",
"package": "vsce package"
},
"contributes": {
"commands": [
@@ -289,23 +290,23 @@
},
"devDependencies": {
"@types/marked": "^0.6.5",
"@types/mocha": "^2.2.42",
"@types/mocha": "^9.1.0",
"@types/node": "^10.12.21",
"@types/prismjs": "^1.16.0",
"@types/prismjs": "^1.16.8",
"@types/vscode": "^1.33.0",
"@types/ws": "^6.0.1",
"tslint": "^5.16.0",
"@types/ws": "^8.2.2",
"tslint": "^5.20.1",
"typescript": "^3.5.1",
"vsce": "^1.76.1"
"vsce": "^2.6.4"
},
"dependencies": {
"await-notify": "^1.0.1",
"global": "^4.4.0",
"marked": "^4.0.10",
"marked": "^4.0.11",
"net": "^1.0.2",
"terminate": "^2.1.2",
"terminate": "^2.5.0",
"vscode-debugadapter": "^1.38.0",
"vscode-languageclient": "^5.2.1",
"ws": "^7.4.6"
"ws": "^8.4.2"
}
}