|
1 | 1 | { |
2 | | - "name": "code-snippet", |
| 2 | + "name": "code-snippet-framework", |
3 | 3 | "displayName": "Code Snippet", |
4 | 4 | "version": "1.6.0", |
5 | | - "description": "A VSCode extension that provides a simple way to add code snippets.", |
6 | | - "publisher": "SAPOSS", |
7 | 5 | "private": true, |
8 | | - "author": { |
9 | | - "name": "SAP SE" |
10 | | - }, |
11 | | - "license": "Apache 2.0", |
12 | | - "repository": { |
13 | | - "type": "git", |
14 | | - "url": "https://github.com/SAP/code-snippet.git" |
15 | | - }, |
16 | | - "bugs": { |
17 | | - "url": "https://github.com/SAP/code-snippet/issues" |
18 | | - }, |
19 | | - "icon": "logo.png", |
20 | | - "engines": { |
21 | | - "vscode": "^1.44.2" |
22 | | - }, |
| 6 | + "description": "A VSCode extension that provides a simple way to add code snippets.", |
23 | 7 | "categories": [ |
24 | 8 | "Other" |
25 | 9 | ], |
|
30 | 14 | "tool", |
31 | 15 | "sap" |
32 | 16 | ], |
33 | | - "activationEvents": [], |
| 17 | + "bugs": { |
| 18 | + "url": "https://github.com/SAP/code-snippet/issues" |
| 19 | + }, |
| 20 | + "repository": { |
| 21 | + "type": "git", |
| 22 | + "url": "https://github.com/SAP/code-snippet.git" |
| 23 | + }, |
| 24 | + "license": "Apache 2.0", |
| 25 | + "author": { |
| 26 | + "name": "SAP SE" |
| 27 | + }, |
| 28 | + "publisher": "SAPOSS", |
34 | 29 | "main": "./dist/extension", |
| 30 | + "scripts": { |
| 31 | + "backend": "npm i && npm run compile", |
| 32 | + "bundle": "webpack --mode production", |
| 33 | + "bundle-dev": "webpack --mode development --watch", |
| 34 | + "ci": "npm-run-all clean compile coverage bundle frontend:copy package coverage coverage:copy", |
| 35 | + "clean": "rimraf ./dist ./coverage *.vsix", |
| 36 | + "clean:frontend": "cd ./dist && shx rm -rf ./media", |
| 37 | + "compile": "tsc -p ./", |
| 38 | + "coverage": "nyc mocha -p tsconfig.json --recursive test/**/*.spec.ts", |
| 39 | + "coverage:copy": "shx mkdir -p ../../coverage && shx cp -u ./reports/coverage/lcov.info ../../coverage/lcov_backend.info", |
| 40 | + "frontend:copy": "npm-run-all clean:frontend && shx cp -r ../frontend/dist/. ./dist/media/", |
| 41 | + "package": "vsce package --yarn .", |
| 42 | + "test": "mocha -p tsconfig.json --recursive test/**/*.spec.ts", |
| 43 | + "watch": "tsc -watch -p ./", |
| 44 | + "ws:run": "node ./out/src/webSocketServer/index.js" |
| 45 | + }, |
35 | 46 | "contributes": { |
36 | 47 | "commands": [ |
37 | 48 | { |
|
47 | 58 | } |
48 | 59 | } |
49 | 60 | ], |
50 | | - "menus": { |
51 | | - "commandPalette": [ |
52 | | - { |
53 | | - "command": "loadCodeSnippet", |
54 | | - "when": "false" |
55 | | - }, |
56 | | - { |
57 | | - "command": "codeSnippet.toggleOutput", |
58 | | - "when": "false" |
59 | | - } |
60 | | - ], |
61 | | - "editor/title": [ |
62 | | - { |
63 | | - "command": "codeSnippet.toggleOutput", |
64 | | - "group": "navigation", |
65 | | - "when": "codeSnippet.Focused" |
66 | | - } |
67 | | - ] |
68 | | - }, |
69 | 61 | "configuration": { |
70 | 62 | "type": "object", |
71 | 63 | "title": "Code Snippet", |
|
92 | 84 | "scope": "resource" |
93 | 85 | } |
94 | 86 | } |
| 87 | + }, |
| 88 | + "menus": { |
| 89 | + "commandPalette": [ |
| 90 | + { |
| 91 | + "command": "loadCodeSnippet", |
| 92 | + "when": "false" |
| 93 | + }, |
| 94 | + { |
| 95 | + "command": "codeSnippet.toggleOutput", |
| 96 | + "when": "false" |
| 97 | + } |
| 98 | + ], |
| 99 | + "editor/title": [ |
| 100 | + { |
| 101 | + "command": "codeSnippet.toggleOutput", |
| 102 | + "group": "navigation", |
| 103 | + "when": "codeSnippet.Focused" |
| 104 | + } |
| 105 | + ] |
95 | 106 | } |
96 | 107 | }, |
97 | | - "scripts": { |
98 | | - "ci": "npm-run-all clean compile coverage bundle frontend:copy package coverage coverage:copy", |
99 | | - "clean": "rimraf ./dist ./coverage *.vsix", |
100 | | - "backend": "npm i && npm run compile", |
101 | | - "clean:frontend": "cd ./dist && shx rm -rf ./media", |
102 | | - "frontend:copy": "npm-run-all clean:frontend && shx cp -r ../frontend/dist/. ./dist/media/", |
103 | | - "bundle": "webpack --mode production", |
104 | | - "bundle-dev": "webpack --mode development --watch", |
105 | | - "compile": "tsc -p ./", |
106 | | - "watch": "tsc -watch -p ./", |
107 | | - "package": "vsce package --yarn .", |
108 | | - "test": "mocha -p tsconfig.json --recursive test/**/*.spec.ts", |
109 | | - "coverage": "nyc mocha -p tsconfig.json --recursive test/**/*.spec.ts", |
110 | | - "coverage:copy": "shx mkdir -p ../../coverage && shx cp -u ./reports/coverage/lcov.info ../../coverage/lcov_backend.info", |
111 | | - "ws:run": "node ./out/src/webSocketServer/index.js" |
112 | | - }, |
| 108 | + "activationEvents": [], |
113 | 109 | "dependencies": { |
114 | 110 | "@sap-devx/webview-rpc": "0.3.1", |
115 | 111 | "@sap/swa-for-sapbas-vsx": "2.0.4", |
|
137 | 133 | "vsce": "^1.73.0", |
138 | 134 | "webpack": "^5.89.0", |
139 | 135 | "webpack-cli": "5.1.4" |
140 | | - } |
| 136 | + }, |
| 137 | + "engines": { |
| 138 | + "vscode": "^1.44.2" |
| 139 | + }, |
| 140 | + "icon": "logo.png" |
141 | 141 | } |
0 commit comments