generator-code 1.6.4 → 1.6.8

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.
@@ -12,7 +12,7 @@ const witch = require('which');
12
12
 
13
13
  const colortheme = require('./generate-colortheme');
14
14
  const commandjs = require('./generate-command-js');
15
- const commandts = require('./generate-command-ts ');
15
+ const commandts = require('./generate-command-ts');
16
16
  const commandweb = require('./generate-command-web');
17
17
  const extensionpack = require('./generate-extensionpack');
18
18
  const keymap = require('./generate-keymap');
@@ -185,7 +185,7 @@ module.exports = class extends Generator {
185
185
 
186
186
  // Git init
187
187
  if (this.extensionConfig.gitInit) {
188
- this.spawnCommand('git', ['init', '--quiet']);
188
+ this.spawnCommand('git', ['init', '--quiet', '--initial-branch=main']);
189
189
  }
190
190
 
191
191
  if (this.extensionConfig.proposedAPI) {
@@ -203,13 +203,10 @@ module.exports = class extends Generator {
203
203
 
204
204
  this.log('To start editing with Visual Studio Code, use the following commands:');
205
205
  this.log('');
206
- if (cdLocation !== '.') {
207
- this.log(' cd ' + cdLocation);
208
- }
209
206
  if (!this.extensionConfig.insiders) {
210
- this.log(' code .');
207
+ this.log(' code ' + cdLocation);
211
208
  } else {
212
- this.log(' code-insiders .');
209
+ this.log(' code-insiders ' + cdLocation);
213
210
  }
214
211
  this.log('');
215
212
  }
@@ -1,29 +1,34 @@
1
1
  {
2
+ "name": "yo-code-dependencies-versions",
3
+ "description": "Helper file to manage the versions of the node modules used by the generators.",
4
+ "version": "0.0.0",
5
+ "private": true,
2
6
  "dependencies": {
3
- "@types/glob": "^7.1.4",
4
- "@types/mocha": "^9.0.0",
7
+ "@types/glob": "^7.2.0",
8
+ "@types/mocha": "^9.1.0",
5
9
  "@types/node": "14.x",
6
- "@typescript-eslint/eslint-plugin": "^5.1.0",
7
- "@typescript-eslint/parser": "^5.1.0",
8
- "eslint": "^8.1.0",
9
- "glob": "^7.1.7",
10
- "mocha": "^9.1.3",
11
- "typescript": "^4.4.4",
12
- "@vscode/test-electron": "^1.6.2",
13
- "@vscode/test-web": "^0.0.15",
14
- "@types/webpack-env": "^1.16.2",
10
+ "@typescript-eslint/eslint-plugin": "^5.12.1",
11
+ "@typescript-eslint/parser": "^5.12.1",
12
+ "eslint": "^8.9.0",
13
+ "glob": "^7.2.0",
14
+ "mocha": "^9.2.1",
15
+ "typescript": "^4.5.5",
16
+ "@vscode/test-electron": "^2.1.2",
17
+ "@vscode/test-web": "^0.0.22",
18
+ "@types/webpack-env": "^1.16.3",
15
19
  "@types/vscode-notebook-renderer": "^1.57.8",
16
20
  "concurrently": "^5.3.0",
17
21
  "css-loader": "^4.2.0",
18
22
  "fork-ts-checker-webpack-plugin": "^5.0.14",
19
23
  "style-loader": "^1.2.1",
20
- "ts-loader": "^9.2.5",
21
- "vscode-dts": "^0.3.1",
24
+ "ts-loader": "^9.2.6",
25
+ "vscode-dts": "^0.3.3",
22
26
  "vscode-notebook-error-overlay": "^1.0.1",
23
- "webpack": "^5.52.1",
24
- "webpack-cli": "^4.8.0",
27
+ "webpack": "^5.69.1",
28
+ "util": "^0.12.4",
29
+ "webpack-cli": "^4.9.2",
25
30
  "webpack-dev-server": "^3.11.2",
26
31
  "assert": "^2.0.0",
27
32
  "process": "^0.11.10"
28
33
  }
29
- }
34
+ }
@@ -13,7 +13,7 @@
13
13
  <%- JSON.stringify(`onCommand:${name}.helloWorld`) %>
14
14
  ],
15
15
  "main": "./out/extension.js",<% if (insiders) { %>
16
- "enableProposedApi": true,<% } %>
16
+ "enabledApiProposals": [],<% } %>
17
17
  "contributes": {
18
18
  "commands": [
19
19
  {
@@ -13,9 +13,5 @@
13
13
  // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
14
14
  // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
15
15
  // "noUnusedParameters": true, /* Report errors on unused parameters. */
16
- },
17
- "exclude": [
18
- "node_modules",
19
- ".vscode-test"
20
- ]
16
+ }
21
17
  }
@@ -13,7 +13,7 @@
13
13
  <%- JSON.stringify(`onCommand:${name}.helloWorld`) %>
14
14
  ],
15
15
  "main": "./dist/extension.js",<% if (insiders) { %>
16
- "enableProposedApi": true,<% } %>
16
+ "enabledApiProposals": [],<% } %>
17
17
  "contributes": {
18
18
  "commands": [
19
19
  {
@@ -12,9 +12,5 @@
12
12
  // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
13
13
  // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
14
14
  // "noUnusedParameters": true, /* Report errors on unused parameters. */
15
- },
16
- "exclude": [
17
- "node_modules",
18
- ".vscode-test"
19
- ]
15
+ }
20
16
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  ## Setup
13
13
 
14
- - install the recommended extensions (amodio.tsl-problem-matcher and dbaeumer.vscode-eslint)
14
+ * install the recommended extensions (amodio.tsl-problem-matcher and dbaeumer.vscode-eslint)
15
15
 
16
16
 
17
17
  ## Get up and running straight away
@@ -42,6 +42,6 @@
42
42
 
43
43
  ## Go further
44
44
 
45
- * Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
46
- * [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VSCode extension marketplace.
47
- * Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
45
+ * Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
46
+ * [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VSCode extension marketplace.
47
+ * Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
@@ -13,9 +13,5 @@
13
13
  // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
14
14
  // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
15
15
  // "noUnusedParameters": true, /* Report errors on unused parameters. */
16
- },
17
- "exclude": [
18
- "node_modules",
19
- ".vscode-test-web"
20
- ]
16
+ }
21
17
  }
@@ -20,7 +20,7 @@ To create/update the `translations` folder with the latest strings from transife
20
20
 
21
21
  * Get an API token from https://www.transifex.com/user/settings/api. The token needs to have access to the `vscode-editor`, `vscode-workbench` and `vscode-extensions` projects.
22
22
  * Set the API token to the environment variable `TRANSIFEX_API_TOKEN`.
23
- * Check out the `master` branch of the [VS Code repository](https://github.com/Microsoft/vscode).
23
+ * Check out the `main` branch of the [VS Code repository](https://github.com/Microsoft/vscode).
24
24
  * Preferably, place the VSCode repo next to the language pack extension (so both have the same parent folder).
25
25
  * `cd vscode` and run `yarn` to initialize the VS Code repo. More information on how to build VS Code you can find [here](https://github.com/Microsoft/vscode/wiki/How-to-Contribute).
26
26
  * If the language pack extension is placed next to the VS Code repository: `npm run update-localization-extension <%- lpLanguageId %>`
@@ -11,8 +11,7 @@ This starter includes:
11
11
 
12
12
  ### Running this Sample
13
13
 
14
- 1. `cd <%- name %>`
15
- 1. `code-insiders .`: Open the folder in VS Code Insiders
14
+ 1. `code-insiders <%- name %>`: Open the folder in VS Code Insiders
16
15
  1. Hit `F5` to build+debug
17
16
 
18
17
  ### Structure
@@ -52,6 +52,7 @@
52
52
  <%- dep("typescript") %>,
53
53
  <%- dep("vscode-notebook-error-overlay") %>,
54
54
  <%- dep("@vscode/test-electron") %>,
55
+ <%- dep("util") %>,
55
56
  <%- dep("webpack") %>,
56
57
  <%- dep("webpack-cli") %>
57
58
  }
@@ -14,8 +14,12 @@ const makeConfig = (argv, { entry, out, target, library = 'commonjs' }) => ({
14
14
  libraryTarget: library,
15
15
  chunkFormat: library,
16
16
  },
17
+ externals: {
18
+ vscode: 'commonjs vscode',
19
+ },
17
20
  resolve: {
18
21
  extensions: ['.ts', '.tsx', '.js', '.jsx', '.css'],
22
+ fallback: { "util": require.resolve("util/") }
19
23
  },
20
24
  experiments: {
21
25
  outputModule: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-code",
3
- "version": "1.6.4",
3
+ "version": "1.6.8",
4
4
  "description": "Yeoman generator for Visual Studio Code Extensions",
5
5
  "keywords": [
6
6
  "yeoman-generator",
@@ -36,19 +36,19 @@
36
36
  "dependencies": {
37
37
  "chalk": "^4.1.2",
38
38
  "fast-plist": "^0.1.2",
39
- "request-light": "^0.5.4",
39
+ "request-light": "^0.5.7",
40
40
  "sanitize-filename": "^1.6.3",
41
41
  "which": "^2.0.2",
42
- "yeoman-generator": "^5.4.2",
42
+ "yeoman-generator": "^5.6.1",
43
43
  "yosay": "^2.0.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/mocha": "^9.0.0",
46
+ "@types/mocha": "^9.1.0",
47
47
  "@types/node": "^16.11.6",
48
- "@types/yeoman-generator": "^5.2.7",
48
+ "@types/yeoman-generator": "^5.2.8",
49
49
  "@types/yeoman-test": "^4.0.3",
50
- "mocha": "^9.1.3",
51
- "yeoman-test": "^6.2.0",
52
- "yeoman-environment": "^3.6.0"
50
+ "mocha": "^9.2.0",
51
+ "yeoman-environment": "^3.9.1",
52
+ "yeoman-test": "^6.2.0"
53
53
  }
54
54
  }