Skip to content

Commit 628ea11

Browse files
authored
feat: package name is changed (#291)
BREAKING CHANGE: VS Code Marketplace Publishing Support
1 parent fd29017 commit 628ea11

File tree

5 files changed

+117
-117
lines changed

5 files changed

+117
-117
lines changed
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
{
22
"name": "vscode-snippet-contrib",
33
"displayName": "vscode-snippet-contrib",
4-
"description": "",
54
"version": "1.3.1",
6-
"publisher": "SAPOSS",
75
"private": true,
8-
"engines": {
9-
"vscode": "^1.44.2"
10-
},
6+
"description": "",
7+
"categories": [
8+
"Other"
9+
],
1110
"repository": {
1211
"type": "git",
1312
"url": "https://github.com/SAP/code-snippet",
1413
"directory": "vscode-snippet-contrib"
1514
},
15+
"publisher": "SAPOSS",
1616
"main": "./out/src/extension.js",
17-
"extensionDependencies": [
18-
"saposs.code-snippet"
19-
],
20-
"categories": [
21-
"Other"
22-
],
23-
"activationEvents": [
24-
"onCommand:extension.showCodeSnippetContrib"
25-
],
17+
"scripts": {
18+
"ci": "npm-run-all clean compile",
19+
"clean": "rimraf ./dist",
20+
"compile": "tsc -p .",
21+
"package": "vsce package --yarn .",
22+
"watch": "tsc -p . --watch"
23+
},
2624
"contributes": {
2725
"commands": [
2826
{
@@ -40,13 +38,9 @@
4038
]
4139
}
4240
},
43-
"scripts": {
44-
"ci": "npm-run-all clean compile",
45-
"clean": "rimraf ./dist",
46-
"package": "vsce package --yarn .",
47-
"compile": "tsc -p .",
48-
"watch": "tsc -p . --watch"
49-
},
41+
"activationEvents": [
42+
"onCommand:extension.showCodeSnippetContrib"
43+
],
5044
"dependencies": {
5145
"@sap-devx/code-snippet-types": "^1.1.3",
5246
"comment-json": "2.1.0",
@@ -58,5 +52,11 @@
5852
"@types/fs-extra": "7.0.0",
5953
"@types/lodash": "^4.14.150",
6054
"@types/vscode": "^1.48.0"
55+
},
56+
"extensionDependencies": [
57+
"saposs.code-snippet-framework"
58+
],
59+
"engines": {
60+
"vscode": "^1.44.2"
6161
}
6262
}

package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"private": true,
44
"workspaces": {
55
"packages": [
6-
"packages/*",
7-
"examples/*"
6+
"examples/*",
7+
"packages/*"
88
],
99
"nohoist": [
1010
"**/@types/jest",
@@ -13,20 +13,44 @@
1313
]
1414
},
1515
"scripts": {
16-
"release:version": "lerna version",
17-
"release:publish": "lerna publish from-git --yes --no-verify-access",
1816
"ci": "npm-run-all coverage:clean legal:* format:validate lint:validate ci:subpackages coverage:merge",
1917
"ci:subpackages": "lerna run ci",
2018
"compile": "lerna run clean && tsc --build",
2119
"compile:watch": "lerna run clean && tsc --build --watch",
20+
"coverage:clean": "rimraf ./coverage",
21+
"coverage:merge": "lcov-result-merger \"./coverage/lcov*.info\" \"./coverage/lcov.info\"",
2222
"format:fix": "prettier --write \"**/*.@(js|ts|vue)\" --ignore-path=.gitignore",
2323
"format:validate": "prettier --check \"**/*.@(js|ts|vue)\" --ignore-path=.gitignore",
24+
"legal:copy": "lerna exec \"shx cp -r ../../.reuse .reuse && shx cp -r ../../LICENSES LICENSES\"",
25+
"legal:delete": "lerna exec \"shx rm -rf .reuse LICENSES\" || true",
2426
"lint:fix": "eslint . --ext=js,ts,vue --fix --max-warnings=0 --ignore-path=.gitignore",
2527
"lint:validate": "eslint . --ext=js,ts,vue --max-warnings=0 --ignore-path=.gitignore",
26-
"coverage:clean": "rimraf ./coverage",
27-
"coverage:merge": "lcov-result-merger \"./coverage/lcov*.info\" \"./coverage/lcov.info\"",
28-
"legal:delete": "lerna exec \"shx rm -rf .reuse LICENSES\" || true",
29-
"legal:copy": "lerna exec \"shx cp -r ../../.reuse .reuse && shx cp -r ../../LICENSES LICENSES\""
28+
"release:publish": "lerna publish from-git --yes --no-verify-access",
29+
"release:version": "lerna version"
30+
},
31+
"husky": {
32+
"hooks": {
33+
"pre-commit": "lint-staged",
34+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
35+
}
36+
},
37+
"commitlint": {
38+
"extends": [
39+
"@commitlint/config-conventional"
40+
]
41+
},
42+
"lint-staged": {
43+
"*.{ts,js,vue}": [
44+
"eslint --fix --max-warnings=0 --ignore-pattern=!.*"
45+
],
46+
"*.{js,ts,vue}": [
47+
"prettier --write"
48+
]
49+
},
50+
"config": {
51+
"commitizen": {
52+
"path": "cz-conventional-changelog"
53+
}
3054
},
3155
"dependencies": {},
3256
"devDependencies": {
@@ -54,29 +78,5 @@
5478
"rimraf": "3.0.2",
5579
"shx": "0.3.3",
5680
"typescript": "~4.5.0"
57-
},
58-
"husky": {
59-
"hooks": {
60-
"pre-commit": "lint-staged",
61-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
62-
}
63-
},
64-
"lint-staged": {
65-
"*.{ts,js,vue}": [
66-
"eslint --fix --max-warnings=0 --ignore-pattern=!.*"
67-
],
68-
"*.{js,ts,vue}": [
69-
"prettier --write"
70-
]
71-
},
72-
"config": {
73-
"commitizen": {
74-
"path": "cz-conventional-changelog"
75-
}
76-
},
77-
"commitlint": {
78-
"extends": [
79-
"@commitlint/config-conventional"
80-
]
8181
}
8282
}

packages/backend/package.json

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
{
2-
"name": "code-snippet",
2+
"name": "code-snippet-framework",
33
"displayName": "Code Snippet",
44
"version": "1.6.0",
5-
"description": "A VSCode extension that provides a simple way to add code snippets.",
6-
"publisher": "SAPOSS",
75
"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.",
237
"categories": [
248
"Other"
259
],
@@ -30,8 +14,35 @@
3014
"tool",
3115
"sap"
3216
],
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",
3429
"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+
},
3546
"contributes": {
3647
"commands": [
3748
{
@@ -47,25 +58,6 @@
4758
}
4859
}
4960
],
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-
},
6961
"configuration": {
7062
"type": "object",
7163
"title": "Code Snippet",
@@ -92,24 +84,28 @@
9284
"scope": "resource"
9385
}
9486
}
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+
]
95106
}
96107
},
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": [],
113109
"dependencies": {
114110
"@sap-devx/webview-rpc": "0.3.1",
115111
"@sap/swa-for-sapbas-vsx": "2.0.4",
@@ -137,5 +133,9 @@
137133
"vsce": "^1.73.0",
138134
"webpack": "^5.89.0",
139135
"webpack-cli": "5.1.4"
140-
}
136+
},
137+
"engines": {
138+
"vscode": "^1.44.2"
139+
},
140+
"icon": "logo.png"
141141
}

packages/frontend/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
"name": "code-snippet-frontend",
33
"displayName": "Code Snippet Frontend",
44
"version": "1.6.0",
5-
"publisher": "SAP",
6-
"license": "Apache 2.0",
7-
"description": "Frontend for the Code Snippet framework",
85
"private": true,
6+
"description": "Frontend for the Code Snippet framework",
7+
"license": "Apache 2.0",
8+
"publisher": "SAP",
99
"main": "index.js",
1010
"scripts": {
11-
"ci": "npm-run-all clean build test coverage:copy",
12-
"clean": "rimraf ./dist ./coverage",
1311
"build": "vite build",
1412
"build-dev": "vite build --mode development",
13+
"ci": "npm-run-all clean build test coverage:copy",
14+
"clean": "rimraf ./dist ./coverage",
15+
"coverage:copy": "shx mkdir -p ../../coverage && shx cp -u ./coverage/lcov.info ../../coverage/lcov_frontend.info",
1516
"lint": "vue-cli-service lint",
16-
"test": "jest -w 1 --colors",
1717
"serve": "vite",
18-
"coverage:copy": "shx mkdir -p ../../coverage && shx cp -u ./coverage/lcov.info ../../coverage/lcov_frontend.info"
18+
"test": "jest -w 1 --colors"
1919
},
2020
"dependencies": {
2121
"@mdi/font": "5.1.45",

packages/types/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@sap-devx/code-snippet-types",
3-
"description": "code-snippet types",
43
"version": "1.1.3",
5-
"license": "Apache-2.0",
4+
"description": "code-snippet types",
65
"repository": {
76
"type": "git",
87
"url": "https://github.com/SAP/code-snippet.git"
98
},
9+
"license": "Apache-2.0",
1010
"typings": "./api.d.ts",
1111
"files": [
1212
".reuse",

0 commit comments

Comments
 (0)