blob: e8906a27144e5970e3de4401ddbdee7ff3947a90 [file] [log] [blame]
{
"name": "yard-vscode-extension",
"version": "0.28.2",
"description": "Edit yard definitions",
"license": "Apache-2.0",
"publisher": "kie-group",
"keywords": [],
"homepage": "https://github.com/kiegroup/kie-tools",
"repository": {
"type": "git",
"url": "https://github.com/kiegroup/kie-tools.git"
},
"bugs": {
"url": "https://github.com/kiegroup/kie-tools/issues"
},
"browser": "./dist/extension/extensionWeb.js",
"main": "dist/extension/extension.js",
"scripts": {
"build:dev": "rimraf dist && webpack --env dev",
"build:prod": "rimraf dist && webpack && pnpm pack:prod && pnpm test:it",
"compile": "webpack --env dev",
"lint": "run-script-if --bool \"$(build-env linters.run)\" --then \"kie-tools--eslint ./src\"",
"pack:prod": "vsce package --githubBranch main --no-dependencies -o ./dist/yard_vscode_extension_$npm_package_version.vsix",
"run:webmode": "pnpm vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --version=stable",
"test:it": "run-script-if --ignore-errors \"$(build-env integrationTests.ignoreFailures)\" --bool \"$(build-env integrationTests.run)\" --then \"pnpm test:it:clean\" \"cpr it-tests/resources it-tests-tmp/resources\" \"tsc --project tsconfig.it-tests.json --skipLibCheck --sourceMap true\" \"extest setup-and-run --yarn -c max -u -e ./test-resources -o ./it-tests/settings.json out/*.test.js\"",
"test:it:clean": "rimraf ./dist-it-tests && rimraf ./test-resources && rimraf ./out && rimraf ./it-tests-tmp && rimraf *.vsix",
"test:it:clean:offline": "rimraf ./dist-it-tests && rimraf ./out && rimraf ./it-tests-tmp && rimraf *.vsix",
"test:it:offline": "run-script-if --ignore-errors \"$(build-env integrationTests.ignoreFailures)\" --bool \"$(build-env integrationTests.run)\" --then \"pnpm test:it:clean:offline\" \"cpr it-tests/resources it-tests-tmp/resources\" \"tsc --project tsconfig.it-tests.json --skipLibCheck --sourceMap true\" \"extest setup-and-run --offline --yarn -c max -u -e ./test-resources -o it-tests/settings.json out/*.test.js\"",
"watch": "webpack --env dev"
},
"dependencies": {
"@kie-tools-core/backend": "workspace:*",
"@kie-tools-core/editor": "workspace:*",
"@kie-tools-core/envelope-bus": "workspace:*",
"@kie-tools-core/guided-tour": "workspace:*",
"@kie-tools-core/i18n": "workspace:*",
"@kie-tools-core/notifications": "workspace:*",
"@kie-tools-core/patternfly-base": "workspace:*",
"@kie-tools-core/vscode-extension": "workspace:*",
"@kie-tools-core/vscode-java-code-completion": "workspace:*",
"@kie-tools-core/workspace": "workspace:*",
"@kie-tools/yard-editor": "workspace:*",
"monaco-editor": "^0.33.0",
"monaco-yaml": "^4.0.0",
"openapi-types": "^7.0.1",
"vscode-languageserver-textdocument": "^1.0.4",
"vscode-languageserver-types": "^3.16.0",
"yaml": "^2.0.1"
},
"devDependencies": {
"@kie-tools-core/webpack-base": "workspace:*",
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/chai": "^4.2.17",
"@types/fs-extra": "^11.0.1",
"@types/mocha": "^8.2.2",
"@types/node": "^18.13.0",
"@types/selenium-webdriver": "^4.1.12",
"@types/vscode": "^1.66.0",
"@vscode/test-electron": "^2.3.0",
"@vscode/test-web": "^0.0.30",
"@vscode/vsce": "^2.18.0",
"chai": "^4.3.4",
"cpr": "^3.0.1",
"fs-extra": "^11.1.1",
"mocha": "^9.2.0",
"mocha-jenkins-reporter": "^0.4.5",
"mocha-junit-reporter": "^2.0.2",
"mocha-multi-reporters": "^1.5.1",
"monaco-editor-webpack-plugin": "^7.0.1",
"rimraf": "^3.0.2",
"sanitize-filename-ts": "^1.0.2",
"selenium-webdriver": "^4.8.1",
"typescript": "^4.4.2",
"vscode-extension-tester": "5.5.2",
"webpack": "^5.36.2",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.7.3",
"webpack-merge": "^5.8.0"
},
"engines": {
"vscode": "^1.66.0"
},
"displayName": "Kogito yard Editor",
"categories": [
"Other"
],
"contributes": {
"commands": [
{
"command": "extension.kogito.yard.setupAutomaticallyOpenDiagramEditorAlongsideTextEditor",
"title": "yard: Setup automatically open Diagram Editor alongside Text Editor"
},
{
"command": "extension.kogito.yard.openAsDiagram",
"icon": "$(open-preview)",
"title": "yard: Open as Diagram (to the side)"
},
{
"command": "extension.kogito.yard.openAsSource",
"icon": "$(go-to-file)",
"title": "yard: Open as Source"
}
],
"configuration": {
"properties": {
"kogito.yard.automaticallyOpenDiagramEditorAlongsideTextEditor": {
"default": "Ask next time",
"enum": [
"Open automatically",
"Do not open",
"Ask next time"
],
"markdownDescription": "When opening yard files, decide whether or not to open the Diagram Editor alongside the text editor. Regardless of the configured option, you can always open the yard Diagram Editor using the 'Open as Diagram' button.",
"type": "string"
},
"kogito.yard.runOnSave": {
"markdownDescription": "Execute a command on each save operation of the yard file.",
"type": "string"
}
},
"title": "yard Editor"
},
"configurationDefaults": {
"[yaml]": {
"editor.wordBasedSuggestions": false
},
"[yard-json]": {
"editor.wordBasedSuggestions": false
},
"[yard-yaml]": {
"editor.wordBasedSuggestions": false
},
"files.associations": {
"*.yard.yaml": "yaml",
"*.yard.yml": "yaml"
}
},
"customEditors": [
{
"displayName": "yard Editor",
"priority": "option",
"selector": [
{
"filenamePattern": "*.{yard.yaml,yard.yml}"
}
],
"viewType": "kieKogitoWebviewEditorsYard"
}
],
"grammars": [
{
"language": "yard-yaml",
"path": "./syntaxes/YAML.tmLanguage.json",
"scopeName": "source.yaml"
}
],
"keybindings": [
{
"command": "extension.kogito.yard.openAsDiagram",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.yard\\.(yaml|yml)$/"
},
{
"command": "extension.kogito.yard.openAsSource",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "activeCustomEditorId == kieKogitoWebviewEditorsYard"
}
],
"languages": [
{
"aliases": [
"yard (YAML)",
"yard.yaml",
"yard.yml"
],
"configuration": "./languageConfiguration/yamlLanguageConfiguration.json",
"extensions": [
".yard.yml",
".yard.yaml"
],
"id": "yard-yaml"
}
],
"menus": {
"commandPalette": [
{
"command": "extension.kogito.yard.openAsSource",
"when": "activeCustomEditorId == kieKogitoWebviewEditorsYard"
},
{
"command": "extension.kogito.yard.openAsDiagram",
"when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.yard\\.(yaml|yml)/"
}
],
"editor/title": [
{
"command": "extension.kogito.yard.openAsSource",
"group": "navigation",
"when": "activeCustomEditorId == kieKogitoWebviewEditorsYard"
},
{
"command": "extension.kogito.yard.openAsDiagram",
"group": "navigation",
"when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.yard\\.(yaml|yml)/"
}
]
}
},
"activationEvents": [
"onLanguage:yaml",
"onLanguage:yard-yaml",
"onCustomEditor:kieKogitoWebviewEditorsYard"
],
"icon": "icon.png",
"capabilities": {
"untrustedWorkspaces": {
"supported": false
}
},
"vsce": {
"dependencies": false
}
}