Skip to content

Commit 1b1f982

Browse files
committed
chore: add app demo
1 parent 5f080af commit 1b1f982

File tree

8 files changed

+152
-0
lines changed

8 files changed

+152
-0
lines changed

angular.json

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,102 @@
3535
}
3636
}
3737
}
38+
},
39+
"angular-redux-demo": {
40+
"projectType": "application",
41+
"schematics": {
42+
"@schematics/angular:component": {
43+
"inlineTemplate": true,
44+
"inlineStyle": true,
45+
"skipTests": true
46+
},
47+
"@schematics/angular:class": {
48+
"skipTests": true
49+
},
50+
"@schematics/angular:directive": {
51+
"skipTests": true
52+
},
53+
"@schematics/angular:guard": {
54+
"skipTests": true
55+
},
56+
"@schematics/angular:interceptor": {
57+
"skipTests": true
58+
},
59+
"@schematics/angular:pipe": {
60+
"skipTests": true
61+
},
62+
"@schematics/angular:resolver": {
63+
"skipTests": true
64+
},
65+
"@schematics/angular:service": {
66+
"skipTests": true
67+
}
68+
},
69+
"root": "projects/angular-redux-demo",
70+
"sourceRoot": "projects/angular-redux-demo/src",
71+
"prefix": "app",
72+
"architect": {
73+
"build": {
74+
"builder": "@angular-devkit/build-angular:application",
75+
"options": {
76+
"outputPath": "dist/angular-redux-demo",
77+
"index": "projects/angular-redux-demo/src/index.html",
78+
"browser": "projects/angular-redux-demo/src/main.ts",
79+
"polyfills": [
80+
"zone.js"
81+
],
82+
"tsConfig": "projects/angular-redux-demo/tsconfig.app.json",
83+
"assets": [
84+
{
85+
"glob": "**/*",
86+
"input": "projects/angular-redux-demo/public"
87+
}
88+
],
89+
"styles": [
90+
"projects/angular-redux-demo/src/styles.css"
91+
],
92+
"scripts": []
93+
},
94+
"configurations": {
95+
"production": {
96+
"budgets": [
97+
{
98+
"type": "initial",
99+
"maximumWarning": "500kB",
100+
"maximumError": "1MB"
101+
},
102+
{
103+
"type": "anyComponentStyle",
104+
"maximumWarning": "2kB",
105+
"maximumError": "4kB"
106+
}
107+
],
108+
"outputHashing": "all"
109+
},
110+
"development": {
111+
"optimization": false,
112+
"extractLicenses": false,
113+
"sourceMap": true
114+
}
115+
},
116+
"defaultConfiguration": "production"
117+
},
118+
"serve": {
119+
"builder": "@angular-devkit/build-angular:dev-server",
120+
"configurations": {
121+
"production": {
122+
"buildTarget": "angular-redux-demo:build:production"
123+
},
124+
"development": {
125+
"buildTarget": "angular-redux-demo:build:development"
126+
}
127+
},
128+
"defaultConfiguration": "development"
129+
},
130+
"extract-i18n": {
131+
"builder": "@angular-devkit/build-angular:extract-i18n"
132+
}
133+
}
38134
}
39135
}
40136
}
14.7 KB
Binary file not shown.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-root',
5+
standalone: true,
6+
imports: [],
7+
template: `
8+
<h1>Welcome to {{title}}!</h1>
9+
10+
11+
`,
12+
styles: [],
13+
})
14+
export class AppComponent {
15+
title = 'angular-redux-demo';
16+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
2+
3+
export const appConfig: ApplicationConfig = {
4+
providers: [provideZoneChangeDetection({ eventCoalescing: true })]
5+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>AngularReduxDemo</title>
6+
<base href="/">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<link rel="icon" type="image/x-icon" href="favicon.ico">
9+
</head>
10+
<body>
11+
<app-root></app-root>
12+
</body>
13+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { bootstrapApplication } from '@angular/platform-browser';
2+
import { appConfig } from './app/app.config';
3+
import { AppComponent } from './app/app.component';
4+
5+
bootstrapApplication(AppComponent, appConfig)
6+
.catch((err) => console.error(err));
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* You can add global styles to this file, and also import other style files */
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3+
{
4+
"extends": "../../tsconfig.json",
5+
"compilerOptions": {
6+
"outDir": "../../out-tsc/app",
7+
"types": []
8+
},
9+
"files": [
10+
"src/main.ts"
11+
],
12+
"include": [
13+
"src/**/*.d.ts"
14+
]
15+
}

0 commit comments

Comments
 (0)