Skip to content

Commit fba619e

Browse files
initial commit
1 parent 8046300 commit fba619e

14 files changed

+13271
-0
lines changed

.browserslistrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
Chrome >=79
12+
ChromeAndroid >=79
13+
Firefox >=70
14+
Edge >=79
15+
Safari >=14
16+
iOS >=14

.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

.eslintrc.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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/component-class-suffix": [
17+
"error",
18+
{
19+
"suffixes": ["Page", "Component"]
20+
}
21+
],
22+
"@angular-eslint/component-selector": [
23+
"error",
24+
{
25+
"type": "element",
26+
"prefix": "app",
27+
"style": "kebab-case"
28+
}
29+
],
30+
"@angular-eslint/directive-selector": [
31+
"error",
32+
{
33+
"type": "attribute",
34+
"prefix": "app",
35+
"style": "camelCase"
36+
}
37+
]
38+
}
39+
},
40+
{
41+
"files": ["*.html"],
42+
"extends": ["plugin:@angular-eslint/template/recommended"],
43+
"rules": {}
44+
}
45+
]
46+
}

.gitignore

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
/connect.lock
61+
/coverage
62+
/libpeerconnection.log
63+
testem.log
64+
/typings
65+
66+
# System files
67+
.DS_Store
68+
Thumbs.db

angular.json

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
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": "dist/app/browser",
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/theme/variables.scss", "src/global.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+
"browserTarget": "app:build:production"
78+
},
79+
"development": {
80+
"browserTarget": "app:build:development"
81+
},
82+
"ci": {
83+
"progress": false
84+
}
85+
},
86+
"defaultConfiguration": "development"
87+
},
88+
"server": {
89+
"builder": "@angular-devkit/build-angular:server",
90+
"options": {
91+
"outputPath": "dist/app/server",
92+
"main": "server.ts",
93+
"tsConfig": "tsconfig.server.json"
94+
},
95+
"configurations": {
96+
"production": {
97+
"outputHashing": "media",
98+
"fileReplacements": [
99+
{
100+
"replace": "src/environments/environment.ts",
101+
"with": "src/environments/environment.prod.ts"
102+
}
103+
],
104+
"sourceMap": false,
105+
"optimization": true
106+
}
107+
}
108+
},
109+
"serve-ssr": {
110+
"builder": "@nguniversal/builders:ssr-dev-server",
111+
"options": {
112+
"browserTarget": "app:build",
113+
"serverTarget": "app:server"
114+
},
115+
"configurations": {
116+
"production": {
117+
"browserTarget": "app:build:production",
118+
"serverTarget": "app:server:production"
119+
}
120+
}
121+
},
122+
"extract-i18n": {
123+
"builder": "@angular-devkit/build-angular:extract-i18n",
124+
"options": {
125+
"browserTarget": "app:build"
126+
}
127+
},
128+
"test": {
129+
"builder": "@angular-devkit/build-angular:karma",
130+
"options": {
131+
"main": "src/test.ts",
132+
"polyfills": "src/polyfills.ts",
133+
"tsConfig": "tsconfig.spec.json",
134+
"karmaConfig": "karma.conf.js",
135+
"inlineStyleLanguage": "scss",
136+
"assets": [
137+
{
138+
"glob": "**/*",
139+
"input": "src/assets",
140+
"output": "assets"
141+
},
142+
{
143+
"glob": "**/*.svg",
144+
"input": "node_modules/ionicons/dist/ionicons/svg",
145+
"output": "./svg"
146+
}
147+
],
148+
"styles": ["src/theme/variables.scss", "src/global.scss"],
149+
"scripts": []
150+
},
151+
"configurations": {
152+
"ci": {
153+
"progress": false,
154+
"watch": false
155+
}
156+
}
157+
},
158+
"lint": {
159+
"builder": "@angular-eslint/builder:lint",
160+
"options": {
161+
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
162+
}
163+
}
164+
}
165+
}
166+
},
167+
"cli": {
168+
"schematicCollections": ["@ionic/angular-toolkit"]
169+
},
170+
"schematics": {
171+
"@ionic/angular-toolkit:component": {
172+
"styleext": "scss"
173+
},
174+
"@ionic/angular-toolkit:page": {
175+
"styleext": "scss"
176+
}
177+
}
178+
}

ionic.config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "ssrErrorApp",
3+
"integrations": { "capacitor": {} },
4+
"type": "angular"
5+
}

karma.conf.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Karma configuration file, see link for more information
2+
// https://karma-runner.github.io/1.0/config/configuration-file.html
3+
4+
module.exports = function (config) {
5+
config.set({
6+
basePath: '',
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
8+
plugins: [
9+
require('karma-jasmine'),
10+
require('karma-chrome-launcher'),
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage'),
13+
require('@angular-devkit/build-angular/plugins/karma')
14+
],
15+
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
22+
clearContext: false // leave Jasmine Spec Runner output visible in browser
23+
},
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require('path').join(__dirname, './coverage/app'),
29+
subdir: '.',
30+
reporters: [
31+
{ type: 'html' },
32+
{ type: 'text-summary' }
33+
]
34+
},
35+
reporters: ['progress', 'kjhtml'],
36+
port: 9876,
37+
colors: true,
38+
logLevel: config.LOG_INFO,
39+
autoWatch: true,
40+
browsers: ['Chrome'],
41+
singleRun: false,
42+
restartOnFileChange: true
43+
});
44+
};

0 commit comments

Comments
 (0)