2017-05-24 08:47:25 +00:00
|
|
|
{
|
|
|
|
"name": "npm",
|
|
|
|
"publisher": "vscode",
|
2018-02-21 12:16:36 +00:00
|
|
|
"displayName": "%displayName%",
|
2018-02-23 20:03:44 +00:00
|
|
|
"description": "%description%",
|
2018-02-27 10:49:59 +00:00
|
|
|
"version": "1.0.1",
|
2019-06-06 09:44:50 +00:00
|
|
|
"license": "MIT",
|
2017-05-24 08:47:25 +00:00
|
|
|
"engines": {
|
|
|
|
"vscode": "0.10.x"
|
|
|
|
},
|
2018-11-30 09:25:28 +00:00
|
|
|
"enableProposedApi": true,
|
2018-02-21 12:16:36 +00:00
|
|
|
"icon": "images/npm_icon.png",
|
2017-05-24 08:47:25 +00:00
|
|
|
"categories": [
|
|
|
|
"Other"
|
|
|
|
],
|
|
|
|
"scripts": {
|
|
|
|
"compile": "gulp compile-extension:npm",
|
|
|
|
"watch": "gulp watch-extension:npm"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2020-02-21 14:03:28 +00:00
|
|
|
"jsonc-parser": "^2.2.1",
|
2018-02-28 15:51:01 +00:00
|
|
|
"minimatch": "^3.0.4",
|
2020-06-17 09:39:14 +00:00
|
|
|
"request-light": "^0.4.0",
|
2020-02-21 14:03:28 +00:00
|
|
|
"vscode-nls": "^4.1.1"
|
2017-05-24 08:47:25 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2018-02-28 15:51:01 +00:00
|
|
|
"@types/minimatch": "^3.0.3",
|
2019-10-28 07:11:47 +00:00
|
|
|
"@types/node": "^12.11.7"
|
2017-05-24 08:47:25 +00:00
|
|
|
},
|
2020-06-17 09:39:14 +00:00
|
|
|
"main": "./out/npmMain",
|
2020-06-25 21:21:56 +00:00
|
|
|
"browser": "./dist/browser/npmBrowserMain",
|
2017-05-24 08:47:25 +00:00
|
|
|
"activationEvents": [
|
2018-02-23 20:03:44 +00:00
|
|
|
"onCommand:workbench.action.tasks.runTask",
|
2019-10-28 16:16:35 +00:00
|
|
|
"onCommand:npm.runScriptFromFolder",
|
2018-03-27 20:28:29 +00:00
|
|
|
"onLanguage:json",
|
2019-07-29 12:26:49 +00:00
|
|
|
"workspaceContains:package.json",
|
2018-04-30 17:43:54 +00:00
|
|
|
"onView:npm"
|
2017-05-24 08:47:25 +00:00
|
|
|
],
|
|
|
|
"contributes": {
|
2018-06-04 09:41:58 +00:00
|
|
|
"languages": [
|
|
|
|
{
|
|
|
|
"id": "ignore",
|
|
|
|
"filenames": [
|
|
|
|
".npmignore"
|
|
|
|
]
|
2020-03-10 19:11:00 +00:00
|
|
|
},
|
|
|
|
{
|
2020-03-29 20:47:48 +00:00
|
|
|
"id": "properties",
|
2020-03-10 19:11:00 +00:00
|
|
|
"filenames": [
|
|
|
|
".npmrc"
|
|
|
|
]
|
2018-06-04 09:41:58 +00:00
|
|
|
}
|
|
|
|
],
|
2018-03-27 20:28:29 +00:00
|
|
|
"views": {
|
|
|
|
"explorer": [
|
|
|
|
{
|
|
|
|
"id": "npm",
|
2018-03-31 21:06:43 +00:00
|
|
|
"name": "%view.name%",
|
2020-05-27 17:46:01 +00:00
|
|
|
"when": "npm:showScriptExplorer || config.npm.enableScriptExplorer",
|
|
|
|
"icon": "images/code.svg"
|
2018-03-27 20:28:29 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"commands": [
|
|
|
|
{
|
|
|
|
"command": "npm.runScript",
|
2018-05-04 12:52:30 +00:00
|
|
|
"title": "%command.run%",
|
2020-03-05 00:13:36 +00:00
|
|
|
"icon": "$(run)"
|
2018-03-30 14:51:05 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.debugScript",
|
2018-05-23 20:55:50 +00:00
|
|
|
"title": "%command.debug%",
|
2020-03-05 00:13:36 +00:00
|
|
|
"icon": "$(debug)"
|
2018-03-27 20:28:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.openScript",
|
2018-03-31 21:06:43 +00:00
|
|
|
"title": "%command.openScript%"
|
2018-03-27 20:28:29 +00:00
|
|
|
},
|
2018-05-28 12:41:08 +00:00
|
|
|
{
|
|
|
|
"command": "npm.runInstall",
|
|
|
|
"title": "%command.runInstall%"
|
|
|
|
},
|
2018-03-27 20:28:29 +00:00
|
|
|
{
|
|
|
|
"command": "npm.refresh",
|
2018-03-31 21:06:43 +00:00
|
|
|
"title": "%command.refresh%",
|
2020-03-05 00:13:36 +00:00
|
|
|
"icon": "$(refresh)"
|
2018-07-28 20:09:40 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.runSelectedScript",
|
|
|
|
"title": "%command.runSelectedScript%"
|
2019-08-28 02:25:20 +00:00
|
|
|
},
|
|
|
|
{
|
2019-10-11 22:18:31 +00:00
|
|
|
"command": "npm.runScriptFromFolder",
|
|
|
|
"title": "%command.runScriptFromFolder%"
|
2018-03-27 20:28:29 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"menus": {
|
2018-06-13 10:02:42 +00:00
|
|
|
"commandPalette": [
|
|
|
|
{
|
|
|
|
"command": "npm.refresh",
|
|
|
|
"when": "false"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.runScript",
|
|
|
|
"when": "false"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.debugScript",
|
|
|
|
"when": "false"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.openScript",
|
|
|
|
"when": "false"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.runInstall",
|
|
|
|
"when": "false"
|
2018-07-29 09:38:22 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.runSelectedScript",
|
|
|
|
"when": "false"
|
2019-10-11 22:31:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.runScriptFromFolder",
|
|
|
|
"when": "false"
|
2018-07-29 09:38:22 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"editor/context": [
|
|
|
|
{
|
|
|
|
"command": "npm.runSelectedScript",
|
2020-06-29 19:53:37 +00:00
|
|
|
"when": "resourceFilename == 'package.json' && resourceScheme == file",
|
2018-07-29 09:38:22 +00:00
|
|
|
"group": "navigation@+1"
|
2018-06-13 10:02:42 +00:00
|
|
|
}
|
|
|
|
],
|
2018-03-27 20:28:29 +00:00
|
|
|
"view/title": [
|
|
|
|
{
|
|
|
|
"command": "npm.refresh",
|
|
|
|
"when": "view == npm",
|
|
|
|
"group": "navigation"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"view/item/context": [
|
|
|
|
{
|
|
|
|
"command": "npm.openScript",
|
|
|
|
"when": "view == npm && viewItem == packageJSON",
|
2018-05-28 12:41:08 +00:00
|
|
|
"group": "navigation@1"
|
2018-03-30 14:51:05 +00:00
|
|
|
},
|
|
|
|
{
|
2018-05-28 12:41:08 +00:00
|
|
|
"command": "npm.runInstall",
|
|
|
|
"when": "view == npm && viewItem == packageJSON",
|
|
|
|
"group": "navigation@2"
|
2018-06-13 10:02:42 +00:00
|
|
|
},
|
|
|
|
{
|
2018-04-17 16:18:02 +00:00
|
|
|
"command": "npm.openScript",
|
2018-03-30 14:51:05 +00:00
|
|
|
"when": "view == npm && viewItem == script",
|
2018-03-30 15:32:18 +00:00
|
|
|
"group": "navigation@1"
|
2018-03-30 14:51:05 +00:00
|
|
|
},
|
|
|
|
{
|
2018-04-17 16:18:02 +00:00
|
|
|
"command": "npm.runScript",
|
2018-03-30 14:51:05 +00:00
|
|
|
"when": "view == npm && viewItem == script",
|
2018-03-30 15:32:18 +00:00
|
|
|
"group": "navigation@2"
|
|
|
|
},
|
2018-05-04 12:52:30 +00:00
|
|
|
{
|
2018-05-23 20:55:50 +00:00
|
|
|
"command": "npm.runScript",
|
2018-05-28 09:09:16 +00:00
|
|
|
"when": "view == npm && viewItem == script",
|
|
|
|
"group": "inline"
|
2018-05-04 12:52:30 +00:00
|
|
|
},
|
2018-03-30 15:32:18 +00:00
|
|
|
{
|
2018-05-23 20:55:50 +00:00
|
|
|
"command": "npm.runScript",
|
2018-05-28 09:09:16 +00:00
|
|
|
"when": "view == npm && viewItem == debugScript",
|
|
|
|
"group": "inline"
|
2018-05-23 20:55:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "npm.debugScript",
|
2018-05-28 09:09:16 +00:00
|
|
|
"when": "view == npm && viewItem == debugScript",
|
|
|
|
"group": "inline"
|
|
|
|
},
|
|
|
|
{
|
2018-04-17 16:18:02 +00:00
|
|
|
"command": "npm.debugScript",
|
2018-03-30 15:32:18 +00:00
|
|
|
"when": "view == npm && viewItem == script",
|
|
|
|
"group": "navigation@3"
|
2018-03-27 20:28:29 +00:00
|
|
|
}
|
2019-08-28 02:25:20 +00:00
|
|
|
],
|
|
|
|
"explorer/context": [
|
2020-06-17 09:39:14 +00:00
|
|
|
{
|
2020-06-29 19:53:37 +00:00
|
|
|
"when": "config.npm.enableRunFromFolder && explorerViewletVisible && explorerResourceIsFolder && resourceScheme == file",
|
2019-10-11 22:18:31 +00:00
|
|
|
"command": "npm.runScriptFromFolder",
|
2020-06-17 09:39:14 +00:00
|
|
|
"group": "2_workspace"
|
|
|
|
}
|
|
|
|
]
|
2018-03-27 20:28:29 +00:00
|
|
|
},
|
2017-05-24 08:47:25 +00:00
|
|
|
"configuration": {
|
|
|
|
"id": "npm",
|
|
|
|
"type": "object",
|
|
|
|
"title": "Npm",
|
|
|
|
"properties": {
|
|
|
|
"npm.autoDetect": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"off",
|
|
|
|
"on"
|
|
|
|
],
|
|
|
|
"default": "on",
|
2017-09-20 15:56:13 +00:00
|
|
|
"scope": "resource",
|
2017-05-24 08:47:25 +00:00
|
|
|
"description": "%config.npm.autoDetect%"
|
2017-07-13 14:39:26 +00:00
|
|
|
},
|
|
|
|
"npm.runSilent": {
|
2017-10-27 08:51:50 +00:00
|
|
|
"type": "boolean",
|
2017-09-20 15:56:13 +00:00
|
|
|
"default": false,
|
|
|
|
"scope": "resource",
|
2018-08-09 00:01:37 +00:00
|
|
|
"markdownDescription": "%config.npm.runSilent%"
|
2017-10-27 08:51:50 +00:00
|
|
|
},
|
|
|
|
"npm.packageManager": {
|
|
|
|
"scope": "resource",
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"npm",
|
2020-07-01 13:36:37 +00:00
|
|
|
"yarn",
|
|
|
|
"pnpm"
|
2017-10-27 08:51:50 +00:00
|
|
|
],
|
|
|
|
"default": "npm",
|
2017-11-02 23:44:46 +00:00
|
|
|
"description": "%config.npm.packageManager%"
|
2018-02-28 15:51:01 +00:00
|
|
|
},
|
|
|
|
"npm.exclude": {
|
|
|
|
"type": [
|
|
|
|
"string",
|
|
|
|
"array"
|
|
|
|
],
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": "%config.npm.exclude%",
|
2018-02-28 15:57:15 +00:00
|
|
|
"scope": "resource"
|
2018-04-21 17:13:34 +00:00
|
|
|
},
|
|
|
|
"npm.enableScriptExplorer": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false,
|
|
|
|
"scope": "resource",
|
|
|
|
"description": "%config.npm.enableScriptExplorer%"
|
2018-05-28 09:09:16 +00:00
|
|
|
},
|
2019-10-14 14:12:32 +00:00
|
|
|
"npm.enableRunFromFolder": {
|
2019-08-28 02:25:20 +00:00
|
|
|
"type": "boolean",
|
2019-10-11 22:18:31 +00:00
|
|
|
"default": false,
|
2019-08-28 02:25:20 +00:00
|
|
|
"scope": "resource",
|
2019-10-14 14:12:32 +00:00
|
|
|
"description": "%config.npm.enableRunFromFolder%"
|
2019-08-28 02:25:20 +00:00
|
|
|
},
|
2018-05-28 09:09:16 +00:00
|
|
|
"npm.scriptExplorerAction": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"open",
|
|
|
|
"run"
|
|
|
|
],
|
2018-08-09 00:01:37 +00:00
|
|
|
"markdownDescription": "%config.npm.scriptExplorerAction%",
|
2018-05-28 09:09:16 +00:00
|
|
|
"scope": "window",
|
|
|
|
"default": "open"
|
2018-07-27 22:42:17 +00:00
|
|
|
},
|
|
|
|
"npm.fetchOnlinePackageInfo": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "%config.npm.fetchOnlinePackageInfo%",
|
|
|
|
"default": true,
|
|
|
|
"scope": "window",
|
2018-08-14 08:44:56 +00:00
|
|
|
"tags": [
|
|
|
|
"usesOnlineServices"
|
|
|
|
]
|
2017-05-24 08:47:25 +00:00
|
|
|
}
|
|
|
|
}
|
2017-06-22 15:03:52 +00:00
|
|
|
},
|
2018-02-23 20:03:44 +00:00
|
|
|
"jsonValidation": [
|
|
|
|
{
|
|
|
|
"fileMatch": "package.json",
|
2020-06-25 17:16:28 +00:00
|
|
|
"url": "https://json.schemastore.org/package"
|
2018-02-23 20:03:44 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fileMatch": "bower.json",
|
2020-06-25 17:16:28 +00:00
|
|
|
"url": "https://json.schemastore.org/bower"
|
2018-02-23 20:03:44 +00:00
|
|
|
}
|
|
|
|
],
|
2017-06-27 19:38:56 +00:00
|
|
|
"taskDefinitions": [
|
2017-06-22 15:03:52 +00:00
|
|
|
{
|
|
|
|
"type": "npm",
|
2017-10-27 08:51:50 +00:00
|
|
|
"required": [
|
|
|
|
"script"
|
|
|
|
],
|
2017-06-22 15:03:52 +00:00
|
|
|
"properties": {
|
|
|
|
"script": {
|
|
|
|
"type": "string",
|
2018-02-28 11:27:35 +00:00
|
|
|
"description": "%taskdef.script%"
|
2017-06-22 15:03:52 +00:00
|
|
|
},
|
2017-07-19 16:38:26 +00:00
|
|
|
"path": {
|
2017-06-22 15:03:52 +00:00
|
|
|
"type": "string",
|
2018-02-28 11:27:35 +00:00
|
|
|
"description": "%taskdef.path%"
|
2017-06-22 15:03:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2017-05-24 08:47:25 +00:00
|
|
|
}
|
2018-08-14 08:44:56 +00:00
|
|
|
}
|