Skip to content

Commit 0a7026f

Browse files
committed
Fix verification builds
- Angular verification. Switch to esbuild based build
1 parent 6e129f5 commit 0a7026f

13 files changed

+55
-104
lines changed

verify/angular/angular.json

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,86 +3,68 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"angular-client": {
6+
"ng-mlc": {
77
"projectType": "application",
88
"schematics": {},
99
"root": "",
1010
"sourceRoot": "src",
1111
"prefix": "app",
1212
"architect": {
1313
"build": {
14-
"builder": "@angular-builders/custom-webpack:browser",
14+
"builder": "@angular-builders/custom-esbuild:application",
1515
"options": {
16-
"outputPath": "dist/angular-client",
16+
"outputPath": "dist/ng-mlc",
1717
"index": "src/index.html",
18-
"main": "src/main.ts",
18+
"browser": "src/main.ts",
19+
"tsConfig": "tsconfig.json",
20+
// "plugins": ["./node_modules/@codingame/esbuild-import-meta-url-plugin/dist/esbuildImportMetaUrlPlugin.js"],
1921
"polyfills": [
2022
"zone.js"
2123
],
22-
"tsConfig": "tsconfig.json",
23-
"assets": [
24-
{
25-
"glob": "**/*",
26-
"input": "./node_modules/monaco-editor-wrapper/dist",
27-
"output": "assets/monaco-editor-wrapper/dist"
28-
}
29-
],
24+
"assets": [],
3025
"styles": [],
3126
"scripts": [],
32-
"customWebpackConfig": {
33-
"path": "./custom-webpack.config.js"
34-
},
27+
"aot": false,
28+
"optimization": false,
29+
"sourceMap": true,
30+
"namedChunks": false,
31+
"extractLicenses": false,
3532
"allowedCommonJsDependencies": [
36-
"vscode-jsonrpc",
3733
"vscode-languageclient",
3834
"vscode-languageserver-protocol",
39-
"vscode-semver",
35+
"vscode-jsonrpc",
4036
"vscode-oniguruma",
4137
"vscode-textmate",
42-
"vscode-marked"
38+
"@vscode/iconv-lite-umd"
4339
]
4440
},
4541
"configurations": {
4642
"production": {
47-
"buildOptimizer": true,
4843
"aot": true,
4944
"optimization": true,
50-
"outputHashing": "all",
5145
"sourceMap": false,
5246
"namedChunks": false,
53-
"vendorChunk": false,
5447
"extractLicenses": true
5548
},
5649
"development": {
57-
"buildOptimizer": false,
58-
"aot": false,
59-
"optimization": false,
60-
"outputHashing": "none",
61-
"sourceMap": true,
62-
"namedChunks": true,
63-
"vendorChunk": true,
64-
"extractLicenses": false
6550
}
6651
},
6752
"defaultConfiguration": "development"
6853
},
6954
"serve": {
70-
"builder": "@angular-builders/custom-webpack:dev-server",
55+
"builder": "@angular-builders/custom-esbuild:dev-server",
7156
"configurations": {
7257
"production": {
73-
"browserTarget": "angular-client:build:production"
58+
"buildTarget": "ng-mlc:build:production"
7459
},
7560
"development": {
76-
"browserTarget": "angular-client:build:development"
61+
"buildTarget": "ng-mlc:build:development"
7762
}
7863
},
7964
"defaultConfiguration": "development"
8065
},
8166
"extract-i18n": {
82-
"builder": "@angular-devkit/build-angular:extract-i18n",
83-
"options": {
84-
"browserTarget": "angular-client:build"
85-
}
67+
"builder": "@angular/build:extract-i18n"
8668
}
8769
}
8870
}

verify/angular/custom-webpack.config.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

verify/angular/package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,28 @@
1616
"reset:repo": "git clean -f -X -d"
1717
},
1818
"dependencies": {
19-
"@angular/compiler": "~18.1.0",
20-
"@angular/core": "~18.1.0",
21-
"@angular/platform-browser": "~18.1.0",
22-
"@angular/platform-browser-dynamic": "~18.1.0",
19+
"@angular/compiler": "~18.2.8",
20+
"@angular/core": "~18.2.8",
21+
"@angular/platform-browser": "~18.2.8",
22+
"@angular/platform-browser-dynamic": "~18.2.8",
2323
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~10.0.1",
24-
"monaco-editor-wrapper": "../../packages/wrapper",
25-
"monaco-languageclient-examples": "../../packages/examples",
24+
"monaco-editor-wrapper": "~6.0.0-next.2",
25+
"monaco-languageclient-examples": "~2024.10.1",
2626
"vscode": "npm:@codingame/monaco-vscode-api@~10.0.1",
2727
"rxjs": "~7.8.1",
28-
"zone.js": "~0.14.7"
28+
"zone.js": "~0.14.10"
2929
},
3030
"devDependencies": {
31-
"@angular-builders/custom-webpack": "~18.0.0",
32-
"@angular-devkit/build-angular": "~18.1.0",
33-
"@angular/cli": "~18.1.0",
34-
"@angular/compiler-cli": "~18.1.0",
35-
"@types/node": "~20.14.10",
36-
"@types/vscode": "~1.91.0",
31+
"@angular-builders/custom-esbuild": "~18.0.0",
32+
"@angular/cli": "~18.2.8",
33+
"@angular/compiler-cli": "~18.2.8",
34+
"@codingame/esbuild-import-meta-url-plugin": "~1.0.2",
35+
"@types/node": "~20.16.11",
36+
"@types/vscode": "~1.94.0",
3737
"css-loader": "~7.1.2",
3838
"shx": "~0.3.4",
39-
"style-loader": "~4.0.0"
39+
"style-loader": "~4.0.0",
40+
"typescript": "~5.5.4"
4041
},
4142
"volta": {
4243
"node": "20.18.0",

verify/angular/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"strict": true,
1919
"strictPropertyInitialization": false,
2020
"importHelpers": true,
21-
"downlevelIteration": false,
2221
"noImplicitReturns": true,
2322
"noUnusedParameters": true,
2423
"noUnusedLocals": true,

verify/buildAll.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Set-Location $MyPath/angular; npm run verify:ci
66
Set-Location $MyPath/pnpm; pnpm run verify:ci
77

88
# yarn example is instable because we can't refence local file based dependencies
9-
# Set-Location $MyPath/yarn; yarn run verify:ci
9+
Set-Location $MyPath/yarn; yarn run verify:ci

verify/buildAll.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ cd $MyPath/angular; npm run verify:ci
66
cd $MyPath/pnpm; pnpm run verify:ci
77

88
# yarn example is instable because we can't refence local file based dependencies
9-
# cd $MyPath/yarn; yarn run verify:ci
9+
cd $MyPath/yarn; yarn run verify:ci

verify/pnpm/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"type": "module",
66
"dependencies": {
77
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~10.0.1",
8-
"monaco-editor-wrapper": "../../packages/wrapper",
9-
"monaco-languageclient-examples": "../../packages/examples",
8+
"monaco-editor-wrapper": "~6.0.0-next.2",
9+
"monaco-languageclient-examples": "~2024.10.1",
1010
"vscode": "npm:@codingame/monaco-vscode-api@~10.0.1"
1111
},
1212
"devDependencies": {
1313
"shx": "~0.3.4",
14-
"vite": "~5.3.3"
14+
"vite": "~5.4.8"
1515
},
1616
"volta": {
1717
"node": "20.18.0",
18-
"pnpm": "9.9.0"
18+
"pnpm": "9.12.1"
1919
},
2020
"scripts": {
2121
"verify": "pnpm install && pnpm run build && pnpm run start",

verify/pnpm/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ import { defineConfig } from 'vite';
88
export default defineConfig({
99
preview: {
1010
port: 8083
11+
},
12+
worker: {
13+
format: 'es'
1114
}
1215
});

verify/vite/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"type": "module",
66
"dependencies": {
77
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~10.0.1",
8-
"monaco-editor-wrapper": "../../packages/wrapper",
9-
"monaco-languageclient-examples": "../../packages/examples",
8+
"monaco-editor-wrapper": "~6.0.0-next.2",
9+
"monaco-languageclient-examples": "~2024.10.1",
1010
"vscode": "npm:@codingame/monaco-vscode-api@~10.0.1"
1111
},
1212
"devDependencies": {
1313
"shx": "~0.3.4",
14-
"vite": "~5.3.3"
14+
"vite": "~5.4.8"
1515
},
1616
"volta": {
1717
"node": "20.18.0",

verify/vite/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ import { defineConfig } from 'vite';
88
export default defineConfig({
99
preview: {
1010
port: 8082
11+
},
12+
worker: {
13+
format: 'es'
1114
}
1215
});

verify/webpack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"type": "module",
66
"dependencies": {
77
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~10.0.1",
8-
"monaco-editor-wrapper": "../../packages/wrapper",
9-
"monaco-languageclient-examples": "../../packages/examples",
8+
"monaco-editor-wrapper": "~6.0.0-next.2",
9+
"monaco-languageclient-examples": "~2024.10.1",
1010
"vscode": "npm:@codingame/monaco-vscode-api@~10.0.1"
1111
},
1212
"devDependencies": {

verify/yarn/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"@typefox/monaco-editor-react": "~6.0.0-next.2",
88
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~10.0.1",
99
"monaco-editor-wrapper": "~6.0.0-next.2",
10-
"monaco-languageclient-examples": "~2024.9.1",
10+
"monaco-languageclient-examples": "~2024.10.1",
1111
"vscode": "npm:@codingame/monaco-vscode-api@~10.0.1",
1212
"vscode-ws-jsonrpc": "~3.3.2"
1313
},
1414
"devDependencies": {
1515
"shx": "~0.3.4",
16-
"vite": "~5.3.3"
16+
"vite": "~5.4.8"
1717
},
1818
"volta": {
1919
"node": "20.18.0",

verify/yarn/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ import { defineConfig } from 'vite';
88
export default defineConfig({
99
preview: {
1010
port: 8084
11+
},
12+
worker: {
13+
format: 'es'
1114
}
1215
});

0 commit comments

Comments
 (0)