Skip to content

Commit 453d061

Browse files
committed
Add peer verificartion examples that are include in regular ci job
1 parent d626f72 commit 453d061

20 files changed

+6081
-19
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@ jobs:
5353
run: |
5454
npm run test:install
5555
npm run test:run
56+
57+
- name: Execute peer verification
58+
shell: bash
59+
run: |
60+
bash ./verify/buildPeers.sh

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"volta": {
99
"node": "22.13.1",
1010
"npm": "10.9.2",
11-
"pnpm": "9.15.0",
12-
"yarn": "4.5.3"
11+
"pnpm": "9.15.4",
12+
"yarn": "4.6.0"
1313
},
1414
"devDependencies": {
1515
"@codingame/esbuild-import-meta-url-plugin": "~1.0.2",

verify/buildAll.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
$MyPath = Split-Path -Path $MyInvocation.MyCommand.Path -Parent
22

3+
# peer tests first
4+
Set-Location $MyPath/peerNpm; npm run verify:ci
5+
Set-Location $MyPath/peerPnpm; pnpm run verify:ci
6+
Set-Location $MyPath/peerYarn; yarn run verify:ci
7+
38
# yarn first, because it usually has the most problems
49
Set-Location $MyPath/yarn; npm run verify:ci
510
Set-Location $MyPath/vite; npm run verify:ci

verify/buildAll.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
MyPath=$(realpath $(dirname $0))
22

3+
# peer tests first
4+
cd $MyPath/peerNpm; npm run verify:ci
5+
cd $MyPath/peerPnpm; pnpm run verify:ci
6+
cd $MyPath/peerYarn; yarn run verify:ci
7+
38
# yarn first, because it usually has the most problems
49
cd $MyPath/yarn; npm run verify:ci
510
cd $MyPath/vite; npm run verify:ci

verify/buildPeers.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$MyPath = Split-Path -Path $MyInvocation.MyCommand.Path -Parent
2+
3+
Set-Location $MyPath/peerNpm; npm run verify:ci
4+
Set-Location $MyPath/peerPnpm; pnpm run verify:ci
5+
Set-Location $MyPath/peerYarn; npm run verify:ci

verify/buildPeers.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MyPath=$(realpath $(dirname $0))
2+
3+
cd $MyPath/peerNpm; npm run verify:ci
4+
cd $MyPath/peerPnpm; pnpm run verify:ci
5+
cd $MyPath/peerYarn; npm run verify:ci

verify/peerNpm/package-lock.json

Lines changed: 2093 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

verify/peerNpm/package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@typefox/peer-check",
2+
"name": "@typefox/peer-check-npm",
33
"version": "0.0.0",
44
"private": true,
55
"type": "module",
@@ -12,11 +12,15 @@
1212
"npm": "10.9.2"
1313
},
1414
"dependencies": {
15-
"monaco-languageclient": "~9.2.0-next.1"
15+
"monaco-languageclient": "~9.2.0-next.1",
16+
"vscode": "npm:@codingame/[email protected]"
1617
},
17-
"overrides": {
18-
"vscode": {
19-
"@codingame/monaco-vscode-extension-api": "13.0.0"
20-
}
18+
"devDependencies": {
19+
"typescript": "~5.7.3"
20+
},
21+
"scripts": {
22+
"build": "tsc --build tsconfig.json",
23+
"showconfig": "tsc --showconfig",
24+
"verify:ci": "npm install && npm run build"
2125
}
2226
}

verify/peerNpm/src/testerNpm.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* --------------------------------------------------------------------------------------------
2+
* Copyright (c) 2024 TypeFox and others.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
* ------------------------------------------------------------------------------------------ */
5+
6+
import * as vscode from 'vscode';
7+
8+
console.log(vscode.workspace.name);

verify/peerNpm/tsconfig.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2022",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
6+
"lib": [
7+
"ES2022",
8+
"DOM",
9+
"DOM.Iterable"
10+
],
11+
"rootDir": ".",
12+
"noEmit": true,
13+
"skipLibCheck": true
14+
},
15+
"include": [
16+
"**/src/**/*.ts"
17+
],
18+
"exclude": [
19+
"**/node_modules/**/*"
20+
]
21+
}

0 commit comments

Comments
 (0)