Skip to content

Commit 128f5cb

Browse files
author
Simon
committed
Generated application for v13 demonstration
1 parent 11e5f8f commit 128f5cb

19 files changed

Lines changed: 857 additions & 0 deletions

angular.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,105 @@
577577
}
578578
}
579579
}
580+
},
581+
"bank-v13": {
582+
"projectType": "application",
583+
"schematics": {
584+
"@schematics/angular:component": {
585+
"style": "scss"
586+
},
587+
"@schematics/angular:application": {
588+
"strict": true
589+
}
590+
},
591+
"root": "projects/bank-v13",
592+
"sourceRoot": "projects/bank-v13/src",
593+
"prefix": "app",
594+
"architect": {
595+
"build": {
596+
"builder": "@angular-devkit/build-angular:browser",
597+
"options": {
598+
"outputPath": "dist/bank-v13",
599+
"index": "projects/bank-v13/src/index.html",
600+
"main": "projects/bank-v13/src/main.ts",
601+
"polyfills": "projects/bank-v13/src/polyfills.ts",
602+
"tsConfig": "projects/bank-v13/tsconfig.app.json",
603+
"inlineStyleLanguage": "scss",
604+
"assets": [
605+
"projects/bank-v13/src/favicon.ico",
606+
"projects/bank-v13/src/assets"
607+
],
608+
"styles": ["projects/bank-v13/src/styles.scss"],
609+
"scripts": []
610+
},
611+
"configurations": {
612+
"production": {
613+
"budgets": [
614+
{
615+
"type": "initial",
616+
"maximumWarning": "500kb",
617+
"maximumError": "1mb"
618+
},
619+
{
620+
"type": "anyComponentStyle",
621+
"maximumWarning": "2kb",
622+
"maximumError": "4kb"
623+
}
624+
],
625+
"fileReplacements": [
626+
{
627+
"replace": "projects/bank-v13/src/environments/environment.ts",
628+
"with": "projects/bank-v13/src/environments/environment.prod.ts"
629+
}
630+
],
631+
"outputHashing": "all"
632+
},
633+
"development": {
634+
"buildOptimizer": false,
635+
"optimization": false,
636+
"vendorChunk": true,
637+
"extractLicenses": false,
638+
"sourceMap": true,
639+
"namedChunks": true
640+
}
641+
},
642+
"defaultConfiguration": "production"
643+
},
644+
"serve": {
645+
"builder": "@angular-devkit/build-angular:dev-server",
646+
"configurations": {
647+
"production": {
648+
"browserTarget": "bank-v13:build:production"
649+
},
650+
"development": {
651+
"browserTarget": "bank-v13:build:development"
652+
}
653+
},
654+
"defaultConfiguration": "development"
655+
},
656+
"extract-i18n": {
657+
"builder": "@angular-devkit/build-angular:extract-i18n",
658+
"options": {
659+
"browserTarget": "bank-v13:build"
660+
}
661+
},
662+
"test": {
663+
"builder": "@angular-devkit/build-angular:karma",
664+
"options": {
665+
"main": "projects/bank-v13/src/test.ts",
666+
"polyfills": "projects/bank-v13/src/polyfills.ts",
667+
"tsConfig": "projects/bank-v13/tsconfig.spec.json",
668+
"karmaConfig": "projects/bank-v13/karma.conf.js",
669+
"inlineStyleLanguage": "scss",
670+
"assets": [
671+
"projects/bank-v13/src/favicon.ico",
672+
"projects/bank-v13/src/assets"
673+
],
674+
"styles": ["projects/bank-v13/src/styles.scss"],
675+
"scripts": []
676+
}
677+
}
678+
}
580679
}
581680
},
582681
"cli": {

projects/bank-v13/.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+
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

projects/bank-v13/karma.conf.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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/bank-v13'),
29+
subdir: '.',
30+
reporters: [{ type: 'html' }, { type: 'text-summary' }]
31+
},
32+
reporters: ['progress', 'kjhtml'],
33+
port: 9876,
34+
colors: true,
35+
logLevel: config.LOG_INFO,
36+
autoWatch: true,
37+
browsers: ['Chrome'],
38+
singleRun: false,
39+
restartOnFileChange: true
40+
});
41+
};

0 commit comments

Comments
 (0)