Skip to content

Commit 2f75efb

Browse files
project commit
0 parents  commit 2f75efb

File tree

204 files changed

+32661
-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.

204 files changed

+32661
-0
lines changed

.browserslistrc

+15
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.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
Chrome >=60
12+
Firefox >=63
13+
Edge >=79
14+
Safari >=13
15+
iOS >=13

.editorconfig

+16
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

+46
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

+68
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

.vscode/extensions.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"ionic.ionic"
4+
]
5+
}

angular.json

+149
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
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/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+
"extract-i18n": {
89+
"builder": "@angular-devkit/build-angular:extract-i18n",
90+
"options": {
91+
"browserTarget": "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/theme/variables.scss", "src/global.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+
},
141+
"schematics": {
142+
"@ionic/angular-toolkit:component": {
143+
"styleext": "scss"
144+
},
145+
"@ionic/angular-toolkit:page": {
146+
"styleext": "scss"
147+
}
148+
}
149+
}

capacitor.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { CapacitorConfig } from '@capacitor/cli';
2+
3+
const config: CapacitorConfig = {
4+
appId: 'io.ionic.starter',
5+
appName: 'coldstore-app',
6+
webDir: 'www',
7+
bundledWebRuntime: false
8+
};
9+
10+
export default config;

ionic.config.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "coldstore-app",
3+
"integrations": {
4+
"capacitor": {}
5+
},
6+
"type": "angular"
7+
}

karma.conf.js

+44
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)