@daiyam/artifact-vsx-ts 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,7 +13,7 @@ Getting Started
13
13
  mkdir myproject
14
14
  cd myproject
15
15
  npm init -y
16
- artifact add @daiyam/base @daiyam/lang-ts @daiyam/vsx-ts
16
+ artifact add @daiyam/lang-js @daiyam/lang-ts @daiyam/vsx-ts
17
17
  ```
18
18
 
19
19
  Dependencies
@@ -3,6 +3,7 @@
3
3
  "main",
4
4
  "browser",
5
5
  "optionalDependencies",
6
+ "extensionDependencies",
6
7
  "activationEvents",
7
8
  "capabilities",
8
9
  "contributes",
@@ -10,5 +11,5 @@
10
11
  "galleryBanner",
11
12
  "categories",
12
13
  "keywords"
13
- ]
14
+ ]
14
15
  }
@@ -7,17 +7,17 @@ jobs:
7
7
  publish:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
- - uses: actions/checkout@v2
11
- - uses: actions/setup-node@v2
10
+ - uses: actions/checkout@v4
11
+ - uses: actions/setup-node@v4
12
12
  with:
13
- node-version: 16
13
+ node-version: 20
14
14
  - run: npm ci
15
15
  - name: Publish to Open VSX Registry
16
- uses: HaaLeo/publish-vscode-extension@v0
16
+ uses: HaaLeo/publish-vscode-extension@v2
17
17
  with:
18
18
  pat: ${{ secrets.OPEN_VSX_TOKEN }}
19
19
  - name: Publish to Visual Studio Marketplace
20
- uses: HaaLeo/publish-vscode-extension@v0
20
+ uses: HaaLeo/publish-vscode-extension@v2
21
21
  with:
22
22
  pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
23
23
  registryUrl: https://marketplace.visualstudio.com
@@ -1,4 +1,4 @@
1
1
  # Changelog
2
2
 
3
- ## v0.1.0 | 2022-01-01
3
+ ## v0.1.0 | #[[date.YYYY-MM-DD]]
4
4
  - initial release
@@ -1,30 +1,68 @@
1
1
  {
2
+ "name": "EXT_NAME",
2
3
  "displayName": "EXT_DISPLAY_NAME",
3
4
  "engines": {
4
5
  "vscode": "^1.23.0"
5
6
  },
6
7
  "main": "./lib/index.js",
8
+ "browser": "./lib/index.js",
7
9
  "scripts": {
8
10
  "compile": "tsc -p src",
11
+ "package": "rm -f *.vsix && vsce package",
9
12
  "release": "release-it",
10
13
  "vscode:prepublish": "npm run compile && npm run bundle",
11
14
  "watch": "tsc-watch -p src --onSuccess 'npm run bundle'"
12
15
  },
13
16
  "devDependencies": {
14
17
  "@types/vscode": "^1.23.0",
15
- "release-it": "^15.3.0",
16
- "tsc-watch": "^5.0.3"
18
+ "release-it": "^18.1.2",
19
+ "tsc-watch": "^6.3.0"
17
20
  },
18
21
  "activationEvents": [
19
- "*"
22
+ "onStartupFinished"
20
23
  ],
24
+ "capabilities": {
25
+ "virtualWorkspaces": true,
26
+ "untrustedWorkspaces": {
27
+ "supported": true
28
+ }
29
+ },
21
30
  "contributes": {
22
31
  "commands": [],
23
32
  "configuration": {
24
33
  "title": "EXT_DISPLAY_NAME",
25
- "properties": {}
34
+ "properties": {
35
+ "EXT_CFG_KEY.notification": {
36
+ "type": "string",
37
+ "description": "Display notification when a new version is installed",
38
+ "default": "minor",
39
+ "enum": [
40
+ "none",
41
+ "major",
42
+ "minor",
43
+ "patch"
44
+ ],
45
+ "enumDescriptions": [
46
+ "The new version notification won't be shown anymore.",
47
+ "The new version notification will be shown only with a new major version",
48
+ "The new version notification will be shown only with a new minor version",
49
+ "The new version notification will always be shown"
50
+ ],
51
+ "scope": "application",
52
+ "tags": []
53
+ }
54
+ }
26
55
  }
27
56
  },
57
+ "extensionKind": [
58
+ "ui",
59
+ "workspace"
60
+ ],
61
+ "icon": "icon.png",
62
+ "galleryBanner": {
63
+ "color": "#ffffff",
64
+ "theme": "light"
65
+ },
28
66
  "categories": [
29
67
  "Other"
30
68
  ],
@@ -1,9 +1,12 @@
1
1
  import vscode from 'vscode';
2
2
  import pkg from '../package.json';
3
3
 
4
- const CONFIG_KEY = 'EXT_NAME';
4
+ const CONFIG_KEY = 'EXT_CFG_KEY';
5
5
  const VERSION_KEY = 'version';
6
6
 
7
+ function setup(): void { // {{{
8
+ } // }}}
9
+
7
10
  async function showWhatsNewMessage(version: string) { // {{{
8
11
  const actions: vscode.MessageItem[] = [{
9
12
  title: 'Homepage',
@@ -60,4 +63,12 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
60
63
  void showWhatsNewMessage(currentVersion);
61
64
  }
62
65
  }
66
+
67
+ setup();
68
+
69
+ vscode.workspace.onDidChangeConfiguration((event) => {
70
+ if(event.affectsConfiguration(CONFIG_KEY)) {
71
+ setup();
72
+ }
73
+ });
63
74
  } // }}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daiyam/artifact-vsx-ts",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "The configuration to create Visual Studio extensions and publish them on Visual Studio Marketplace and Open VSX Registry.",
5
5
  "author": {
6
6
  "name": "Baptiste Augrain",
@@ -31,5 +31,5 @@
31
31
  "project-template",
32
32
  "scaffold"
33
33
  ],
34
- "gitHead": "a3f21ee9da8e032a5e54af7279d0067883346b8e"
34
+ "gitHead": "c73c92c82234f1f1e6c94ef2abd076feab0b8169"
35
35
  }