Skip to content

Commit 5c915aa

Browse files
authored
Merge pull request #3227 from GovAlta/next
2 parents 451b036 + c06e972 commit 5c915aa

114 files changed

Lines changed: 8382 additions & 1047 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
# Custom
44
.nx
5-
playground
6-
.playgrounds
5+
apps/dev/angular
6+
apps/dev/react
7+
apps/dev/web
78
NOTES.md
89
/test-results
910
__screenshots__
@@ -67,4 +68,4 @@ devenv.local.nix
6768
vite.config.*.timestamp*
6869
vitest.config.*.timestamp*
6970
.cursor/rules/nx-rules.mdc
70-
.github/instructions/nx.instructions.md
71+
.github/instructions/nx.instructions.md

.nxignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
!playground
21
**/.*/
2+
!apps/dev/web
3+
!apps/dev/react
4+
!apps/dev/angular

.templates/angular/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["../../.eslintrc.json"],
2+
"extends": ["../../../.eslintrc.json"],
33
"ignorePatterns": ["!**/*"],
44
"overrides": [
55
{

.templates/angular/project.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
2-
"name": "angular",
3-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
2+
"name": "angular-dev",
3+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "application",
55
"prefix": "abgov",
6-
"sourceRoot": "playground/angular/src",
6+
"sourceRoot": "apps/dev/angular/src",
77
"tags": [],
88
"targets": {
99
"build": {
1010
"executor": "@angular-devkit/build-angular:application",
1111
"outputs": ["{options.outputPath}"],
1212
"options": {
13-
"outputPath": "dist/playground/angular",
14-
"index": "playground/angular/src/index.html",
15-
"browser": "playground/angular/src/main.ts",
13+
"outputPath": "dist/apps/dev/angular",
14+
"index": "apps/dev/angular/src/index.html",
15+
"browser": "apps/dev/angular/src/main.ts",
1616
"polyfills": ["zone.js"],
17-
"tsConfig": "playground/angular/tsconfig.app.json",
17+
"tsConfig": "apps/dev/angular/tsconfig.app.json",
1818
"assets": [
19-
"playground/angular/src/favicon.ico",
20-
"playground/angular/src/assets"
19+
"apps/dev/angular/src/favicon.ico",
20+
"apps/dev/angular/src/assets"
2121
],
22-
"styles": ["playground/angular/src/styles.css"],
22+
"styles": ["apps/dev/angular/src/styles.css"],
2323
"scripts": []
2424
},
2525
"configurations": {
2626
"production": {
2727
"budgets": [
2828
{
2929
"type": "initial",
30-
"maximumWarning": "500kb",
31-
"maximumError": "1mb"
30+
"maximumWarning": "2mb",
31+
"maximumError": "3mb"
3232
},
3333
{
3434
"type": "anyComponentStyle",
@@ -50,18 +50,18 @@
5050
"executor": "@angular-devkit/build-angular:dev-server",
5151
"configurations": {
5252
"production": {
53-
"buildTarget": "angular:build:production"
53+
"buildTarget": "angular-dev:build:production"
5454
},
5555
"development": {
56-
"buildTarget": "angular:build:development"
56+
"buildTarget": "angular-dev:build:development"
5757
}
5858
},
5959
"defaultConfiguration": "development"
6060
},
6161
"extract-i18n": {
6262
"executor": "@angular-devkit/build-angular:extract-i18n",
6363
"options": {
64-
"buildTarget": "angular:build"
64+
"buildTarget": "angular-dev:build"
6565
}
6666
},
6767
"lint": {
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { NgModule } from "@angular/core";
22
import { RouterModule, Routes } from "@angular/router";
3-
import { ComponentWrapperPageComponent } from "./component-wrapper";
3+
import { PlaygroundComponent } from "./playground";
44

5-
const routes: Routes = [
6-
{ path: "/", component: ComponentWrapperPageComponent },
7-
];
5+
const routes: Routes = [{ path: "", component: PlaygroundComponent }];
86

97
@NgModule({
108
imports: [RouterModule.forRoot(routes)],
119
exports: [RouterModule],
1210
})
13-
export class AppRoutingModule { }
11+
export class AppRoutingModule {}

.templates/angular/src/app/app.component.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import {Component, OnInit} from "@angular/core";
1+
import { Component, OnInit } from "@angular/core";
2+
import { RouterOutlet } from "@angular/router";
23

34
@Component({
4-
selector: "goab-root",
5-
template: "<abgov-component-wrapper></abgov-component-wrapper>"
5+
selector: "abgov-root",
6+
template: "<router-outlet></router-outlet>",
7+
standalone: true,
8+
imports: [RouterOutlet],
69
})
710
export class AppComponent implements OnInit {
811
ngOnInit() {

.templates/angular/src/app/app.module.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ import { AngularComponentsModule } from "@abgov/angular-components";
66
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
77
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
88
import { NgForOf, NgIf } from "@angular/common";
9-
import { ComponentWrapperPageComponent } from "./component-wrapper";
9+
import { PlaygroundComponent } from "./playground";
10+
import { AppRoutingModule } from "./app-routing.module";
1011
import "@abgov/web-components";
1112

1213
@NgModule({
13-
declarations: [
14-
AppComponent,
15-
],
14+
declarations: [],
1615
imports: [
16+
AppComponent,
1717
AngularComponentsModule,
18-
ComponentWrapperPageComponent,
18+
PlaygroundComponent,
1919
BrowserModule,
20+
AppRoutingModule,
2021
FormsModule,
2122
NgForOf,
2223
NgIf,
@@ -27,4 +28,4 @@ import "@abgov/web-components";
2728
bootstrap: [AppComponent],
2829
schemas: [CUSTOM_ELEMENTS_SCHEMA],
2930
})
30-
export class AppModule { }
31+
export class AppModule {}

.templates/angular/src/app/component-wrapper.ts

Lines changed: 0 additions & 112 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { CUSTOM_ELEMENTS_SCHEMA, Component } from "@angular/core";
2+
import { CommonModule } from "@angular/common";
3+
import {
4+
GoabInput,
5+
/* Import components here */
6+
} from "@abgov/angular-components";
7+
8+
@Component({
9+
standalone: true,
10+
selector: "abgov-app",
11+
template: `
12+
<div style="width: 1024px; margin: 0 auto;">
13+
<goab-input placeholder="Hello, World!" />
14+
</div>
15+
`,
16+
17+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
18+
imports: [
19+
CommonModule,
20+
GoabInput,
21+
// add test components here
22+
],
23+
})
24+
export class PlaygroundComponent {}

.templates/angular/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</head>
1313

1414
<body>
15-
<goab-root></goab-root>
15+
<abgov-root></abgov-root>
1616
</body>
1717

1818
</html>

0 commit comments

Comments
 (0)