Skip to content

Commit 1de6def

Browse files
authored
feat: update Copilot instructions for Angular and Vue components (#2222)
1 parent 3fb1307 commit 1de6def

File tree

10 files changed

+27
-0
lines changed

10 files changed

+27
-0
lines changed

angular-example/.github/copilot-instructions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## Angular
2+
3+
- For Angular always write HTML, CSS and TS into one file
4+
- Always use ``standalone`` components for Angular
5+
- Always use ``@if``, `@for` instead of `*ngIf`, `*ngFor`
6+
- Always use DB UX for CSS variables
7+
- Don't inline ``style`` use the `styles` property from `@Component`
8+
- Don't use ``px`` values for styling use `variables` instead
19

210
--- START: DB UX Copilot Instructions – do not edit below ---
311

angular-example/package-lock.json

Lines changed: 2 additions & 0 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
"@angular/platform-browser-dynamic": "^19.2.15",
2222
"@angular/router": "^19.2.15",
2323
"@db-ux/ngx-core-components": "3.1.18",
24+
"@db-ux/core-foundations": "3.1.18",
25+
"@db-ux/core-components": "3.1.18",
2426
"rxjs": "~7.8.2",
2527
"tslib": "^2.8.1",
2628
"zone.js": "~0.15.1"

react-example/package-lock.json

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

react-example/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"update:agent": "agent-cli"
1010
},
1111
"dependencies": {
12+
"@db-ux/core-foundations": "3.1.18",
13+
"@db-ux/core-components": "3.1.18",
1214
"@db-ux/react-core-components": "3.1.18",
1315
"classnames": "^2.5.1",
1416
"react": "^18.3.0",

react-tailwind-template/package-lock.json

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

react-tailwind-template/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
},
1414
"dependencies": {
1515
"@db-ux/react-core-components": "3.1.18",
16+
"@db-ux/core-foundations": "3.1.18",
17+
"@db-ux/core-components": "3.1.18",
1618
"@tailwindcss/vite": "^4.1.14",
1719
"react": "^18.3.1",
1820
"react-dom": "^18.3.1",

vue-example/.github/copilot-instructions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Vue
2+
3+
- Use ``SCSS`` for new components
14

25
--- START: DB UX Copilot Instructions – do not edit below ---
36

vue-example/package-lock.json

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

vue-example/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"agent": "agent-cli"
1010
},
1111
"dependencies": {
12+
"@db-ux/core-foundations": "3.1.18",
13+
"@db-ux/core-components": "3.1.18",
1214
"@db-ux/v-core-components": "3.1.18",
1315
"sass": "^1.93.2",
1416
"vue": "^3.5.22"

0 commit comments

Comments
 (0)