vscode-cordova/package.json

790 строки
21 KiB
JSON
Исходник Обычный вид История

{
2022-07-18 11:21:26 +03:00
"name": "cordova-tools",
"displayName": "Cordova Tools",
"description": "%cordova.description%",
"keywords": [
"cordova",
"ionic",
"multi-root ready"
],
"version": "2.7.0",
2022-07-18 11:21:26 +03:00
"private": true,
"publisher": "msjsdiag",
"icon": "images/icon.png",
"galleryBanner": {
"color": "#feb943",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-cordova"
},
"bugs": "https://github.com/Microsoft/vscode-cordova/issues",
"license": "%cordova.license%",
"engines": {
"vscode": "^1.40.0"
},
"categories": [
"Debuggers",
"Snippets",
"Other"
],
"activationEvents": [
"onDebugResolve:cordova",
"onDebugInitialConfigurations",
"onCommand:cordova.prepare",
"onCommand:cordova.build",
"onCommand:cordova.run",
"onCommand:ionic.prepare",
"onCommand:ionic.build",
"onCommand:ionic.run",
"onCommand:cordova.simulate.android",
"onCommand:cordova.simulate.ios",
"workspaceContains:config.xml",
"workspaceContains:ionic.config.json"
],
"extensionKind": [
"workspace"
],
"main": "./src/extension/cordova-extension",
2022-07-18 11:21:26 +03:00
"contributes": {
"commands": [
{
"command": "cordova.build",
"title": "%cordova.build%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
{
"command": "cordova.run",
"title": "%cordova.run%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
{
"command": "cordova.prepare",
"title": "%cordova.prepare%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
{
"command": "cordova.requirements",
"title": "%cordova.requirements%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
2022-07-18 11:21:26 +03:00
{
"command": "cordova.simulate.android",
"title": "%cordova.simulate.android%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
{
"command": "cordova.simulate.ios",
"title": "%cordova.simulate.ios%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
{
"command": "ionic.build",
"title": "%cordova.ionic.build%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
{
"command": "ionic.run",
"title": "%cordova.ionic.run%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
{
"command": "ionic.prepare",
"title": "%cordova.ionic.prepare%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
{
"command": "cordova.restart",
"title": "%cordova.restart%",
"category": "Cordova",
"icon": {
"dark": "./images/sync.svg",
"light": "./images/sync-light.svg"
}
},
{
"command": "cordova.clean",
"title": "Cordova: Clean",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
},
{
"command": "cordova.telemetry",
"title": "%cordova.telemetry%",
"category": "Cordova",
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
2022-07-18 11:21:26 +03:00
}
],
"keybindings": [
{
"command": "cordova.build",
"key": "f6",
"mac": "f6",
"when": "!inDebugMode"
},
{
"command": "cordova.run",
"key": "ctrl+f5",
"mac": "cmd+f5",
"when": "!inDebugMode"
}
],
"menus": {
"debug/toolBar": [
{
"command": "cordova.restart",
"when": "isCordovaDebugging && debugType == 'pwa-chrome' || isCordovaDebugging && debugType == 'pwa-node' || isCordovaDebugging && debugType == 'cordova'"
}
],
"commandPalette": [
{
"command": "cordova.restart",
"when": "false"
}
]
},
"breakpoints": [
{
"language": "javascript"
},
{
"language": "typescript"
},
{
"language": "javascriptreact"
},
{
"language": "typescriptreact"
}
],
"debuggers": [
{
"type": "cordova",
"label": "Cordova",
"runtime": "node",
"configurationSnippets": [
{
"label": "Cordova: Debug Android on device",
2022-07-18 11:21:26 +03:00
"description": "%cordova.snippets.androidRunOnDevice%",
"body": {
"name": "Debug Android on device",
2022-07-18 11:21:26 +03:00
"type": "cordova",
"request": "launch",
"platform": "android",
"target": "device",
"port": 9222,
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Debug Android on emulator",
2022-07-18 11:21:26 +03:00
"description": "%cordova.snippets.androidRunOnEmulator%",
"body": {
"name": "Debug Android on emulator",
2022-07-18 11:21:26 +03:00
"type": "cordova",
"request": "launch",
"platform": "android",
"target": "emulator",
"port": 9222,
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Debug on iOS device - experimental",
2022-07-18 11:21:26 +03:00
"description": "%cordova.snippets.iOSRunOnDevice%",
"body": {
"name": "Debug iOS on device - experimental",
2022-07-18 11:21:26 +03:00
"type": "cordova",
"request": "launch",
"platform": "ios",
"target": "device",
"port": 9220,
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Debug on iOS simulator - experimental",
2022-07-18 11:21:26 +03:00
"description": "%cordova.snippets.iOSRunOnSimulator%",
"body": {
"name": "Debug iOS on simulator - experimental",
2022-07-18 11:21:26 +03:00
"type": "cordova",
"request": "launch",
"platform": "ios",
"target": "emulator",
"port": 9220,
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Attach to running Android on device",
"description": "%cordova.snippets.androidAttachOnDevice%",
"body": {
"name": "Attach to running Android on device",
"type": "cordova",
"request": "attach",
"platform": "android",
"target": "device",
"port": 9222,
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Attach to running Android on emulator",
"description": "%cordova.snippets.androidAttachOnEmulator%",
"body": {
"name": "Attach to running Android on emulator",
"type": "cordova",
"request": "attach",
"platform": "android",
"target": "emulator",
"port": 9222,
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Attach to running iOS on device - experimental",
2022-07-18 11:21:26 +03:00
"description": "%cordova.snippets.iOSAttachOnDevice%",
"body": {
"name": "Attach to running iOS on device - experimental",
2022-07-18 11:21:26 +03:00
"type": "cordova",
"request": "attach",
"platform": "ios",
"target": "device",
"port": 9220,
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Attach to running iOS on simulator - experimental",
"description": "%cordova.snippets.iOSAttachOnSimulator%",
"body": {
"name": "Attach to running iOS on simulator - experimental",
"type": "cordova",
"request": "attach",
"platform": "ios",
"target": "emulator",
"port": 9220,
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Serve",
"description": "%cordova.snippets.ionicServe%",
"body": {
"name": "Serve to the browser (Ionic Serve)",
"type": "cordova",
"request": "launch",
"target": "chrome",
"platform": "serve",
"devServerAddress": "${1:localhost}",
"sourceMaps": true,
"ionicLiveReload": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Simulate Android in browser",
"description": "%cordova.snippets.simulateAndroid%",
"body": {
"name": "Simulate Android in browser",
"type": "cordova",
"request": "launch",
"platform": "android",
"target": "chrome",
"simulatePort": 8000,
"livereload": true,
"cwd": "^\"\\${workspaceFolder}\"",
"sourceMaps": true
}
},
{
"label": "Cordova: Simulate iOS in browser",
"description": "%cordova.snippets.simulateiOS%",
"body": {
"name": "Simulate iOS in browser",
"type": "cordova",
"request": "launch",
"platform": "ios",
"target": "chrome",
"simulatePort": 8000,
"livereload": true,
"cwd": "^\"\\${workspaceFolder}\"",
"sourceMaps": true
}
},
{
"label": "Cordova: Debug on Browser",
2022-07-18 11:21:26 +03:00
"description": "%cordova.snippets.simulateBrowser%",
"body": {
"name": "Debug on Browser",
2022-07-18 11:21:26 +03:00
"type": "cordova",
"request": "launch",
"platform": "browser",
"target": "chrome",
"simulatePort": 8000,
"livereload": true,
"cwd": "^\"\\${workspaceFolder}\"",
"sourceMaps": true
}
},
{
"label": "Cordova: Debug on Electron - experimental",
"description": "%cordova.snippets.simulateElectron%",
"body": {
"name": "Debug on Electron - Experimental",
"type": "cordova",
"request": "launch",
"platform": "browser",
"target": "electron",
"simulatePort": 8000,
"electronPort": 9223,
"livereload": true,
"cwd": "^\"\\${workspaceFolder}\"",
"sourceMaps": true
}
2022-07-18 11:21:26 +03:00
}
],
"configurationAttributes": {
"launch": {
"required": [
"platform",
"cwd"
],
"properties": {
"platform": {
"type": "string",
"description": "%cordova.properties.launch.platform%"
},
"cwd": {
"type": "string",
"description": "%cordova.properties.launch.cwd%"
},
"target": {
"description": "%cordova.properties.launch.target%",
"anyOf": [
{
"type": "string",
"enum": [
"device",
"emulator"
]
},
{
"type": "string"
}
],
"default": "emulator"
},
"sourceMaps": {
"type": "boolean",
"description": "%cordova.properties.launch.sourceMaps%",
"default": false
},
"trace": {
"type": "boolean",
"default": true,
"description": "%cordova.properties.launch.trace%"
},
"port": {
"type": "number",
"description": "%cordova.properties.launch.port%",
"default": 9222
},
"webkitRangeMin": {
"type": "number",
"description": "%cordova.properties.launch.webkitRangeMin%",
"default": 9223
},
"webkitRangeMax": {
"type": "number",
"description": "",
"default": 9322
},
"attachAttempts": {
"type": "number",
"description": "%cordova.properties.launch.attachAttempts%",
"default": 5
},
"attachDelay": {
"type": "number",
"description": "%cordova.properties.launch.attachDelay%",
"default": 1000
},
"attachTimeout": {
"type": "number",
"description": "%cordova.properties.launch.attachTimeout%",
"default": 10000
},
"iosDebugProxyPort": {
"type": "number",
"description": "%cordova.properties.launch.iosDebugProxyPort%",
"default": 9221
},
"ionicLiveReload": {
"type": "boolean",
"description": "%cordova.properties.launch.ionicLiveReload%",
"default": false
},
"devServerPort": {
"type": "number",
"description": "%cordova.properties.launch.devServerPort%"
},
"devServerAddress": {
"type": "string",
"description": "%cordova.properties.launch.devServerAddress%"
},
"devServerTimeout": {
"type": "number",
"description": "%cordova.properties.launch.devServerTimeout%",
"default": 60000
},
"simulatePort": {
"type": "number",
"description": "%cordova.properties.launch.simulatePort%",
"default": 8000
},
"livereload": {
"type": "boolean",
"description": "%cordova.properties.launch.livereload%"
},
"livereloadDelay": {
"type": "number",
"description": "%cordova.properties.launch.livereloadDelay%",
"default": 200
},
"forcePrepare": {
"type": "boolean",
"description": "%cordova.properties.launch.forcePrepare%"
},
"simulateTempDir": {
"type": "string",
"description": "%cordova.properties.launch.simulateTempDir%",
"default": "${workspaceFolder}/.vscode/simulation"
},
"corsProxy": {
"type": "boolean",
"description": "%cordova.properties.launch.corsProxy%",
"default": true
},
"runArguments": {
"type": "array",
"description": "%cordova.properties.launch.runArguments%"
},
"cordovaExecutable": {
"type": "string",
"description": "%cordova.properties.launch.cordovaExecutable%"
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "%cordova.properties.launch.env%",
"default": {}
},
"envFile": {
"type": "string",
"description": "%cordova.properties.launch.envFile%",
"default": "${workspaceFolder}/.env"
},
"skipFiles": {
"type": "array",
"description": "%cordova.properties.launch.skipFiles%",
"default": []
},
"pathMapping": {
"type": "object",
"description": "%cordova.properties.launch.pathMapping%",
"default": {
"/": "${workspaceFolder}"
}
},
"runtimeVersion": {
"type": "string",
"description": "%cordova.properties.launch.runtimeVersion%"
},
"sourceMapPathOverrides": {
"type": "object",
"description": "%cordova.properties.launch.sourceMapPathOverrides%",
"default": {
"webpack:///./*": "${cwd}/*",
"webpack:///src/*": "${cwd}/*",
"webpack:///*": "*",
"webpack:///./~/*": "${cwd}/node_modules/*",
"./*": "${cwd}/*"
}
},
"spaUrlRewrites": {
"type": "boolean",
"description": "%cordova.properties.launch.spaUrlRewrites%",
"default": false
},
"hostname": {
"type": "string",
"description": "%cordova.properties.launch.hostname%",
"default": "localhost"
},
"electronPort": {
"type": "number",
"description": "%cordova.properties.launch.electronPort%",
"default": 9223
2022-07-18 11:21:26 +03:00
}
}
},
"attach": {
"required": [
"platform",
"cwd"
],
"properties": {
"platform": {
"type": "string",
"description": "%cordova.properties.attach.platform%"
},
"cwd": {
"type": "string",
"description": "%cordova.properties.attach.cwd%"
},
"target": {
"type": "string",
"description": "%cordova.properties.attach.target%",
"default": "emulator"
},
"sourceMaps": {
"type": "boolean",
"description": "%cordova.properties.attach.sourceMaps%",
"default": false
},
"port": {
"type": "number",
"description": "%cordova.properties.attach.port%",
"default": 9222
},
"trace": {
"type": "boolean",
"default": true,
"description": "%cordova.properties.attach.trace%"
},
"webkitRangeMin": {
"type": "number",
"description": "%cordova.properties.attach.webkitRangeMin%",
"default": 9223
},
"webkitRangeMax": {
"type": "number",
"description": "%cordova.properties.attach.webkitRangeMax%",
"default": 9322
},
"attachAttempts": {
"type": "number",
"description": "%cordova.properties.attach.attachAttempts%",
"default": 5
},
"attachDelay": {
"type": "number",
"description": "%cordova.properties.attach.attachDelay%",
"default": 1000
},
"attachTimeout": {
"type": "number",
"description": "%cordova.properties.attach.attachTimeout%",
"default": 10000
},
"skipFiles": {
"type": "array",
"description": "%cordova.properties.attach.skipFiles%",
"default": []
},
"pathMapping": {
"type": "object",
"description": "%cordova.properties.attach.pathMapping%",
"default": {
"/": "${workspaceFolder}"
}
},
"ionicLiveReload": {
"type": "boolean",
"description": "%cordova.properties.attach.ionicLiveReload%",
"default": false
},
"sourceMapPathOverrides": {
"type": "object",
"description": "%cordova.properties.attach.sourceMapPathOverrides%",
"default": {
"webpack:///./*": "${cwd}/*",
"webpack:///src/*": "${cwd}/*",
"webpack:///*": "*",
"webpack:///./~/*": "${cwd}/node_modules/*",
"./*": "${cwd}/*"
}
},
"hostname": {
"type": "string",
"description": "%cordova.properties.launch.hostname%",
"default": "localhost"
2022-07-18 11:21:26 +03:00
}
}
}
}
}
],
"configuration": [
{
"title": "Cordova Tools",
"properties": {
"cordova.runArguments": {
"type": "array",
"default": [],
"description": "%cordova.configuration.properties.cordova.runArguments%",
"scope": "resource"
},
"cordova.cordovaExecutable": {
"type": "string",
"default": "",
"description": "%cordova.configuration.properties.cordova.cordovaExecutable%",
"scope": "resource"
},
"cordova.env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "%cordova.configuration.properties.cordova.env%",
"default": {},
"scope": "resource"
},
"cordova.envFile": {
"type": "string",
"description": "%cordova.configuration.properties.cordova.envFile%",
"scope": "resource"
}
}
}
]
},
"capabilities": {
"virtualWorkspaces": false,
"untrustedWorkspaces": {
"supported": "limited",
"description": "%cordova.workspaceTrust.description%"
}
},
"scripts": {
"build": "gulp build",
"test": "node ./test/runTest.js",
"test-localization": "node ./test/localization/runTest.js",
2022-09-28 04:39:56 +03:00
"vscode:prepublish": "gulp",
"prepare": "husky install"
2022-07-18 11:21:26 +03:00
},
"prettier": {
"trailingComma": "all",
"arrowParens": "avoid",
"printWidth": 100,
"tabWidth": 4,
"endOfLine": "auto",
"overrides": [
{
"files": [
"*.md"
],
"options": {
"tabWidth": 2,
"printWidth": 80
}
}
]
},
"dependencies": {
"@mixer/parallel-prettier": "^2.0.2",
"@vscode/debugadapter": "^1.63.0",
2022-07-18 11:21:26 +03:00
"elementtree": "^0.1.6",
"execa": "^4.0.0",
"gulp-mocha": "^8.0.0",
"ip": "^1.1.9",
2022-07-18 11:21:26 +03:00
"plist": "^3.0.5",
"semver": "^6.3.1",
2022-07-18 11:21:26 +03:00
"socket.io-client": "2.4.0",
"uuid": "^9.0.0",
2022-07-18 11:21:26 +03:00
"vscode-cdp-proxy": "^0.2.0",
"vscode-debugprotocol": "^1.51.0",
"vscode-extension-telemetry": "0.4.5",
"vscode-js-debug-browsers": "^1.0.4",
2022-07-18 11:21:26 +03:00
"vscode-nls": "^4.1.2",
"winreg": "0.0.13",
"xml2js": "^0.6.2"
2022-07-18 11:21:26 +03:00
},
"devDependencies": {
"@types/elementtree": "^0.1.0",
"@types/fancy-log": "^1.3.1",
"@types/mocha": "^8.0.3",
"@types/node": "^10.17.17",
"@types/rimraf": "^2.0.3",
"@types/semver": "^5.5.0",
"@types/sinon": "^10.0.12",
"@types/socket.io-client": "^1.4.36",
"@types/uuid": "^9.0.0",
2022-07-18 11:21:26 +03:00
"@types/vscode": "1.40.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
2023-12-14 08:56:19 +03:00
"@vscode/test-electron": "^2.3.8",
"@vscode/vsce": "^2.19.0",
2022-07-18 11:21:26 +03:00
"cordova-simulate": "^1.1.3",
"del": "^2.2.2",
"devtools-protocol": "0.0.760817",
"eslint": "^7.32.0",
"eslint-config-prettier": "^7.2.0",
"eslint-import-resolver-node": "^0.3.4",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-header": "^3.1.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-unicorn": "^28.0.2",
"event-stream": "3.3.4",
"fancy-log": "^1.3.3",
"glob": "^7.2.0",
"gulp": "^5.0.0",
2022-07-18 11:21:26 +03:00
"gulp-filter": "^6.0.0",
"gulp-preprocess": "^4.0.2",
"gulp-sourcemaps": "^2.6.5",
"gulp-typescript": "^5.0.1",
2022-09-28 04:39:56 +03:00
"husky": "^8.0.1",
2022-07-18 11:21:26 +03:00
"minimist": "^1.2.6",
"mocha": "^9.2.0",
"mocha-junit-reporter": "^2.2.0",
2022-07-18 11:21:26 +03:00
"mocha-multi-reporters": "^1.5.1",
"mochawesome": "^7.1.3",
"prettier": "2.6.2",
"rimraf": "^2.7.1",
"should": "^13.2.1",
"sinon": "^9.1.0",
"ts-loader": "^8.1.0",
"typescript": "^3.8.3",
"vscode-nls-dev": "^4.0.4",
"webpack": "^5.76.0",
"webpack-bundle-analyzer": "^4.4.0",
"xcparse": "^0.0.3"
},
"extensionDependencies": [
"ms-vscode.js-debug"
]
}