Skip to content

Commit 9875d4b

Browse files
authored
make a simple component library browser to see angular components (#250)
1 parent e59f43f commit 9875d4b

File tree

16 files changed

+1965
-79
lines changed

16 files changed

+1965
-79
lines changed

editor/package-lock.json

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

samples/client/angular/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ NOTE: [For the rizzcharts app](../../../a2a_agents/python/adk/samples/rizzcharts
2020
* `npm start -- restaurant`
2121
* `npm start -- contact`
2222
* `npm start -- rizzcharts`
23+
* `npm start -- gallery` (Client-only, no server required)
2324
5. Open http://localhost:4200/

samples/client/angular/angular.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,85 @@
271271
}
272272
}
273273
},
274+
"gallery": {
275+
"projectType": "application",
276+
"schematics": { },
277+
"root": "projects/gallery",
278+
"sourceRoot": "projects/gallery/src",
279+
"prefix": "app",
280+
"architect": {
281+
"build": {
282+
"builder": "@angular/build:application",
283+
"options": {
284+
"browser": "projects/gallery/src/main.ts",
285+
"tsConfig": "projects/gallery/tsconfig.app.json",
286+
"preserveSymlinks": true,
287+
"assets": [
288+
{
289+
"glob": "**/*",
290+
"input": "projects/gallery/public"
291+
}
292+
],
293+
"styles": [
294+
"projects/gallery/src/styles.css"
295+
]
296+
},
297+
"configurations": {
298+
"production": {
299+
"budgets": [
300+
{
301+
"type": "initial",
302+
"maximumWarning": "500kB",
303+
"maximumError": "1MB"
304+
},
305+
{
306+
"type": "anyComponentStyle",
307+
"maximumWarning": "4kB",
308+
"maximumError": "8kB"
309+
}
310+
],
311+
"outputHashing": "all"
312+
},
313+
"development": {
314+
"optimization": false,
315+
"extractLicenses": false,
316+
"sourceMap": true
317+
}
318+
},
319+
"defaultConfiguration": "production"
320+
},
321+
"serve": {
322+
"builder": "@angular/build:dev-server",
323+
"configurations": {
324+
"production": {
325+
"buildTarget": "gallery:build:production"
326+
},
327+
"development": {
328+
"buildTarget": "gallery:build:development"
329+
}
330+
},
331+
"defaultConfiguration": "development"
332+
},
333+
"extract-i18n": {
334+
"builder": "@angular/build:extract-i18n"
335+
},
336+
"test": {
337+
"builder": "@angular/build:karma",
338+
"options": {
339+
"tsConfig": "projects/gallery/tsconfig.spec.json",
340+
"assets": [
341+
{
342+
"glob": "**/*",
343+
"input": "projects/gallery/public"
344+
}
345+
],
346+
"styles": [
347+
"projects/gallery/src/styles.css"
348+
]
349+
}
350+
}
351+
}
352+
},
274353
"a2a-chat-canvas": {
275354
"projectType": "library",
276355
"root": "projects/a2a-chat-canvas",

0 commit comments

Comments
 (0)