generator-code 1.6.3 → 1.6.7
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 +3 -6
- package/generators/app/package.json +20 -15
- 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 +2 -2
- 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-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');
|
|
@@ -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.
|
|
7
|
+
"@types/glob": "^7.2.0",
|
|
4
8
|
"@types/mocha": "^9.0.0",
|
|
5
|
-
"@types/node": "14.
|
|
6
|
-
"@typescript-eslint/eslint-plugin": "^5.1
|
|
7
|
-
"@typescript-eslint/parser": "^5.1
|
|
8
|
-
"eslint": "^8.
|
|
9
|
-
"glob": "^7.
|
|
9
|
+
"@types/node": "14.x",
|
|
10
|
+
"@typescript-eslint/eslint-plugin": "^5.9.1",
|
|
11
|
+
"@typescript-eslint/parser": "^5.9.1",
|
|
12
|
+
"eslint": "^8.6.0",
|
|
13
|
+
"glob": "^7.2.0",
|
|
10
14
|
"mocha": "^9.1.3",
|
|
11
|
-
"typescript": "^4.
|
|
12
|
-
"@vscode/test-electron": "^
|
|
13
|
-
"@vscode/test-web": "^0.0.
|
|
14
|
-
"@types/webpack-env": "^1.16.
|
|
15
|
+
"typescript": "^4.5.4",
|
|
16
|
+
"@vscode/test-electron": "^2.0.3",
|
|
17
|
+
"@vscode/test-web": "^0.0.15",
|
|
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.66.0",
|
|
28
|
+
"util": "^0.12.4",
|
|
29
|
+
"webpack-cli": "^4.9.1",
|
|
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
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<%- JSON.stringify(`onCommand:${name}.helloWorld`) %>
|
|
14
14
|
],
|
|
15
15
|
"main": "./dist/extension.js",<% if (insiders) { %>
|
|
16
|
-
"
|
|
16
|
+
"enabledApiProposals": [],<% } %>
|
|
17
17
|
"contributes": {
|
|
18
18
|
"commands": [
|
|
19
19
|
{
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"watch": "webpack --watch",
|
|
29
29
|
"package": "webpack --mode production --devtool hidden-source-map",
|
|
30
30
|
"compile-tests": "tsc -p . --outDir out",
|
|
31
|
-
"watch-tests": "tsc -p -w
|
|
31
|
+
"watch-tests": "tsc -p . -w --outDir out",
|
|
32
32
|
"pretest": "<%= pkgManager %> run compile-tests && <%= pkgManager %> run compile && <%= pkgManager %> run lint",
|
|
33
33
|
"lint": "eslint src --ext ts",
|
|
34
34
|
"test": "node ./out/test/runTest.js"<% if (insiders) { %>,
|
|
@@ -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
|
}
|
|
@@ -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.7",
|
|
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
|
}
|