Skip to content

Commit 481f91f

Browse files
committed
initial commit
0 parents  commit 481f91f

28 files changed

+7504
-0
lines changed

.browserslistrc

+16
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+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR

.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

.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See http://help.github.com/ignore-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

.vscode/extensions.json

+4
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+
}

.vscode/launch.json

+20
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": "pwa-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+
}

.vscode/tasks.json

+42
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+
}

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# NimmstaAngularDemo
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.2.
4+
5+
## Development server
6+
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
8+
9+
## Code scaffolding
10+
11+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12+
13+
## Build
14+
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16+
17+
## Running unit tests
18+
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
21+
## Running end-to-end tests
22+
23+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24+
25+
## Further help
26+
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

angular.json

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"cli": {
5+
"packageManager": "yarn"
6+
},
7+
"newProjectRoot": "projects",
8+
"projects": {
9+
"nimmsta-angular-demo": {
10+
"projectType": "application",
11+
"schematics": {
12+
"@schematics/angular:component": {
13+
"style": "scss",
14+
"skipTests": true
15+
},
16+
"@schematics/angular:class": {
17+
"skipTests": true
18+
},
19+
"@schematics/angular:directive": {
20+
"skipTests": true
21+
},
22+
"@schematics/angular:guard": {
23+
"skipTests": true
24+
},
25+
"@schematics/angular:interceptor": {
26+
"skipTests": true
27+
},
28+
"@schematics/angular:pipe": {
29+
"skipTests": true
30+
},
31+
"@schematics/angular:resolver": {
32+
"skipTests": true
33+
},
34+
"@schematics/angular:service": {
35+
"skipTests": true
36+
},
37+
"@schematics/angular:application": {
38+
"strict": true
39+
}
40+
},
41+
"root": "",
42+
"sourceRoot": "src",
43+
"prefix": "app",
44+
"architect": {
45+
"build": {
46+
"builder": "@angular-devkit/build-angular:browser",
47+
"options": {
48+
"outputPath": "dist/nimmsta-angular-demo",
49+
"index": "src/index.html",
50+
"main": "src/main.ts",
51+
"polyfills": "src/polyfills.ts",
52+
"tsConfig": "tsconfig.app.json",
53+
"inlineStyleLanguage": "scss",
54+
"assets": [
55+
"src/favicon.ico",
56+
"src/assets"
57+
],
58+
"styles": [
59+
"src/styles.scss"
60+
],
61+
"scripts": []
62+
},
63+
"configurations": {
64+
"production": {
65+
"budgets": [
66+
{
67+
"type": "initial",
68+
"maximumWarning": "500kb",
69+
"maximumError": "1mb"
70+
},
71+
{
72+
"type": "anyComponentStyle",
73+
"maximumWarning": "2kb",
74+
"maximumError": "4kb"
75+
}
76+
],
77+
"fileReplacements": [
78+
{
79+
"replace": "src/environments/environment.ts",
80+
"with": "src/environments/environment.prod.ts"
81+
}
82+
],
83+
"outputHashing": "all"
84+
},
85+
"development": {
86+
"buildOptimizer": false,
87+
"optimization": false,
88+
"vendorChunk": true,
89+
"extractLicenses": false,
90+
"sourceMap": true,
91+
"namedChunks": true
92+
}
93+
},
94+
"defaultConfiguration": "production"
95+
},
96+
"serve": {
97+
"builder": "@angular-devkit/build-angular:dev-server",
98+
"configurations": {
99+
"production": {
100+
"browserTarget": "nimmsta-angular-demo:build:production"
101+
},
102+
"development": {
103+
"browserTarget": "nimmsta-angular-demo:build:development"
104+
}
105+
},
106+
"defaultConfiguration": "development"
107+
},
108+
"extract-i18n": {
109+
"builder": "@angular-devkit/build-angular:extract-i18n",
110+
"options": {
111+
"browserTarget": "nimmsta-angular-demo:build"
112+
}
113+
},
114+
"test": {
115+
"builder": "@angular-devkit/build-angular:karma",
116+
"options": {
117+
"main": "src/test.ts",
118+
"polyfills": "src/polyfills.ts",
119+
"tsConfig": "tsconfig.spec.json",
120+
"karmaConfig": "karma.conf.js",
121+
"inlineStyleLanguage": "scss",
122+
"assets": [
123+
"src/favicon.ico",
124+
"src/assets"
125+
],
126+
"styles": [
127+
"src/styles.scss"
128+
],
129+
"scripts": []
130+
}
131+
}
132+
}
133+
}
134+
},
135+
"defaultProject": "nimmsta-angular-demo"
136+
}

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/nimmsta-angular-demo'),
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+
};

package.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "nimmsta-angular-demo",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"ng": "ng",
6+
"start": "ng serve",
7+
"build": "ng build",
8+
"watch": "ng build --watch --configuration development",
9+
"test": "ng test"
10+
},
11+
"private": true,
12+
"dependencies": {
13+
"@angular/animations": "~13.3.0",
14+
"@angular/common": "~13.3.0",
15+
"@angular/compiler": "~13.3.0",
16+
"@angular/core": "~13.3.0",
17+
"@angular/forms": "~13.3.0",
18+
"@angular/platform-browser": "~13.3.0",
19+
"@angular/platform-browser-dynamic": "~13.3.0",
20+
"@angular/router": "~13.3.0",
21+
"rxjs": "~7.5.0",
22+
"tslib": "^2.3.0",
23+
"zone.js": "~0.11.4"
24+
},
25+
"devDependencies": {
26+
"@angular-devkit/build-angular": "~13.3.2",
27+
"@angular/cli": "~13.3.2",
28+
"@angular/compiler-cli": "~13.3.0",
29+
"@types/jasmine": "~3.10.0",
30+
"@types/node": "^12.11.1",
31+
"jasmine-core": "~4.0.0",
32+
"karma": "~6.3.0",
33+
"karma-chrome-launcher": "~3.1.0",
34+
"karma-coverage": "~2.1.0",
35+
"karma-jasmine": "~4.0.0",
36+
"karma-jasmine-html-reporter": "~1.7.0",
37+
"typescript": "~4.6.2"
38+
}
39+
}

0 commit comments

Comments
 (0)