Skip to content

Commit 68a8076

Browse files
authored
feat: add agent-cli for every example (#2217)
1 parent af21e40 commit 68a8076

File tree

15 files changed

+519
-619
lines changed

15 files changed

+519
-619
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
2+
--- START: DB UX Copilot Instructions – do not edit below ---
3+
4+
# @db-ux/core-components
5+
## Common AI mistakes
6+
7+
### `DBButton` or `db-button`
8+
9+
- available variants are `outline`, `brand`, `filled`, `ghost`
10+
- always use variant `outline` as default
11+
- use variant `brand` as CTA or primary action
12+
- if `noText`/`no-text` property is used add a `DBTooltip` or `db-tooltip` inside the Button
13+
- always add a `type` as property as best practise
14+
15+
16+
# @db-ux/core-foundations
17+
## CSS
18+
19+
- If you use CSS, follow these rules:
20+
- for `variables` like, sizing, spacing, elevation, border or container-size use the file node_modules/@db-ux/core-foundations/agent/css/Variables.md
21+
22+
## SCSS
23+
24+
- If you use SCSS, follow these rules:
25+
- for `variables` like, sizing, spacing, elevation, border or container-size use the file node_modules/@db-ux/core-foundations/agent/scss/Variables.md
26+
27+
## Tailwind
28+
29+
- If you use Tailwind, follow these rules:
30+
- for `variables` like, sizing, spacing, elevation, border or container-size use the file node_modules/@db-ux/core-foundations/agent/tailwind/Variables.md
31+
- Always stick to the variables. Don't use values like `p-4` or `m-[16px]`; use `p-fix-xs` or `m-fix-md` instead.
32+
33+
34+
# @db-ux/ngx-core-components
35+
- Use "@db-ux/ngx-core-components" as import for components:
36+
- use for `DBDrawer` or `Drawer` the file node_modules/@db-ux/ngx-core-components/agent/Drawer.md
37+
- use for `DBTooltip` or `Tooltip` the file node_modules/@db-ux/ngx-core-components/agent/Tooltip.md
38+
- use for `DBTextarea` or `Textarea` the file node_modules/@db-ux/ngx-core-components/agent/Textarea.md
39+
- use for `DBTag` or `Tag` the file node_modules/@db-ux/ngx-core-components/agent/Tag.md
40+
- use for `DBTabs` or `Tabs` the file node_modules/@db-ux/ngx-core-components/agent/Tabs.md
41+
- use for `DBTabItem` or `TabItem` the file node_modules/@db-ux/ngx-core-components/agent/TabItem.md
42+
- use for `DBSwitch` or `Switch` the file node_modules/@db-ux/ngx-core-components/agent/Switch.md
43+
- use for `DBStack` or `Stack` the file node_modules/@db-ux/ngx-core-components/agent/Stack.md
44+
- use for `DBSelect` or `Select` the file node_modules/@db-ux/ngx-core-components/agent/Select.md
45+
- use for `DBSection` or `Section` the file node_modules/@db-ux/ngx-core-components/agent/Section.md
46+
- use for `DBRadio` or `Radio` the file node_modules/@db-ux/ngx-core-components/agent/Radio.md
47+
- use for `DBPopover` or `Popover` the file node_modules/@db-ux/ngx-core-components/agent/Popover.md
48+
- use for `DBPage` or `Page` the file node_modules/@db-ux/ngx-core-components/agent/Page.md
49+
- use for `DBNotification` or `Notification` the file node_modules/@db-ux/ngx-core-components/agent/Notification.md
50+
- use for `DBNavigationItem` or `NavigationItem` the file node_modules/@db-ux/ngx-core-components/agent/NavigationItem.md
51+
- use for `DBNavigation` or `Navigation` the file node_modules/@db-ux/ngx-core-components/agent/Navigation.md
52+
- use for `DBLink` or `Link` the file node_modules/@db-ux/ngx-core-components/agent/Link.md
53+
- use for `DBInput` or `Input` the file node_modules/@db-ux/ngx-core-components/agent/Input.md
54+
- use for `DBInfotext` or `Infotext` the file node_modules/@db-ux/ngx-core-components/agent/Infotext.md
55+
- use for `DBIcon` or `Icon` the file node_modules/@db-ux/ngx-core-components/agent/Icon.md
56+
- use for `DBHeader` or `Header` the file node_modules/@db-ux/ngx-core-components/agent/Header.md
57+
- use for `DBDivider` or `Divider` the file node_modules/@db-ux/ngx-core-components/agent/Divider.md
58+
- use for `DBCustomSelect` or `CustomSelect` the file node_modules/@db-ux/ngx-core-components/agent/CustomSelect.md
59+
- use for `DBCheckbox` or `Checkbox` the file node_modules/@db-ux/ngx-core-components/agent/Checkbox.md
60+
- use for `DBCard` or `Card` the file node_modules/@db-ux/ngx-core-components/agent/Card.md
61+
- use for `DBButton` or `Button` the file node_modules/@db-ux/ngx-core-components/agent/Button.md
62+
- use for `DBBrand` or `Brand` the file node_modules/@db-ux/ngx-core-components/agent/Brand.md
63+
- use for `DBBadge` or `Badge` the file node_modules/@db-ux/ngx-core-components/agent/Badge.md
64+
- use for `DBAccordionItem` or `AccordionItem` the file node_modules/@db-ux/ngx-core-components/agent/AccordionItem.md
65+
- use for `DBAccordion` or `Accordion` the file node_modules/@db-ux/ngx-core-components/agent/Accordion.md
66+
67+
--- END: DB UX Copilot Instructions – do not edit above ---

angular-example/package-lock.json

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

angular-example/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "ng build --base-href /angular-example/",
88
"watch": "ng build --watch --configuration development",
99
"test": "ng test",
10-
"postbuild": "node ./post-build.js"
10+
"postbuild": "node ./post-build.js",
11+
"update:agent": "agent-cli"
1112
},
1213
"private": true,
1314
"dependencies": {
@@ -19,12 +20,13 @@
1920
"@angular/platform-browser": "^19.2.15",
2021
"@angular/platform-browser-dynamic": "^19.2.15",
2122
"@angular/router": "^19.2.15",
22-
"@db-ux/ngx-core-components": "^3.1.17",
23+
"@db-ux/ngx-core-components": "3.1.18",
2324
"rxjs": "~7.8.2",
2425
"tslib": "^2.8.1",
2526
"zone.js": "~0.15.1"
2627
},
2728
"devDependencies": {
29+
"@db-ux/agent-cli": "3.1.18",
2830
"@angular/build": "^19.2.17",
2931
"@angular/cli": "^19.2.17",
3032
"@angular/compiler-cli": "^19.2.15",
@@ -36,6 +38,6 @@
3638
"karma-coverage": "~2.2.0",
3739
"karma-jasmine": "~5.1.0",
3840
"karma-jasmine-html-reporter": "~2.1.0",
39-
"typescript": "~5.9.3"
41+
"typescript": "5.8.3"
4042
}
4143
}
Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
--- START: DB UX Copilot Instructions ---
1+
--- START: DB UX Copilot Instructions – do not edit below ---
32

43
# @db-ux/core-components
54
## Common AI mistakes
@@ -16,52 +15,52 @@
1615
# @db-ux/core-foundations
1716
## CSS
1817

19-
- If you use CSS follow these rules:
20-
- use for `variables` like, sizing, spacing, elevation, border, container-size the file node_modules/@db-ux/core-foundations/css/Variables.md
18+
- If you use CSS, follow these rules:
19+
- for `variables` like, sizing, spacing, elevation, border or container-size use the file node_modules/@db-ux/core-foundations/agent/css/Variables.md
2120

2221
## SCSS
2322

24-
- If you use SCSS follow these rules:
25-
- use for `variables` like, sizing, spacing, elevation, border, container-size the file node_modules/@db-ux/core-foundations/scss/Variables.md
23+
- If you use SCSS, follow these rules:
24+
- for `variables` like, sizing, spacing, elevation, border or container-size use the file node_modules/@db-ux/core-foundations/agent/scss/Variables.md
2625

2726
## Tailwind
2827

29-
- If you use Tailwind follow these rules:
30-
- use for `variables` like, sizing, spacing, elevation, border, container-size the file node_modules/@db-ux/core-foundations/tailwind/Variables.md
31-
- Always stick with the variables don't use something like `p-4` or `m-[16px]` use `p-fix-xs` or `m-fix-md` instead.
28+
- If you use Tailwind, follow these rules:
29+
- for `variables` like, sizing, spacing, elevation, border or container-size use the file node_modules/@db-ux/core-foundations/agent/tailwind/Variables.md
30+
- Always stick to the variables. Don't use values like `p-4` or `m-[16px]`; use `p-fix-xs` or `m-fix-md` instead.
3231

3332

3433
# @db-ux/react-core-components
3534
- Use "@db-ux/react-core-components" as import for components:
36-
- use for `DBDrawer` or `Drawer` the file node_modules/@db-ux/react-core-components/Drawer.md
37-
- use for `DBTooltip` or `Tooltip` the file node_modules/@db-ux/react-core-components/Tooltip.md
38-
- use for `DBTextarea` or `Textarea` the file node_modules/@db-ux/react-core-components/Textarea.md
39-
- use for `DBTag` or `Tag` the file node_modules/@db-ux/react-core-components/Tag.md
40-
- use for `DBTabs` or `Tabs` the file node_modules/@db-ux/react-core-components/Tabs.md
41-
- use for `DBTabItem` or `TabItem` the file node_modules/@db-ux/react-core-components/TabItem.md
42-
- use for `DBSwitch` or `Switch` the file node_modules/@db-ux/react-core-components/Switch.md
43-
- use for `DBStack` or `Stack` the file node_modules/@db-ux/react-core-components/Stack.md
44-
- use for `DBSelect` or `Select` the file node_modules/@db-ux/react-core-components/Select.md
45-
- use for `DBSection` or `Section` the file node_modules/@db-ux/react-core-components/Section.md
46-
- use for `DBRadio` or `Radio` the file node_modules/@db-ux/react-core-components/Radio.md
47-
- use for `DBPopover` or `Popover` the file node_modules/@db-ux/react-core-components/Popover.md
48-
- use for `DBPage` or `Page` the file node_modules/@db-ux/react-core-components/Page.md
49-
- use for `DBNotification` or `Notification` the file node_modules/@db-ux/react-core-components/Notification.md
50-
- use for `DBNavigationItem` or `NavigationItem` the file node_modules/@db-ux/react-core-components/NavigationItem.md
51-
- use for `DBNavigation` or `Navigation` the file node_modules/@db-ux/react-core-components/Navigation.md
52-
- use for `DBLink` or `Link` the file node_modules/@db-ux/react-core-components/Link.md
53-
- use for `DBInput` or `Input` the file node_modules/@db-ux/react-core-components/Input.md
54-
- use for `DBInfotext` or `Infotext` the file node_modules/@db-ux/react-core-components/Infotext.md
55-
- use for `DBIcon` or `Icon` the file node_modules/@db-ux/react-core-components/Icon.md
56-
- use for `DBHeader` or `Header` the file node_modules/@db-ux/react-core-components/Header.md
57-
- use for `DBDivider` or `Divider` the file node_modules/@db-ux/react-core-components/Divider.md
58-
- use for `DBCustomSelect` or `CustomSelect` the file node_modules/@db-ux/react-core-components/CustomSelect.md
59-
- use for `DBCheckbox` or `Checkbox` the file node_modules/@db-ux/react-core-components/Checkbox.md
60-
- use for `DBCard` or `Card` the file node_modules/@db-ux/react-core-components/Card.md
61-
- use for `DBButton` or `Button` the file node_modules/@db-ux/react-core-components/Button.md
62-
- use for `DBBrand` or `Brand` the file node_modules/@db-ux/react-core-components/Brand.md
63-
- use for `DBBadge` or `Badge` the file node_modules/@db-ux/react-core-components/Badge.md
64-
- use for `DBAccordionItem` or `AccordionItem` the file node_modules/@db-ux/react-core-components/AccordionItem.md
65-
- use for `DBAccordion` or `Accordion` the file node_modules/@db-ux/react-core-components/Accordion.md
35+
- use for `DBDrawer` or `Drawer` the file node_modules/@db-ux/react-core-components/agent/Drawer.md
36+
- use for `DBTooltip` or `Tooltip` the file node_modules/@db-ux/react-core-components/agent/Tooltip.md
37+
- use for `DBTextarea` or `Textarea` the file node_modules/@db-ux/react-core-components/agent/Textarea.md
38+
- use for `DBTag` or `Tag` the file node_modules/@db-ux/react-core-components/agent/Tag.md
39+
- use for `DBTabs` or `Tabs` the file node_modules/@db-ux/react-core-components/agent/Tabs.md
40+
- use for `DBTabItem` or `TabItem` the file node_modules/@db-ux/react-core-components/agent/TabItem.md
41+
- use for `DBSwitch` or `Switch` the file node_modules/@db-ux/react-core-components/agent/Switch.md
42+
- use for `DBStack` or `Stack` the file node_modules/@db-ux/react-core-components/agent/Stack.md
43+
- use for `DBSelect` or `Select` the file node_modules/@db-ux/react-core-components/agent/Select.md
44+
- use for `DBSection` or `Section` the file node_modules/@db-ux/react-core-components/agent/Section.md
45+
- use for `DBRadio` or `Radio` the file node_modules/@db-ux/react-core-components/agent/Radio.md
46+
- use for `DBPopover` or `Popover` the file node_modules/@db-ux/react-core-components/agent/Popover.md
47+
- use for `DBPage` or `Page` the file node_modules/@db-ux/react-core-components/agent/Page.md
48+
- use for `DBNotification` or `Notification` the file node_modules/@db-ux/react-core-components/agent/Notification.md
49+
- use for `DBNavigationItem` or `NavigationItem` the file node_modules/@db-ux/react-core-components/agent/NavigationItem.md
50+
- use for `DBNavigation` or `Navigation` the file node_modules/@db-ux/react-core-components/agent/Navigation.md
51+
- use for `DBLink` or `Link` the file node_modules/@db-ux/react-core-components/agent/Link.md
52+
- use for `DBInput` or `Input` the file node_modules/@db-ux/react-core-components/agent/Input.md
53+
- use for `DBInfotext` or `Infotext` the file node_modules/@db-ux/react-core-components/agent/Infotext.md
54+
- use for `DBIcon` or `Icon` the file node_modules/@db-ux/react-core-components/agent/Icon.md
55+
- use for `DBHeader` or `Header` the file node_modules/@db-ux/react-core-components/agent/Header.md
56+
- use for `DBDivider` or `Divider` the file node_modules/@db-ux/react-core-components/agent/Divider.md
57+
- use for `DBCustomSelect` or `CustomSelect` the file node_modules/@db-ux/react-core-components/agent/CustomSelect.md
58+
- use for `DBCheckbox` or `Checkbox` the file node_modules/@db-ux/react-core-components/agent/Checkbox.md
59+
- use for `DBCard` or `Card` the file node_modules/@db-ux/react-core-components/agent/Card.md
60+
- use for `DBButton` or `Button` the file node_modules/@db-ux/react-core-components/agent/Button.md
61+
- use for `DBBrand` or `Brand` the file node_modules/@db-ux/react-core-components/agent/Brand.md
62+
- use for `DBBadge` or `Badge` the file node_modules/@db-ux/react-core-components/agent/Badge.md
63+
- use for `DBAccordionItem` or `AccordionItem` the file node_modules/@db-ux/react-core-components/agent/AccordionItem.md
64+
- use for `DBAccordion` or `Accordion` the file node_modules/@db-ux/react-core-components/agent/Accordion.md
6665

67-
--- END: DB UX Copilot Instructions ---
66+
--- END: DB UX Copilot Instructions – do not edit above ---

0 commit comments

Comments
 (0)