Skip to content

Commit 923d7ef

Browse files
committed
chore: add ionic angular example (#1124)
1 parent 4ddcfad commit 923d7ef

Some content is hidden

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

62 files changed

+4405
-105
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.dev/reference/versions#browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
Chrome >=107
12+
Firefox >=106
13+
Edge >=107
14+
Safari >=16.1
15+
iOS >=16.1

example/IonicAngular/.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["projects/**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"parserOptions": {
8+
"project": ["tsconfig.json"],
9+
"createDefaultProgram": true
10+
},
11+
"extends": [
12+
"plugin:@angular-eslint/recommended",
13+
"plugin:@angular-eslint/template/process-inline-templates"
14+
],
15+
"rules": {
16+
"@angular-eslint/prefer-standalone": "off",
17+
"@angular-eslint/component-class-suffix": [
18+
"error",
19+
{
20+
"suffixes": ["Page", "Component"]
21+
}
22+
],
23+
"@angular-eslint/component-selector": [
24+
"error",
25+
{
26+
"type": "element",
27+
"prefix": "app",
28+
"style": "kebab-case"
29+
}
30+
],
31+
"@angular-eslint/directive-selector": [
32+
"error",
33+
{
34+
"type": "attribute",
35+
"prefix": "app",
36+
"style": "camelCase"
37+
}
38+
]
39+
}
40+
},
41+
{
42+
"files": ["*.html"],
43+
"extends": ["plugin:@angular-eslint/template/recommended"],
44+
"rules": {}
45+
}
46+
]
47+
}

example/IonicAngular/.gitignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Specifies intentionally untracked files to ignore when using Git
2+
# http://git-scm.com/docs/gitignore
3+
4+
*~
5+
*.sw[mnpcod]
6+
.tmp
7+
*.tmp
8+
*.tmp.*
9+
UserInterfaceState.xcuserstate
10+
$RECYCLE.BIN/
11+
12+
*.log
13+
log.txt
14+
15+
16+
/.sourcemaps
17+
/.versions
18+
/coverage
19+
20+
# Ionic
21+
/.ionic
22+
/www
23+
/platforms
24+
/plugins
25+
26+
# Compiled output
27+
/dist
28+
/tmp
29+
/out-tsc
30+
/bazel-out
31+
32+
# Node
33+
/node_modules
34+
npm-debug.log
35+
yarn-error.log
36+
37+
# IDEs and editors
38+
.idea/
39+
.project
40+
.classpath
41+
.c9/
42+
*.launch
43+
.settings/
44+
*.sublime-project
45+
*.sublime-workspace
46+
47+
# Visual Studio Code
48+
.vscode/*
49+
!.vscode/settings.json
50+
!.vscode/tasks.json
51+
!.vscode/launch.json
52+
!.vscode/extensions.json
53+
.history/*
54+
55+
56+
# Miscellaneous
57+
/.angular
58+
/.angular/cache
59+
.sass-cache/
60+
/.nx
61+
/.nx/cache
62+
/connect.lock
63+
/coverage
64+
/libpeerconnection.log
65+
testem.log
66+
/typings
67+
68+
# System files
69+
.DS_Store
70+
Thumbs.db
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"Webnative.webnative"
4+
]
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.preferences.autoImportFileExcludePatterns": ["@ionic/angular/common", "@ionic/angular/standalone"]
3+
}

example/IonicAngular/angular.json

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"app": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "src",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "www",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "tsconfig.app.json",
21+
"inlineStyleLanguage": "scss",
22+
"assets": [
23+
{
24+
"glob": "**/*",
25+
"input": "src/assets",
26+
"output": "assets"
27+
},
28+
{
29+
"glob": "**/*.svg",
30+
"input": "node_modules/ionicons/dist/ionicons/svg",
31+
"output": "./svg"
32+
}
33+
],
34+
"styles": ["src/global.scss", "src/theme/variables.scss"],
35+
"scripts": []
36+
},
37+
"configurations": {
38+
"production": {
39+
"budgets": [
40+
{
41+
"type": "initial",
42+
"maximumWarning": "2mb",
43+
"maximumError": "5mb"
44+
},
45+
{
46+
"type": "anyComponentStyle",
47+
"maximumWarning": "2kb",
48+
"maximumError": "4kb"
49+
}
50+
],
51+
"fileReplacements": [
52+
{
53+
"replace": "src/environments/environment.ts",
54+
"with": "src/environments/environment.prod.ts"
55+
}
56+
],
57+
"outputHashing": "all"
58+
},
59+
"development": {
60+
"buildOptimizer": false,
61+
"optimization": false,
62+
"vendorChunk": true,
63+
"extractLicenses": false,
64+
"sourceMap": true,
65+
"namedChunks": true
66+
},
67+
"ci": {
68+
"progress": false
69+
}
70+
},
71+
"defaultConfiguration": "production"
72+
},
73+
"serve": {
74+
"builder": "@angular-devkit/build-angular:dev-server",
75+
"configurations": {
76+
"production": {
77+
"buildTarget": "app:build:production"
78+
},
79+
"development": {
80+
"buildTarget": "app:build:development"
81+
},
82+
"ci": {
83+
"progress": false
84+
}
85+
},
86+
"defaultConfiguration": "development"
87+
},
88+
"extract-i18n": {
89+
"builder": "@angular-devkit/build-angular:extract-i18n",
90+
"options": {
91+
"buildTarget": "app:build"
92+
}
93+
},
94+
"test": {
95+
"builder": "@angular-devkit/build-angular:karma",
96+
"options": {
97+
"main": "src/test.ts",
98+
"polyfills": "src/polyfills.ts",
99+
"tsConfig": "tsconfig.spec.json",
100+
"karmaConfig": "karma.conf.js",
101+
"inlineStyleLanguage": "scss",
102+
"assets": [
103+
{
104+
"glob": "**/*",
105+
"input": "src/assets",
106+
"output": "assets"
107+
},
108+
{
109+
"glob": "**/*.svg",
110+
"input": "node_modules/ionicons/dist/ionicons/svg",
111+
"output": "./svg"
112+
}
113+
],
114+
"styles": ["src/global.scss", "src/theme/variables.scss"],
115+
"scripts": []
116+
},
117+
"configurations": {
118+
"ci": {
119+
"progress": false,
120+
"watch": false
121+
}
122+
}
123+
},
124+
"lint": {
125+
"builder": "@angular-eslint/builder:lint",
126+
"options": {
127+
"lintFilePatterns": [
128+
"src/**/*.ts",
129+
"src/**/*.html"
130+
]
131+
}
132+
}
133+
}
134+
}
135+
},
136+
"cli": {
137+
"schematicCollections": [
138+
"@ionic/angular-toolkit"
139+
],
140+
"analytics": false
141+
},
142+
"schematics": {
143+
"@ionic/angular-toolkit:component": {
144+
"styleext": "scss"
145+
},
146+
"@ionic/angular-toolkit:page": {
147+
"styleext": "scss"
148+
}
149+
}
150+
}

0 commit comments

Comments
 (0)