Skip to content

Commit a6f8260

Browse files
authored
dependency and build process changes (#131)
* build: Restructure pnpm scripts * replace yaml2json with minimal script * chore: update deps * chore: remove obsolete activation events
1 parent 2a85287 commit a6f8260

File tree

6 files changed

+218
-227
lines changed

6 files changed

+218
-227
lines changed

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ _unreleased_
55
- Add VB6 syntax highlighting for `.ctl` and `.dsr`
66
- Move VBA specific keywords into correct grammar ([GH-128][gh-128], [GH-129][gh-129])
77
- Support snippets and language config for VB6 and WWB too ([GH-130][gh-130])
8-
- Improve readme and documentation
8+
- docs: improve readme structure and add icons
9+
- docs: add grammar structure overview
10+
- build: restructure pnpm commands
11+
- build: reduce and update dependencies
912

1013

1114
## 1.0.4
@@ -33,14 +36,14 @@ _2024-11-26_
3336
## 0.11.1
3437
_2024-08-21_
3538
- Highlight `Global` visibility modifier
36-
- Dependencies: update vsce to 3.0.0
39+
- build: update vsce to 3.0.0
3740

3841

3942
## 0.11.0
4043
_2024-07-12_
4144
- Enable _vscode.dev_ support
42-
- Replace Bait with JS
43-
- Update dependencies
45+
- build: replace Bait with JS
46+
- build: update dependencies
4447

4548

4649
## 0.10.2
@@ -58,7 +61,7 @@ _2024-02-02_
5861

5962
- Limit string highlighting to a single line
6063
- Associate `.doccls` file extension
61-
- Engineering: Switch from npm to pnpm
64+
- build: Switch from npm to pnpm
6265

6366

6467
## 0.9.5

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Refer to the [official documentation][docs-snippets] for guidance.
4747
## Install a development version
4848
To install a development version of the extension, follow these steps:
4949
1. ```sh
50-
pnpm run install-dev-ext
50+
pnpm run install:dev
5151
```
5252
2. Reload the VS Code window:
5353
- Execute `Reload Window` from the command palette (<kbd>F1</kbd>)

package.json

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
"url": "https://github.com/serkonda7/vscode-vba"
1111
},
1212
"publisher": "serkonda7",
13-
"engines": {
14-
"node": ">=18",
15-
"vscode": "^1.82.0"
16-
},
17-
"packageManager": "[email protected]+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67",
1813
"categories": [
1914
"Programming Languages",
2015
"Snippets",
@@ -25,19 +20,19 @@
2520
"VBA",
2621
"WWB"
2722
],
28-
"activationEvents": [
29-
"onLanguage:vb6",
30-
"onLanguage:vba",
31-
"onLanguage:wwb",
32-
"workspaceContains:**/*.{docm,xlsm,pptm,xlam,ppam}"
33-
],
23+
3424
"main": "./src/main.js",
3525
"browser": "./src/main.js",
26+
3627
"capabilities": {
3728
"untrustedWorkspaces": {
3829
"supported": true
3930
}
4031
},
32+
33+
"activationEvents": [
34+
"workspaceContains:**/*.{docm,xlsm,pptm,xlam,ppam}"
35+
],
4136
"contributes": {
4237
"languages": [
4338
{
@@ -146,19 +141,30 @@
146141
]
147142
}
148143
},
144+
149145
"scripts": {
150-
"test": "pnpm run convert-yaml && pnpm run test-vb6 && pnpm run test-vba && pnpm run test-wwb",
151-
"test-vb6": "vscode-tmgrammar-test -g ./out/vb6.json \"syntaxes/tests/vb6/*.bas\"",
152-
"test-vba": "vscode-tmgrammar-test -g ./out/vba.json \"syntaxes/tests/vba/*.bas\"",
153-
"test-wwb": "vscode-tmgrammar-test -g ./out/wwb.json \"syntaxes/tests/wwb/*.wwd\"",
154-
"install-dev-ext": "vsce package -o ./out/vscode-vba-dev.vsix && code --install-extension ./out/vscode-vba-dev.vsix --force",
146+
"test": "pnpm run convert-yaml && pnpm run test:all",
147+
"test:all": "pnpm run test:vba && pnpm run test:vb6 && pnpm run test:wwb",
148+
"test:vba": "vscode-tmgrammar-test -g ./out/vba.json \"syntaxes/tests/vba/*.bas\"",
149+
"test:vb6": "vscode-tmgrammar-test -g ./out/vb6.json \"syntaxes/tests/vb6/*.bas\"",
150+
"test:wwb": "vscode-tmgrammar-test -g ./out/wwb.json \"syntaxes/tests/wwb/*.wwd\"",
151+
155152
"package": "vsce package",
156-
"convert-yaml": "yaml2json language-configuration.yml \"syntaxes/*.yaml-tmlanguage\" \"snippets/*.yml\"",
153+
"package:dev": "vsce package -o ./out/vscode-vba-dev.vsix",
154+
"install:dev": "pnpm run package:dev && code --install-extension ./out/vscode-vba-dev.vsix --force",
155+
156+
"convert-yaml": "node ./scripts/convert_yaml.js",
157157
"vscode:prepublish": "pnpm run convert-yaml"
158158
},
159+
160+
"engines": {
161+
"node": ">=18",
162+
"vscode": "^1.82.0"
163+
},
164+
"packageManager": "[email protected]+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67",
159165
"devDependencies": {
160-
"@serkonda7/yaml2json": "^0.9.0",
161-
"@vscode/vsce": "~3.6.0",
166+
"@vscode/vsce": "~3.6.2",
167+
"js-yaml": "~4.1.0",
162168
"vscode-tmgrammar-test": "~0.1.3"
163169
}
164170
}

0 commit comments

Comments
 (0)