chore: исключить handlebars из webpack сборки и добавить скрипт package-vsce
This commit is contained in:
3265
package-lock.json
generated
3265
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
@@ -2,9 +2,21 @@
|
||||
"name": "mytemplategenerator",
|
||||
"displayName": "Template & Component Generator: React, Vue, Next.js, Angular",
|
||||
"description": "Powerful VSCode extension for generating templates, components, and project structures for React, Vue, Next.js, Angular, Svelte, Nuxt, NestJS, Express, Gatsby, Remix, SolidJS, Preact, and more. Instantly scaffold files, folders, and boilerplate code with variable substitution.",
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.11",
|
||||
"publisher": "MyTemplateGenerator",
|
||||
"author": "Sergey Gromov",
|
||||
"scripts": {
|
||||
"build-app": "npm run build && npm run package-vsce",
|
||||
"compile": "webpack",
|
||||
"watch": "webpack --watch",
|
||||
"build": "webpack --mode production --devtool hidden-source-map",
|
||||
"package-vsce": "vsce package",
|
||||
"compile-tests": "tsc -p . --outDir out",
|
||||
"watch-tests": "tsc -p . -w --outDir out",
|
||||
"pretest": "npm run compile-tests && npm run compile && npm run lint",
|
||||
"lint": "eslint src",
|
||||
"test": "vscode-test"
|
||||
},
|
||||
"categories": [
|
||||
"Snippets",
|
||||
"Programming Languages",
|
||||
@@ -176,7 +188,10 @@
|
||||
},
|
||||
"myTemplateGenerator.inputMode": {
|
||||
"type": "string",
|
||||
"enum": ["webview", "inputBox"],
|
||||
"enum": [
|
||||
"webview",
|
||||
"inputBox"
|
||||
],
|
||||
"default": "webview",
|
||||
"description": "%mytemplategenerator.config.inputMode.description%",
|
||||
"markdownDescription": "%mytemplategenerator.config.inputMode.description%",
|
||||
@@ -184,7 +199,10 @@
|
||||
},
|
||||
"myTemplateGenerator.language": {
|
||||
"type": "string",
|
||||
"enum": ["ru", "en"],
|
||||
"enum": [
|
||||
"ru",
|
||||
"en"
|
||||
],
|
||||
"default": "en",
|
||||
"description": "%mytemplategenerator.config.language.description%",
|
||||
"markdownDescription": "%mytemplategenerator.config.language.description%",
|
||||
@@ -207,17 +225,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"vscode:prepublish": "npm run package",
|
||||
"compile": "webpack",
|
||||
"watch": "webpack --watch",
|
||||
"package": "webpack --mode production --devtool hidden-source-map",
|
||||
"compile-tests": "tsc -p . --outDir out",
|
||||
"watch-tests": "tsc -p . -w --outDir out",
|
||||
"pretest": "npm run compile-tests && npm run compile && npm run lint",
|
||||
"lint": "eslint src",
|
||||
"test": "vscode-test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^10.0.10",
|
||||
"@types/node": "20.x",
|
||||
@@ -226,6 +233,7 @@
|
||||
"@typescript-eslint/parser": "^8.31.1",
|
||||
"@vscode/test-cli": "^0.0.11",
|
||||
"@vscode/test-electron": "^2.5.2",
|
||||
"@vscode/vsce": "^3.6.2",
|
||||
"eslint": "^9.25.1",
|
||||
"ts-loader": "^9.5.2",
|
||||
"typescript": "^5.8.3",
|
||||
|
||||
@@ -20,7 +20,8 @@ const extensionConfig = {
|
||||
libraryTarget: 'commonjs2'
|
||||
},
|
||||
externals: {
|
||||
vscode: 'commonjs vscode' // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
|
||||
vscode: 'commonjs vscode', // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
|
||||
handlebars: 'commonjs handlebars' // исключаем handlebars для избежания предупреждений о require.extensions
|
||||
// modules added here also need to be added in the .vscodeignore file
|
||||
},
|
||||
resolve: {
|
||||
|
||||
Reference in New Issue
Block a user