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.
- package/generators/app/{generate-command-ts .js → generate-command-ts.js} +0 -0
- package/generators/app/index.js +4 -7
- package/generators/app/package.json +21 -16
- package/generators/app/templates/ext-command-ts/package.json +1 -1
- package/generators/app/templates/ext-command-ts/tsconfig.json +1 -5
- package/generators/app/templates/ext-command-ts/vscode-webpack/package.json +1 -1
- package/generators/app/templates/ext-command-ts/vscode-webpack/tsconfig.json +1 -5
- package/generators/app/templates/ext-command-ts/vscode-webpack/vsc-extension-quickstart.md +4 -4
- package/generators/app/templates/ext-command-web/tsconfig.json +1 -5
- package/generators/app/templates/ext-localization/vsc-extension-quickstart.md +1 -1
- package/generators/app/templates/ext-notebook-renderer/README.md +1 -2
- package/generators/app/templates/ext-notebook-renderer/package.json +1 -0
- package/generators/app/templates/ext-notebook-renderer/webpack.config.js +4 -0
- package/package.json +8 -8
|
File without changes
|
package/generators/app/index.js
CHANGED
|
@@ -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.
|
|
4
|
-
"@types/mocha": "^9.
|
|
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
|
|
7
|
-
"@typescript-eslint/parser": "^5.1
|
|
8
|
-
"eslint": "^8.
|
|
9
|
-
"glob": "^7.
|
|
10
|
-
"mocha": "^9.1
|
|
11
|
-
"typescript": "^4.
|
|
12
|
-
"@vscode/test-electron": "^1.
|
|
13
|
-
"@vscode/test-web": "^0.0.
|
|
14
|
-
"@types/webpack-env": "^1.16.
|
|
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.
|
|
21
|
-
"vscode-dts": "^0.3.
|
|
24
|
+
"ts-loader": "^9.2.6",
|
|
25
|
+
"vscode-dts": "^0.3.3",
|
|
22
26
|
"vscode-notebook-error-overlay": "^1.0.1",
|
|
23
|
-
"webpack": "^5.
|
|
24
|
-
"
|
|
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,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
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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 `
|
|
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. `
|
|
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
|
|
@@ -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.
|
|
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.
|
|
39
|
+
"request-light": "^0.5.7",
|
|
40
40
|
"sanitize-filename": "^1.6.3",
|
|
41
41
|
"which": "^2.0.2",
|
|
42
|
-
"yeoman-generator": "^5.
|
|
42
|
+
"yeoman-generator": "^5.6.1",
|
|
43
43
|
"yosay": "^2.0.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/mocha": "^9.
|
|
46
|
+
"@types/mocha": "^9.1.0",
|
|
47
47
|
"@types/node": "^16.11.6",
|
|
48
|
-
"@types/yeoman-generator": "^5.2.
|
|
48
|
+
"@types/yeoman-generator": "^5.2.8",
|
|
49
49
|
"@types/yeoman-test": "^4.0.3",
|
|
50
|
-
"mocha": "^9.
|
|
51
|
-
"yeoman-
|
|
52
|
-
"yeoman-
|
|
50
|
+
"mocha": "^9.2.0",
|
|
51
|
+
"yeoman-environment": "^3.9.1",
|
|
52
|
+
"yeoman-test": "^6.2.0"
|
|
53
53
|
}
|
|
54
54
|
}
|