Skip to content

Commit cc0f2dc

Browse files
committed
adding angular starter app ix-code
1 parent 4edb610 commit cc0f2dc

File tree

70 files changed

+4098
-0
lines changed

Some content is hidden

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

70 files changed

+4098
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ To develop all apps and packages, run the following command:
5151
pnpm dev --filter ix-react-starter
5252
```
5353

54+
55+
#### Angular
56+
57+
```
58+
pnpm dev --filter ix-angular-starter
59+
5460
## Useful Links
5561
5662
Learn more about the power of Turborepo:

apps/angular-starter/.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
ij_typescript_use_double_quotes = false
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false

apps/angular-starter/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
40+
# System files
41+
.DS_Store
42+
Thumbs.db
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

apps/angular-starter/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@siemens/ix-angular + Angular Starter App
2+
3+
A starter template for Angular applications using Siemens Industrial Experience (ix-Angular).
4+
5+
Install dependencies
6+
Execute pnpm install/npm install
7+
8+
Development
9+
Execute pnpm start/npm start
10+
11+
Build
12+
Execute pnpm build
13+
The build artifacts will be stored in the dist/ directory
14+
15+
Testing - Unit Tests (Jasmine + Karma)
16+
Execute pnpm test
17+
18+
Generate Components/Services
19+
pnpm ng generate component [name]
20+
pnpm ng generate service [name]
21+
pnpm ng generate pipe [name]

apps/angular-starter/angular.json

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ixd-angular-starter": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:application",
19+
"options": {
20+
"outputPath": "dist/ixd-angular-starter",
21+
"index": "src/index.html",
22+
"browser": "src/main.ts",
23+
"polyfills": ["zone.js"],
24+
"tsConfig": "tsconfig.app.json",
25+
"inlineStyleLanguage": "scss",
26+
"assets": [
27+
{
28+
"glob": "**/*",
29+
"input": "public"
30+
},
31+
"src/assets"
32+
],
33+
"styles": ["src/styles.scss"],
34+
"scripts": []
35+
},
36+
"configurations": {
37+
"production": {
38+
"budgets": [
39+
{
40+
"type": "initial",
41+
"maximumWarning": "5MB",
42+
"maximumError": "5MB"
43+
},
44+
{
45+
"type": "anyComponentStyle",
46+
"maximumWarning": "4kB",
47+
"maximumError": "8kB"
48+
}
49+
],
50+
"outputHashing": "all"
51+
},
52+
"development": {
53+
"optimization": false,
54+
"extractLicenses": false,
55+
"sourceMap": true
56+
}
57+
},
58+
"defaultConfiguration": "production"
59+
},
60+
"serve": {
61+
"builder": "@angular-devkit/build-angular:dev-server",
62+
"configurations": {
63+
"production": {
64+
"buildTarget": "ixd-angular-starter:build:production"
65+
},
66+
"development": {
67+
"buildTarget": "ixd-angular-starter:build:development"
68+
}
69+
},
70+
"defaultConfiguration": "development"
71+
},
72+
"extract-i18n": {
73+
"builder": "@angular-devkit/build-angular:extract-i18n"
74+
},
75+
"test": {
76+
"builder": "@angular-devkit/build-angular:karma",
77+
"options": {
78+
"polyfills": ["zone.js", "zone.js/testing"],
79+
"tsConfig": "tsconfig.spec.json",
80+
"inlineStyleLanguage": "scss",
81+
"assets": [
82+
{
83+
"glob": "**/*",
84+
"input": "public"
85+
}
86+
],
87+
"styles": ["src/styles.scss"],
88+
"scripts": []
89+
}
90+
}
91+
}
92+
}
93+
},
94+
"cli": {
95+
"analytics": "3a40293f-bea6-4e55-952e-9ada3175ebe7"
96+
}
97+
}

apps/angular-starter/package.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "ix-angular-starter",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"ng": "ng",
6+
"start": "ng serve",
7+
"dev": "ng serve",
8+
"build": "ng build",
9+
"watch": "ng build --watch --configuration development",
10+
"test": "ng test"
11+
},
12+
"private": true,
13+
"dependencies": {
14+
"@ag-grid-community/angular": "^32.3.5",
15+
"@ag-grid-community/client-side-row-model": "^32.3.5",
16+
"@ag-grid-community/core": "^32.3.5",
17+
"@angular/common": "^19.2.0",
18+
"@angular/compiler": "^19.2.0",
19+
"@angular/core": "^19.2.0",
20+
"@angular/forms": "^19.2.0",
21+
"@angular/platform-browser": "^19.2.0",
22+
"@angular/platform-browser-dynamic": "^19.2.0",
23+
"@angular/router": "^19.2.0",
24+
"@ngx-translate/core": "^16.0.4",
25+
"@ngx-translate/http-loader": "^16.0.1",
26+
"@siemens/ix": "^3.0.0",
27+
"@siemens/ix-aggrid": "^3.0.0",
28+
"@siemens/ix-angular": "^3.0.0",
29+
"@siemens/ix-echarts": "^3.0.0",
30+
"@siemens/ix-icons": "^3.0.0",
31+
"ag-grid-angular": "^32.0.2",
32+
"ag-grid-community": "^32.0.2",
33+
"ngx-echarts": "^18.0.0",
34+
"echarts": "5.4.3",
35+
"echarts-gl": "^2.0.9",
36+
"rxjs": "~7.8.0",
37+
"tslib": "^2.3.0",
38+
"zone.js": "~0.15.0"
39+
},
40+
"devDependencies": {
41+
"@angular-devkit/build-angular": "^19.2.8",
42+
"@angular/cli": "^19.2.8",
43+
"@angular/compiler-cli": "^19.2.0",
44+
"@types/jasmine": "~5.1.0",
45+
"jasmine-core": "~5.6.0",
46+
"karma": "~6.4.0",
47+
"karma-chrome-launcher": "~3.2.0",
48+
"karma-coverage": "~2.2.0",
49+
"karma-jasmine": "~5.1.0",
50+
"karma-jasmine-html-reporter": "~2.1.0",
51+
"typescript": "~5.7.2"
52+
},
53+
"peerDependencies": {
54+
"@angular/core": "^19.2.0",
55+
"@angular/forms": "^19.2.0"
56+
}
57+
}
14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)