generator-code 1.6.13 → 1.7.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/generators/app/dependencyVersions/package.json +9 -9
- package/generators/app/generate-colortheme.js +1 -1
- package/generators/app/generate-command-js.js +3 -1
- package/generators/app/generate-command-ts.js +3 -1
- package/generators/app/generate-command-web.js +3 -1
- package/generators/app/generate-extensionpack.js +1 -1
- package/generators/app/generate-keymap.js +1 -1
- package/generators/app/generate-language.js +1 -1
- package/generators/app/generate-localization.js +3 -1
- package/generators/app/generate-notebook-renderer.js +3 -1
- package/generators/app/generate-snippets.js +1 -9
- package/generators/app/templates/ext-colortheme/gitignore +2 -0
- package/generators/app/templates/ext-command-js/.npmrc-pnpm +1 -0
- package/generators/app/templates/ext-command-js/extension.js +3 -3
- package/generators/app/templates/ext-command-js/gitignore +3 -0
- package/generators/app/templates/ext-command-ts/.npmrc-pnpm +1 -0
- package/generators/app/templates/ext-command-ts/gitignore +5 -0
- package/generators/app/templates/ext-command-ts/src/extension.ts +4 -4
- package/generators/app/templates/ext-command-web/.npmrc-pnpm +1 -0
- package/generators/app/templates/ext-command-web/gitignore +5 -0
- package/generators/app/templates/ext-command-web/src/web/extension.ts +3 -3
- package/generators/app/templates/ext-command-web/src/web/test/suite/index.ts +2 -2
- package/generators/app/templates/ext-extensionpack/gitignore +2 -0
- package/generators/app/templates/ext-keymap/gitignore +2 -0
- package/generators/app/templates/ext-language/gitignore +2 -0
- package/generators/app/templates/ext-localization/.npmrc-pnpm +1 -0
- package/generators/app/templates/ext-localization/gitignore +2 -0
- package/generators/app/templates/ext-notebook-renderer/.npmrc-pnpm +1 -0
- package/generators/app/templates/ext-notebook-renderer/gitignore +4 -0
- package/generators/app/templates/ext-notebook-renderer/src/extension/extension.ts +1 -1
- package/generators/app/templates/ext-snippets/gitignore +2 -0
- package/package.json +7 -7
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@types/glob": "^
|
|
8
|
-
"@types/mocha": "^
|
|
7
|
+
"@types/glob": "^8.0.0",
|
|
8
|
+
"@types/mocha": "^10.0.0",
|
|
9
9
|
"@types/node": "16.x",
|
|
10
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
11
|
-
"@typescript-eslint/parser": "^5.
|
|
12
|
-
"eslint": "^8.
|
|
10
|
+
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
|
11
|
+
"@typescript-eslint/parser": "^5.38.1",
|
|
12
|
+
"eslint": "^8.24.0",
|
|
13
13
|
"glob": "^8.0.3",
|
|
14
14
|
"mocha": "^10.0.0",
|
|
15
|
-
"typescript": "^4.
|
|
15
|
+
"typescript": "^4.8.4",
|
|
16
16
|
"@vscode/test-electron": "^2.1.5",
|
|
17
|
-
"@vscode/test-web": "^0.0.
|
|
18
|
-
"@types/webpack-env": "^1.
|
|
17
|
+
"@vscode/test-web": "^0.0.30",
|
|
18
|
+
"@types/webpack-env": "^1.18.0",
|
|
19
19
|
"@types/vscode-notebook-renderer": "^1.60.0",
|
|
20
20
|
"concurrently": "^5.3.0",
|
|
21
21
|
"css-loader": "^4.2.0",
|
|
22
22
|
"fork-ts-checker-webpack-plugin": "^5.0.14",
|
|
23
23
|
"style-loader": "^1.2.1",
|
|
24
|
-
"ts-loader": "^9.
|
|
24
|
+
"ts-loader": "^9.4.1",
|
|
25
25
|
"vscode-dts": "^0.3.3",
|
|
26
26
|
"vscode-notebook-error-overlay": "^1.0.1",
|
|
27
27
|
"webpack": "^5.74.0",
|
|
@@ -85,7 +85,7 @@ module.exports = {
|
|
|
85
85
|
generator.fs.copyTpl(generator.templatePath('CHANGELOG.md'), generator.destinationPath('CHANGELOG.md'), extensionConfig);
|
|
86
86
|
generator.fs.copy(generator.templatePath('.vscodeignore'), generator.destinationPath('.vscodeignore'));
|
|
87
87
|
if (extensionConfig.gitInit) {
|
|
88
|
-
generator.fs.copy(generator.templatePath('
|
|
88
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
89
89
|
generator.fs.copy(generator.templatePath('.gitattributes'), generator.destinationPath('.gitattributes'));
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -42,7 +42,7 @@ module.exports = {
|
|
|
42
42
|
generator.fs.copy(generator.templatePath('.vscodeignore'), generator.destinationPath('.vscodeignore'));
|
|
43
43
|
|
|
44
44
|
if (extensionConfig.gitInit) {
|
|
45
|
-
generator.fs.copy(generator.templatePath('
|
|
45
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
generator.fs.copyTpl(generator.templatePath('README.md'), generator.destinationPath('README.md'), extensionConfig);
|
|
@@ -56,6 +56,8 @@ module.exports = {
|
|
|
56
56
|
|
|
57
57
|
if (extensionConfig.pkgManager === 'yarn') {
|
|
58
58
|
generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
|
|
59
|
+
} else if (extensionConfig.pkgManager === 'pnpm') {
|
|
60
|
+
generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
extensionConfig.installDependencies = true;
|
|
@@ -44,7 +44,7 @@ module.exports = {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
if (extensionConfig.gitInit) {
|
|
47
|
-
generator.fs.copy(generator.templatePath('
|
|
47
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
48
48
|
}
|
|
49
49
|
generator.fs.copyTpl(generator.templatePath('README.md'), generator.destinationPath('README.md'), extensionConfig);
|
|
50
50
|
generator.fs.copyTpl(generator.templatePath('CHANGELOG.md'), generator.destinationPath('CHANGELOG.md'), extensionConfig);
|
|
@@ -54,6 +54,8 @@ module.exports = {
|
|
|
54
54
|
|
|
55
55
|
if (extensionConfig.pkgManager === 'yarn') {
|
|
56
56
|
generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
|
|
57
|
+
} else if (extensionConfig.pkgManager === 'pnpm') {
|
|
58
|
+
generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
extensionConfig.installDependencies = true;
|
|
@@ -31,7 +31,7 @@ module.exports = {
|
|
|
31
31
|
|
|
32
32
|
generator.fs.copy(generator.templatePath('.vscodeignore'), generator.destinationPath('.vscodeignore'));
|
|
33
33
|
if (extensionConfig.gitInit) {
|
|
34
|
-
generator.fs.copy(generator.templatePath('
|
|
34
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
35
35
|
}
|
|
36
36
|
generator.fs.copyTpl(generator.templatePath('README.md'), generator.destinationPath('README.md'), extensionConfig);
|
|
37
37
|
generator.fs.copyTpl(generator.templatePath('CHANGELOG.md'), generator.destinationPath('CHANGELOG.md'), extensionConfig);
|
|
@@ -47,6 +47,8 @@ module.exports = {
|
|
|
47
47
|
|
|
48
48
|
if (extensionConfig.pkgManager === 'yarn') {
|
|
49
49
|
generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
|
|
50
|
+
} else if (extensionConfig.pkgManager === 'pnpm') {
|
|
51
|
+
generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
extensionConfig.installDependencies = true;
|
|
@@ -35,7 +35,7 @@ module.exports = {
|
|
|
35
35
|
generator.fs.copyTpl(generator.templatePath('CHANGELOG.md'), generator.destinationPath('CHANGELOG.md'), extensionConfig);
|
|
36
36
|
generator.fs.copy(generator.templatePath('.vscodeignore'), generator.destinationPath('.vscodeignore'));
|
|
37
37
|
if (extensionConfig.gitInit) {
|
|
38
|
-
generator.fs.copy(generator.templatePath('
|
|
38
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
39
39
|
generator.fs.copy(generator.templatePath('.gitattributes'), generator.destinationPath('.gitattributes'));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -31,7 +31,7 @@ module.exports = {
|
|
|
31
31
|
generator.fs.copyTpl(generator.templatePath('CHANGELOG.md'), generator.destinationPath('CHANGELOG.md'), extensionConfig);
|
|
32
32
|
generator.fs.copy(generator.templatePath('.vscodeignore'), generator.destinationPath('.vscodeignore'));
|
|
33
33
|
if (extensionConfig.gitInit) {
|
|
34
|
-
generator.fs.copy(generator.templatePath('
|
|
34
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
35
35
|
generator.fs.copy(generator.templatePath('.gitattributes'), generator.destinationPath('.gitattributes'));
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -53,7 +53,7 @@ module.exports = {
|
|
|
53
53
|
generator.fs.copyTpl(generator.templatePath('language-configuration.json'), generator.destinationPath('language-configuration.json'), extensionConfig);
|
|
54
54
|
generator.fs.copy(generator.templatePath('.vscodeignore'), generator.destinationPath('.vscodeignore'));
|
|
55
55
|
if (extensionConfig.gitInit) {
|
|
56
|
-
generator.fs.copy(generator.templatePath('
|
|
56
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
57
57
|
generator.fs.copy(generator.templatePath('.gitattributes'), generator.destinationPath('.gitattributes'));
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -35,11 +35,13 @@ module.exports = {
|
|
|
35
35
|
generator.fs.copyTpl(generator.templatePath('README.md'), generator.destinationPath('README.md'), extensionConfig);
|
|
36
36
|
generator.fs.copyTpl(generator.templatePath('CHANGELOG.md'), generator.destinationPath('CHANGELOG.md'), extensionConfig);
|
|
37
37
|
generator.fs.copy(generator.templatePath('.vscodeignore'), generator.destinationPath('.vscodeignore'));
|
|
38
|
-
generator.fs.copy(generator.templatePath('
|
|
38
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
39
39
|
generator.fs.copy(generator.templatePath('.gitattributes'), generator.destinationPath('.gitattributes'));
|
|
40
40
|
|
|
41
41
|
if (extensionConfig.pkgManager === 'yarn') {
|
|
42
42
|
generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
|
|
43
|
+
} else if (extensionConfig.pkgManager === 'pnpm') {
|
|
44
|
+
generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
extensionConfig.installDependencies = true;
|
|
@@ -45,12 +45,14 @@ module.exports = {
|
|
|
45
45
|
generator.fs.copyTpl(generator.templatePath('src/extension/extension.ts'), generator.destinationPath('src/extension/extension.ts'), extensionConfig);
|
|
46
46
|
|
|
47
47
|
if (extensionConfig.gitInit) {
|
|
48
|
-
generator.fs.copy(generator.templatePath('
|
|
48
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
49
49
|
generator.fs.copy(generator.templatePath('.gitattributes'), generator.destinationPath('.gitattributes'));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
if (extensionConfig.pkgManager === 'yarn') {
|
|
53
53
|
generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
|
|
54
|
+
} else if (extensionConfig.pkgManager === 'pnpm') {
|
|
55
|
+
generator.fs.copyTpl(generator.templatePath('.npmrc-pnpm'), generator.destinationPath('.npmrc'), extensionConfig);
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
extensionConfig.installDependencies = true;
|
|
@@ -39,7 +39,7 @@ module.exports = {
|
|
|
39
39
|
generator.fs.copyTpl(generator.templatePath('snippets/snippets.code-snippets'), generator.destinationPath('snippets/snippets.code-snippets'), extensionConfig);
|
|
40
40
|
generator.fs.copy(generator.templatePath('.vscodeignore'), generator.destinationPath('.vscodeignore'));
|
|
41
41
|
if (extensionConfig.gitInit) {
|
|
42
|
-
generator.fs.copy(generator.templatePath('
|
|
42
|
+
generator.fs.copy(generator.templatePath('gitignore'), generator.destinationPath('.gitignore'));
|
|
43
43
|
generator.fs.copy(generator.templatePath('.gitattributes'), generator.destinationPath('.gitattributes'));
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -249,11 +249,3 @@ function getFileContent(filePath, errors) {
|
|
|
249
249
|
return null;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
|
|
253
|
-
function isFile(filePath) {
|
|
254
|
-
try {
|
|
255
|
-
return fs.statSync(filePath).isFile()
|
|
256
|
-
} catch (e) {
|
|
257
|
-
return false;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
enable-pre-post-scripts = true
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Import the module and reference it with the alias vscode in your code below
|
|
3
3
|
const vscode = require('vscode');
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
//
|
|
5
|
+
// This method is called when your extension is activated
|
|
6
|
+
// Your extension is activated the very first time the command is executed
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @param {vscode.ExtensionContext} context
|
|
@@ -27,7 +27,7 @@ function activate(context) {
|
|
|
27
27
|
context.subscriptions.push(disposable);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
//
|
|
30
|
+
// This method is called when your extension is deactivated
|
|
31
31
|
function deactivate() {}
|
|
32
32
|
|
|
33
33
|
module.exports = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
enable-pre-post-scripts = true
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// Import the module and reference it with the alias vscode in your code below
|
|
3
3
|
import * as vscode from 'vscode';
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
//
|
|
5
|
+
// This method is called when your extension is activated
|
|
6
|
+
// Your extension is activated the very first time the command is executed
|
|
7
7
|
export function activate(context: vscode.ExtensionContext) {
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
// Use the console to output diagnostic information (console.log) and errors (console.error)
|
|
10
10
|
// This line of code will only be executed once when your extension is activated
|
|
11
11
|
console.log('Congratulations, your extension "<%= name %>" is now active!');
|
|
@@ -22,5 +22,5 @@ export function activate(context: vscode.ExtensionContext) {
|
|
|
22
22
|
context.subscriptions.push(disposable);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
//
|
|
25
|
+
// This method is called when your extension is deactivated
|
|
26
26
|
export function deactivate() {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
enable-pre-post-scripts = true
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Import the module and reference it with the alias vscode in your code below
|
|
3
3
|
import * as vscode from 'vscode';
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
//
|
|
5
|
+
// This method is called when your extension is activated
|
|
6
|
+
// Your extension is activated the very first time the command is executed
|
|
7
7
|
export function activate(context: vscode.ExtensionContext) {
|
|
8
8
|
|
|
9
9
|
// Use the console to output diagnostic information (console.log) and errors (console.error)
|
|
@@ -23,5 +23,5 @@ export function activate(context: vscode.ExtensionContext) {
|
|
|
23
23
|
context.subscriptions.push(disposable);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
//
|
|
26
|
+
// This method is called when your extension is deactivated
|
|
27
27
|
export function deactivate() {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Imports mocha for the browser, defining the `mocha` global.
|
|
2
2
|
require('mocha/mocha');
|
|
3
3
|
|
|
4
4
|
export function run(): Promise<void> {
|
|
@@ -9,7 +9,7 @@ export function run(): Promise<void> {
|
|
|
9
9
|
reporter: undefined
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
//
|
|
12
|
+
// Bundles all files in the current directory matching `*.test`
|
|
13
13
|
const importAll = (r: __WebpackModuleApi.RequireContext) => r.keys().forEach(r);
|
|
14
14
|
importAll(require.context('.', true, /\.test$/));
|
|
15
15
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
enable-pre-post-scripts = true
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
enable-pre-post-scripts = true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as vscode from 'vscode';
|
|
4
4
|
|
|
5
5
|
// This method is called when your extension is activated
|
|
6
|
-
//
|
|
6
|
+
// Your extension is activated the very first time the command is executed
|
|
7
7
|
export function activate(context: vscode.ExtensionContext) {
|
|
8
8
|
// Nothing (yet)
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-code",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Yeoman generator for Visual Studio Code extensions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yeoman-generator",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/Microsoft"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
28
|
+
"node": ">=14.15.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"test": "mocha",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"request-light": "^0.5.8",
|
|
40
40
|
"sanitize-filename": "^1.6.3",
|
|
41
41
|
"which": "^2.0.2",
|
|
42
|
-
"yeoman-generator": "^5.
|
|
42
|
+
"yeoman-generator": "^5.7.0",
|
|
43
43
|
"yosay": "^2.0.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/mocha": "^
|
|
47
|
-
"@types/node": "^16.
|
|
48
|
-
"@types/yeoman-generator": "^5.2.
|
|
46
|
+
"@types/mocha": "^10.0.0",
|
|
47
|
+
"@types/node": "^16.x",
|
|
48
|
+
"@types/yeoman-generator": "^5.2.11",
|
|
49
49
|
"@types/yeoman-test": "^4.0.3",
|
|
50
50
|
"mocha": "^10.0.0",
|
|
51
|
-
"yeoman-environment": "^3.
|
|
51
|
+
"yeoman-environment": "^3.12.0",
|
|
52
52
|
"yeoman-test": "^6.3.0"
|
|
53
53
|
}
|
|
54
54
|
}
|