vscode-npm-scripts/package.json

278 строки
6.9 KiB
JSON

{
"name": "vscode-npm-script",
"description": "npm support for VS Code",
"displayName": "npm",
"version": "0.3.29",
"publisher": "eg2",
"license": "MIT",
"icon": "npm_icon.png",
"engines": {
"vscode": "^1.66.0"
},
"capabilities": {
"virtualWorkspaces": {
"supported": false,
"description": "Npm scripts running is not possible in virtual workspaces."
},
"untrustedWorkspaces": {
"supported": false,
"description": "The extension requires workspace trust because it runs npm scripts from the workspace."
}
},
"homepage": "https://github.com/Microsoft/vscode-npm-scripts/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-npm-scripts.git"
},
"bugs": {
"url": "https://github.com/Microsoft/vscode-npm-scripts/issues"
},
"categories": [
"Other"
],
"keywords": [
"multi-root ready"
],
"activationEvents": [
"onCommand:npm-script.showKeybindingsChangedWarning",
"onCommand:npm-script.install",
"onCommand:npm-script.run",
"onCommand:npm-script.showOutput",
"onCommand:npm-script.rerun-last-script",
"onCommand:npm-script.terminate-script",
"onCommand:npm-script.test",
"onCommand:npm-script.start",
"onCommand:npm-script.audit",
"onCommand:npm-script.outdated",
"onCommand:npm-script.init"
],
"main": "./dist/extension",
"contributes": {
"commands": [
{
"command": "npm-script.install",
"title": "Install Dependencies",
"category": "npm",
"icon": "./assets/install.png"
},
{
"command": "npm-script.terminate-script",
"title": "Terminate Script",
"category": "npm"
},
{
"command": "npm-script.run",
"title": "Run Script",
"category": "npm"
},
{
"command": "npm-script.start",
"title": "Start",
"category": "npm",
"icon": "./assets/start.png"
},
{
"command": "npm-script.showOutput",
"title": "Show Output",
"category": "npm"
},
{
"command": "npm-script.rerun-last-script",
"title": "Rerun Last Script",
"category": "npm"
},
{
"command": "npm-script.test",
"title": "Run Test",
"category": "npm",
"icon": "./assets/test.png"
},
{
"command": "npm-script.build",
"title": "Run Build",
"category": "npm",
"icon": "./assets/build.png"
},
{
"command": "npm-script.audit",
"title": "Run Audit",
"category": "npm"
},
{
"command": "npm-script.outdated",
"title": "Run Outdated",
"category": "npm"
},
{
"command": "npm-script.init",
"title": "Run Init",
"category": "npm"
}
],
"menus": {
"explorer/context": [
{
"when": "resourceFilename == 'package.json'",
"command": "npm-script.install",
"group": "navigation@+1"
}
],
"touchBar": [
{
"command": "npm-script.install",
"group": "navigation@+1",
"when": "config.npm.enableTouchbar"
},
{
"command": "npm-script.build",
"group": "navigation@+4",
"when": "config.npm.enableTouchbar"
},
{
"command": "npm-script.test",
"group": "navigation@+3",
"when": "config.npm.enableTouchbar"
},
{
"command": "npm-script.start",
"group": "navigation@+2",
"when": "config.npm.enableTouchbar"
}
]
},
"keybindings": [
{
"command": "npm-script.showKeybindingsChangedWarning",
"key": "Ctrl+R",
"mac": "Cmd+R",
"when": "!config.npm.keybindingsChangedWarningShown && !config.npm.oldKeybindings.enable"
},
{
"command": "npm-script.showOutput",
"key": "Ctrl+R L",
"mac": "Cmd+R L",
"when": "!terminalFocus && config.npm.oldKeybindings.enable"
},
{
"command": "npm-script.run",
"key": "Ctrl+R Shift+R",
"mac": "Cmd+R Shift+R",
"when": "!terminalFocus && config.npm.oldKeybindings.enable"
},
{
"command": "npm-script.rerun-last-script",
"key": "Ctrl+R R",
"mac": "Cmd+R R",
"when": "!terminalFocus && config.npm.oldKeybindings.enable"
},
{
"command": "npm-script.terminate-script",
"key": "Ctrl+R Shift+X",
"mac": "Cmd+R Shift+X",
"when": "!terminalFocus && config.npm.oldKeybindings.enable"
},
{
"command": "npm-script.test",
"key": "Ctrl+R T",
"mac": "Cmd+R T",
"when": "!terminalFocus && config.npm.oldKeybindings.enable"
},
{
"command": "npm-script.run",
"key": "Ctrl+K Shift+R",
"mac": "Cmd+K Shift+R",
"when": "!terminalFocus && !config.npm.oldKeybindings.enable"
},
{
"command": "npm-script.rerun-last-script",
"key": "Ctrl+K L",
"mac": "Cmd+K L",
"when": "!terminalFocus && !config.npm.oldKeybindings.enable"
},
{
"command": "npm-script.terminate-script",
"key": "Ctrl+K Shift+X",
"mac": "Cmd+K Shift+X",
"when": "!terminalFocus && !config.npm.oldKeybindings.enable"
},
{
"command": "npm-script.test",
"key": "Ctrl+K T",
"mac": "Cmd+K T",
"when": "!terminalFocus && !config.npm.oldKeybindings.enable"
}
],
"configuration": {
"type": "object",
"title": "npm Script Runner",
"properties": {
"npm.runInTerminal": {
"type": "boolean",
"default": true,
"description": "Run npm commands in a terminal, otherwise shows the output in the output panel"
},
"npm.includeDirectories": {
"type": "array",
"scope": "resource",
"default": [],
"description": "Look for 'package.json' files in these directories"
},
"npm.useRootDirectory": {
"type": "boolean",
"scope": "resource",
"default": true,
"description": "Look for 'package.json' in the root directory of the workspace"
},
"npm.bin": {
"type": "string",
"default": "npm",
"description": "npm bin name"
},
"npm.enableTouchbar": {
"type": "boolean",
"scope": "resource",
"default": false,
"description": "Enable npm commands in the macOS touchbar."
},
"npm.oldKeybindings.enable": {
"type": "boolean",
"scope": "resource",
"default": false,
"description": "Enable the old cmd/ctrl R chording key bindings."
},
"npm.keybindingsChangedWarningShown": {
"type": "boolean",
"scope": "application",
"default": false,
"description": "Show a warning that the keybindings have changed."
}
}
}
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"test": "npm run compile && node ./node_modules/vscode/bin/test",
"lint": "eslint -c .eslintrc.js --ext .ts src/*.ts"
},
"devDependencies": {
"@types/mocha": "^2.2.32",
"@types/node": "^7.0.43",
"@types/vscode": "^1.66.0",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"eslint": "^8.0.1",
"ts-loader": "^9.2.6",
"typescript": "^4.4.4",
"webpack": "^5.58.2",
"webpack-cli": "^4.9.1",
"vscode-test": "^1.6.1"
},
"dependencies": {
"jsonc-parser": "^2.1.0",
"run-in-terminal": "^0.0.2",
"tree-kill": "^1.2.2"
}
}