build(docs-infra): update docs examples to Angular v12.1.3 (#42949)

This commit updates the docs examples to Angular v12.1.3. In addition to
updating the dependencies versions, it also updates the projects'
structure and configs to more closely match what a new v12 CLI app would
look like. See, also, the [diff][1] between a basic v11.2.11 CLI app and
a v12.1.3 one.

[1]: https://github.com/cexbrayat/angular-cli-diff/compare/11.2.11..12.1.3

PR Close #42949
This commit is contained in:
George Kalpakas 2021-07-24 12:03:46 +03:00 committed by Andrew Kushnir
parent 14ebd82333
commit 93590895b5
31 changed files with 1856 additions and 1688 deletions

View File

@ -25,7 +25,7 @@ describe('AppComponent', () => {
it('should render title', () => { it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent); const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges(); fixture.detectChanges();
const compiled = fixture.nativeElement; const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('.content span').textContent).toContain('component-overview app is running!'); expect(compiled.querySelector('.content span')?.textContent).toContain('component-overview app is running!');
}); });
}); });

View File

@ -1,6 +1,6 @@
{ {
"tests": [ "tests": [
{"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]}, {"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]},
{"cmd": "yarn", "args": ["e2e", "--prod", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]} {"cmd": "yarn", "args": ["e2e", "--configuration=production", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}
] ]
} }

View File

@ -25,7 +25,7 @@ describe('AppComponent', () => {
const fixture = TestBed.createComponent(AppComponent); const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges(); fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement; const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1').textContent).toContain('Forms Overview'); expect(compiled.querySelector('h1')?.textContent).toContain('Forms Overview');
})); }));
}); });

View File

@ -2,6 +2,6 @@
"projectType": "testing", "projectType": "testing",
"tests": [ "tests": [
{"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]}, {"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]},
{"cmd": "yarn", "args": ["e2e", "--prod", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]} {"cmd": "yarn", "args": ["e2e", "--configuration=production", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}
] ]
} }

View File

@ -2,7 +2,7 @@
"projectType": "service-worker", "projectType": "service-worker",
"tests": [ "tests": [
{"cmd": "yarn", "args": ["e2e", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}, {"cmd": "yarn", "args": ["e2e", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]},
{"cmd": "yarn", "args": ["build", "--prod"]}, {"cmd": "yarn", "args": ["build"]},
{"cmd": "node", "args": ["--eval", "assert(fs.existsSync('./dist/ngsw.json'), 'ngsw.json is missing')"]}, {"cmd": "node", "args": ["--eval", "assert(fs.existsSync('./dist/ngsw.json'), 'ngsw.json is missing')"]},
{"cmd": "node", "args": ["--eval", "assert(fs.existsSync('./dist/ngsw-worker.js'), 'ngsw-worker.js is missing')"]}, {"cmd": "node", "args": ["--eval", "assert(fs.existsSync('./dist/ngsw-worker.js'), 'ngsw-worker.js is missing')"]},
{"cmd": "node", "args": ["--eval", "assert(require('./package.json').dependencies['@angular/service-worker'], '@angular/service-worker is missing')"]} {"cmd": "node", "args": ["--eval", "assert(require('./package.json').dependencies['@angular/service-worker'], '@angular/service-worker is missing')"]}

View File

@ -1,6 +1,6 @@
{ {
"tests": [ "tests": [
{"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]}, {"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]},
{"cmd": "yarn", "args": ["e2e", "--prod", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]} {"cmd": "yarn", "args": ["e2e", "--configuration=production", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}
] ]
} }

View File

@ -2,6 +2,6 @@
"projectType": "testing", "projectType": "testing",
"tests": [ "tests": [
{"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]}, {"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]},
{"cmd": "yarn", "args": ["e2e", "--prod", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]} {"cmd": "yarn", "args": ["e2e", "--configuration=production", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}
] ]
} }

View File

@ -32,8 +32,8 @@ describe('AppComponent (initial CLI version)', () => {
it('should render title', waitForAsync(() => { it('should render title', waitForAsync(() => {
const fixture = TestBed.createComponent(AppComponent); const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges(); fixture.detectChanges();
const compiled = fixture.nativeElement; const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); expect(compiled.querySelector('h1')?.textContent).toContain('Welcome to app!');
})); }));
}); });
// #enddocregion // #enddocregion

View File

@ -1,6 +1,6 @@
{ {
"tests": [ "tests": [
{"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]}, {"cmd": "yarn", "args": ["test", "--browsers=ChromeHeadless", "--no-watch"]},
{"cmd": "yarn", "args": ["e2e", "--prod", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]} {"cmd": "yarn", "args": ["e2e", "--configuration=production", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}
] ]
} }

View File

@ -1,7 +1,7 @@
{ {
"projectType": "universal", "projectType": "universal",
"e2e": [ "e2e": [
{"cmd": "yarn", "args": ["e2e", "--prod", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]}, {"cmd": "yarn", "args": ["e2e", "--configuration=production", "--protractor-config=e2e/protractor-puppeteer.conf.js", "--no-webdriver-update", "--port={PORT}"]},
{"cmd": "yarn", "args": ["run", "build:ssr"]} {"cmd": "yarn", "args": ["run", "build:ssr"]}
] ]
} }

View File

@ -582,7 +582,7 @@ For example, the following excerpt of an `angular.json` file sets the source loc
<code-example language="json" header="angular.json"> <code-example language="json" header="angular.json">
... ...
"projects": { "projects": {
"angular.io-example": { "my-project": {
... ...
"i18n": { "i18n": {
"sourceLocale": "en-US", "sourceLocale": "en-US",
@ -712,18 +712,19 @@ For production builds, you can use configuration composition to execute both con
... ...
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "my-project:build"
},
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "my-project:build:production" "browserTarget": "my-project:build:production"
}, },
"development": {
"browserTarget": "my-project:build:development"
},
"fr": { "fr": {
"browserTarget": "my-project:build:fr" "browserTarget": "my-project:build:fr"
} }
} },
} "defaultConfiguration": "development"
},
} }
</code-example> </code-example>
@ -759,7 +760,7 @@ The HTML `base` tag with the `href` attribute specifies the base URI, or URL, fo
<code-example language="json" header="angular.json"> <code-example language="json" header="angular.json">
... ...
"projects": { "projects": {
"angular.io-example": { "my-project": {
... ...
"i18n": { "i18n": {
"sourceLocale": "en-US", "sourceLocale": "en-US",

View File

@ -86,7 +86,7 @@ The file is expected to contain a JSON object with zero or more of the following
"cmd": "yarn", "cmd": "yarn",
"args": [ "args": [
"e2e", "e2e",
"--prod", "--configuration=production",
"--protractor-config=e2e/protractor-puppeteer.conf.js", "--protractor-config=e2e/protractor-puppeteer.conf.js",
"--no-webdriver-update", "--no-webdriver-update",
"--port={PORT}" "--port={PORT}"

View File

@ -266,7 +266,7 @@ function runE2eTestsCLI(appDir, outputFile, bufferOutput, port) {
cmd: 'yarn', cmd: 'yarn',
args: [ args: [
'e2e', 'e2e',
'--prod', '--configuration=production',
'--protractor-config=e2e/protractor-puppeteer.conf.js', '--protractor-config=e2e/protractor-puppeteer.conf.js',
'--no-webdriver-update', '--no-webdriver-update',
'--port={PORT}', '--port={PORT}',

View File

@ -7,47 +7,48 @@
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.0.0", "@angular/animations": "~12.1.0-",
"@angular/common": "~12.0.0", "@angular/common": "~12.1.0-",
"@angular/compiler": "~12.0.0", "@angular/compiler": "~12.1.0-",
"@angular/core": "~12.0.0", "@angular/core": "~12.1.0-",
"@angular/forms": "~12.0.0", "@angular/forms": "~12.1.0-",
"@angular/platform-browser": "~12.0.0", "@angular/platform-browser": "~12.1.0-",
"@angular/platform-browser-dynamic": "~12.0.0", "@angular/platform-browser-dynamic": "~12.1.0-",
"@angular/router": "~12.0.0", "@angular/router": "~12.1.0-",
"angular": "1.8.0", "angular": "1.8.0",
"angular-in-memory-web-api": "~0.11.0", "angular-in-memory-web-api": "~0.11.0",
"angular-route": "1.8.0", "angular-route": "1.8.0",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"tslib": "^2.0.0", "tslib": "^2.2.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.0.0", "@angular-devkit/build-angular": "~12.1.3",
"@angular/cli": "~12.0.0", "@angular/cli": "~12.1.3",
"@angular/compiler-cli": "~12.0.0", "@angular/compiler-cli": "~12.1.0-",
"@types/angular": "1.7.3", "@types/angular": "1.7.3",
"@types/angular-route": "1.7.1", "@types/angular-route": "1.7.1",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.8.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"jasmine-core": "~3.7.0", "jasmine-core": "~3.8.0",
"jasmine-marbles": "~0.6.0", "jasmine-marbles": "~0.8.3",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~7.0.0",
"karma": "~6.3.0", "karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3", "karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "~1.7.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~10.1.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.2.3" "typescript": "~4.3.2"
} }
} }

View File

@ -29,29 +29,10 @@
"styles": [ "styles": [
"src/styles.css" "src/styles.css"
], ],
"scripts": [], "scripts": []
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
@ -63,20 +44,37 @@
"maximumWarning": "2kb", "maximumWarning": "2kb",
"maximumError": "4kb" "maximumError": "4kb"
} }
] ],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
} }
} },
"defaultConfiguration": "production"
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular.io-example:build"
},
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "angular.io-example:build:production" "browserTarget": "angular.io-example:build:production"
},
"development": {
"browserTarget": "angular.io-example:build:development"
} }
} },
"defaultConfiguration": "development"
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",

View File

@ -7,43 +7,44 @@
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.0.0", "@angular/animations": "~12.1.0-",
"@angular/common": "~12.0.0", "@angular/common": "~12.1.0-",
"@angular/compiler": "~12.0.0", "@angular/compiler": "~12.1.0-",
"@angular/core": "~12.0.0", "@angular/core": "~12.1.0-",
"@angular/forms": "~12.0.0", "@angular/forms": "~12.1.0-",
"@angular/platform-browser": "~12.0.0", "@angular/platform-browser": "~12.1.0-",
"@angular/platform-browser-dynamic": "~12.0.0", "@angular/platform-browser-dynamic": "~12.1.0-",
"@angular/router": "~12.0.0", "@angular/router": "~12.1.0-",
"angular-in-memory-web-api": "~0.11.0", "angular-in-memory-web-api": "~0.11.0",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"tslib": "^2.0.0", "tslib": "^2.2.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.0.0", "@angular-devkit/build-angular": "~12.1.3",
"@angular/cli": "~12.0.0", "@angular/cli": "~12.1.3",
"@angular/compiler-cli": "~12.0.0", "@angular/compiler-cli": "~12.1.0-",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.8.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"jasmine-core": "~3.7.0", "jasmine-core": "~3.8.0",
"jasmine-marbles": "~0.6.0", "jasmine-marbles": "~0.8.3",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~7.0.0",
"karma": "~6.3.0", "karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3", "karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "~1.7.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~10.1.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.2.3" "typescript": "~4.3.2"
} }
} }

View File

@ -1,5 +1,5 @@
// This file can be replaced during build by using the `fileReplacements` array. // This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`. // The list of file replacements can be found in `angular.json`.
export const environment = { export const environment = {

View File

@ -14,7 +14,7 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "es2017",
"module": "es2020", "module": "es2020",
"lib": [ "lib": [
"es2018", "es2018",

View File

@ -7,45 +7,46 @@
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.0.0", "@angular/animations": "~12.1.0-",
"@angular/common": "~12.0.0", "@angular/common": "~12.1.0-",
"@angular/compiler": "~12.0.0", "@angular/compiler": "~12.1.0-",
"@angular/core": "~12.0.0", "@angular/core": "~12.1.0-",
"@angular/elements": "~12.0.0", "@angular/elements": "~12.1.0-",
"@angular/forms": "~12.0.0", "@angular/forms": "~12.1.0-",
"@angular/platform-browser": "~12.0.0", "@angular/platform-browser": "~12.1.0-",
"@angular/platform-browser-dynamic": "~12.0.0", "@angular/platform-browser-dynamic": "~12.1.0-",
"@angular/router": "~12.0.0", "@angular/router": "~12.1.0-",
"@webcomponents/custom-elements": "^1.4.2", "@webcomponents/custom-elements": "^1.4.2",
"angular-in-memory-web-api": "~0.11.0", "angular-in-memory-web-api": "~0.11.0",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"tslib": "^2.0.0", "tslib": "^2.2.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.0.0", "@angular-devkit/build-angular": "~12.1.3",
"@angular/cli": "~12.0.0", "@angular/cli": "~12.1.3",
"@angular/compiler-cli": "~12.0.0", "@angular/compiler-cli": "~12.1.0-",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.8.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"jasmine-core": "~3.7.0", "jasmine-core": "~3.8.0",
"jasmine-marbles": "~0.6.0", "jasmine-marbles": "~0.8.3",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~7.0.0",
"karma": "~6.3.0", "karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3", "karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "~1.7.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~10.1.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.2.3" "typescript": "~4.3.2"
} }
} }

View File

@ -29,7 +29,6 @@
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
@ -41,19 +40,6 @@
}, },
"configurations": { "configurations": {
"production": { "production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
@ -65,28 +51,45 @@
"maximumWarning": "2kb", "maximumWarning": "2kb",
"maximumError": "4kb" "maximumError": "4kb"
} }
] ],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}, },
"fr": { "fr": {
"localize": [ "localize": [
"fr" "fr"
] ]
} }
} },
"defaultConfiguration": "production"
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular.io-example:build"
},
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "angular.io-example:build:production" "browserTarget": "angular.io-example:build:production"
}, },
"development": {
"browserTarget": "angular.io-example:build:development"
},
"fr": { "fr": {
"browserTarget": "angular.io-example:build:fr" "browserTarget": "angular.io-example:build:fr"
} }
} },
"defaultConfiguration": "development"
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",

View File

@ -9,6 +9,7 @@
"start:fr": "ng serve --configuration=fr", "start:fr": "ng serve --configuration=fr",
"build": "ng build", "build": "ng build",
"build:fr": "ng build --configuration=production-fr", "build:fr": "ng build --configuration=production-fr",
"watch": "ng build --watch --configuration development",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e", "e2e": "ng e2e",
@ -16,38 +17,38 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.0.0", "@angular/animations": "~12.1.0-",
"@angular/common": "~12.0.0", "@angular/common": "~12.1.0-",
"@angular/compiler": "~12.0.0", "@angular/compiler": "~12.1.0-",
"@angular/core": "~12.0.0", "@angular/core": "~12.1.0-",
"@angular/forms": "~12.0.0", "@angular/forms": "~12.1.0-",
"@angular/localize": "~12.0.0", "@angular/localize": "~12.1.0-",
"@angular/platform-browser": "~12.0.0", "@angular/platform-browser": "~12.1.0-",
"@angular/platform-browser-dynamic": "~12.0.0", "@angular/platform-browser-dynamic": "~12.1.0-",
"@angular/router": "~12.0.0", "@angular/router": "~12.1.0-",
"angular-in-memory-web-api": "~0.11.0", "angular-in-memory-web-api": "~0.11.0",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"tslib": "^2.0.0", "tslib": "^2.2.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.0.0", "@angular-devkit/build-angular": "~12.1.3",
"@angular/cli": "~12.0.0", "@angular/cli": "~12.1.3",
"@angular/compiler-cli": "~12.0.0", "@angular/compiler-cli": "~12.1.0-",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.8.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"jasmine-core": "~3.7.0", "jasmine-core": "~3.8.0",
"jasmine-marbles": "~0.6.0", "jasmine-marbles": "~0.8.3",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~7.0.0",
"karma": "~6.3.0", "karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3", "karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "~1.7.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~10.1.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.2.3" "typescript": "~4.3.2"
} }
} }

View File

@ -22,7 +22,6 @@
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
@ -34,19 +33,6 @@
}, },
"configurations": { "configurations": {
"production": { "production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
@ -58,20 +44,37 @@
"maximumWarning": "2kb", "maximumWarning": "2kb",
"maximumError": "4kb" "maximumError": "4kb"
} }
] ],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
} }
} },
"defaultConfiguration": "production"
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular.io-example:build"
},
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "angular.io-example:build:production" "browserTarget": "angular.io-example:build:production"
},
"development": {
"browserTarget": "angular.io-example:build:development"
} }
} },
"defaultConfiguration": "development"
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",

View File

@ -22,7 +22,6 @@
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
@ -30,24 +29,12 @@
"styles": [ "styles": [
"src/styles.css" "src/styles.css"
], ],
"scripts": [] "scripts": [],
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
}, },
"configurations": { "configurations": {
"production": { "production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"serviceWorker": true,
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
@ -59,20 +46,37 @@
"maximumWarning": "2kb", "maximumWarning": "2kb",
"maximumError": "4kb" "maximumError": "4kb"
} }
] ],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
} }
} },
"defaultConfiguration": "production"
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular.io-example:build"
},
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "angular.io-example:build:production" "browserTarget": "angular.io-example:build:production"
},
"development": {
"browserTarget": "angular.io-example:build:development"
} }
} },
"defaultConfiguration": "development"
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",

View File

@ -7,44 +7,45 @@
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.0.0", "@angular/animations": "~12.1.0-",
"@angular/common": "~12.0.0", "@angular/common": "~12.1.0-",
"@angular/compiler": "~12.0.0", "@angular/compiler": "~12.1.0-",
"@angular/core": "~12.0.0", "@angular/core": "~12.1.0-",
"@angular/forms": "~12.0.0", "@angular/forms": "~12.1.0-",
"@angular/platform-browser": "~12.0.0", "@angular/platform-browser": "~12.1.0-",
"@angular/platform-browser-dynamic": "~12.0.0", "@angular/platform-browser-dynamic": "~12.1.0-",
"@angular/router": "~12.0.0", "@angular/router": "~12.1.0-",
"@angular/service-worker": "~12.0.0", "@angular/service-worker": "~12.1.0-",
"angular-in-memory-web-api": "~0.11.0", "angular-in-memory-web-api": "~0.11.0",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"tslib": "^2.0.0", "tslib": "^2.2.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.0.0", "@angular-devkit/build-angular": "~12.1.3",
"@angular/cli": "~12.0.0", "@angular/cli": "~12.1.3",
"@angular/compiler-cli": "~12.0.0", "@angular/compiler-cli": "~12.1.0-",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.8.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"jasmine-core": "~3.7.0", "jasmine-core": "~3.8.0",
"jasmine-marbles": "~0.6.0", "jasmine-marbles": "~0.8.3",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~7.0.0",
"karma": "~6.3.0", "karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3", "karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "~1.7.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~10.1.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.2.3" "typescript": "~4.3.2"
} }
} }

View File

@ -26,36 +26,36 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.0.0", "@angular/animations": "~12.1.0-",
"@angular/common": "~12.0.0", "@angular/common": "~12.1.0-",
"@angular/compiler": "~12.0.0", "@angular/compiler": "~12.1.0-",
"@angular/core": "~12.0.0", "@angular/core": "~12.1.0-",
"@angular/forms": "~12.0.0", "@angular/forms": "~12.1.0-",
"@angular/platform-browser": "~12.0.0", "@angular/platform-browser": "~12.1.0-",
"@angular/platform-browser-dynamic": "~12.0.0", "@angular/platform-browser-dynamic": "~12.1.0-",
"@angular/router": "~12.0.0", "@angular/router": "~12.1.0-",
"@angular/upgrade": "~12.0.0", "@angular/upgrade": "~12.1.0-",
"core-js": "^2.5.4", "core-js": "^2.5.4",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"tslib": "^2.0.0", "tslib": "^2.2.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular/compiler-cli": "~12.0.0", "@angular/compiler-cli": "~12.1.0-",
"@types/angular": "1.7.3", "@types/angular": "1.7.3",
"@types/angular-animate": "1.5.10", "@types/angular-animate": "1.5.10",
"@types/angular-mocks": "1.7.0", "@types/angular-mocks": "1.7.0",
"@types/angular-resource": "1.5.16", "@types/angular-resource": "1.5.16",
"@types/angular-route": "1.7.1", "@types/angular-route": "1.7.1",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.8.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"concurrently": "^5.0.1", "concurrently": "^5.0.1",
"http-server": "^0.12.0", "http-server": "^0.12.0",
"jasmine-core": "~3.7.0", "jasmine-core": "~3.8.0",
"karma": "~6.3.0", "karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "~1.7.0",
"lite-server": "^2.6.1", "lite-server": "^2.6.1",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"rollup": "^1.1.0", "rollup": "^1.1.0",
@ -63,6 +63,6 @@
"rollup-plugin-node-resolve": "^4.0.0", "rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-terser": "^5.3.0", "rollup-plugin-terser": "^5.3.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.2.3" "typescript": "~4.3.2"
} }
} }

View File

@ -22,7 +22,6 @@
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
@ -35,19 +34,6 @@
}, },
"configurations": { "configurations": {
"production": { "production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
@ -59,20 +45,37 @@
"maximumWarning": "2kb", "maximumWarning": "2kb",
"maximumError": "4kb" "maximumError": "4kb"
} }
] ],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
} }
} },
"defaultConfiguration": "production"
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular.io-example:build"
},
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "angular.io-example:build:production" "browserTarget": "angular.io-example:build:production"
},
"development": {
"browserTarget": "angular.io-example:build:development"
} }
} },
"defaultConfiguration": "development"
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",

View File

@ -22,7 +22,6 @@
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
@ -34,19 +33,6 @@
}, },
"configurations": { "configurations": {
"production": { "production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
@ -58,20 +44,37 @@
"maximumWarning": "2kb", "maximumWarning": "2kb",
"maximumError": "4kb" "maximumError": "4kb"
} }
] ],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
} }
} },
"defaultConfiguration": "production"
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular.io-example:build"
},
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "angular.io-example:build:production" "browserTarget": "angular.io-example:build:production"
},
"development": {
"browserTarget": "angular.io-example:build:development"
} }
} },
"defaultConfiguration": "development"
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",
@ -136,37 +139,48 @@
"replace": "src/environments/environment.ts", "replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts" "with": "src/environments/environment.prod.ts"
} }
], ]
"sourceMap": false, },
"optimization": true "development": {
"optimization": false,
"sourceMap": true,
"extractLicenses": false
} }
} },
"defaultConfiguration": "production"
}, },
"serve-ssr": { "serve-ssr": {
"builder": "@nguniversal/builders:ssr-dev-server", "builder": "@nguniversal/builders:ssr-dev-server",
"options": {
"browserTarget": "angular.io-example:build",
"serverTarget": "angular.io-example:server"
},
"configurations": { "configurations": {
"development": {
"browserTarget": "angular.io-example:build:development",
"serverTarget": "angular.io-example:server:development"
},
"production": { "production": {
"browserTarget": "angular.io-example:build:production", "browserTarget": "angular.io-example:build:production",
"serverTarget": "angular.io-example:server:production" "serverTarget": "angular.io-example:server:production"
} }
} },
"defaultConfiguration": "development"
}, },
"prerender": { "prerender": {
"builder": "@nguniversal/builders:prerender", "builder": "@nguniversal/builders:prerender",
"options": { "options": {
"browserTarget": "angular.io-example:build:production",
"serverTarget": "angular.io-example:server:production",
"routes": [ "routes": [
"/" "/"
] ]
}, },
"configurations": { "configurations": {
"production": {} "production": {
} "browserTarget": "angular.io-example:build:production",
"serverTarget": "angular.io-example:server:production"
},
"development": {
"browserTarget": "angular.io-example:build:development",
"serverTarget": "angular.io-example:server:development"
}
},
"defaultConfiguration": "production"
} }
} }
} }

View File

@ -7,52 +7,53 @@
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e", "e2e": "ng e2e",
"dev:ssr": "ng run angular.io-example:serve-ssr", "dev:ssr": "ng run angular.io-example:serve-ssr",
"serve:ssr": "node dist/server/main.js", "serve:ssr": "node dist/server/main.js",
"build:ssr": "ng build --prod && ng run angular.io-example:server:production", "build:ssr": "ng build && ng run angular.io-example:server",
"prerender": "ng run angular.io-example:prerender" "prerender": "ng run angular.io-example:prerender"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.0.0", "@angular/animations": "~12.1.0-",
"@angular/common": "~12.0.0", "@angular/common": "~12.1.0-",
"@angular/compiler": "~12.0.0", "@angular/compiler": "~12.1.0-",
"@angular/core": "~12.0.0", "@angular/core": "~12.1.0-",
"@angular/forms": "~12.0.0", "@angular/forms": "~12.1.0-",
"@angular/platform-browser": "~12.0.0", "@angular/platform-browser": "~12.1.0-",
"@angular/platform-browser-dynamic": "~12.0.0", "@angular/platform-browser-dynamic": "~12.1.0-",
"@angular/platform-server": "~12.0.0", "@angular/platform-server": "~12.1.0-",
"@angular/router": "~12.0.0", "@angular/router": "~12.1.0-",
"@nguniversal/express-engine": "^12.0.0", "@nguniversal/express-engine": "~12.1.0",
"angular-in-memory-web-api": "~0.11.0", "angular-in-memory-web-api": "~0.11.0",
"express": "^4.15.2", "express": "^4.15.2",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"tslib": "^2.0.0", "tslib": "^2.2.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.0.0", "@angular-devkit/build-angular": "~12.1.3",
"@angular/cli": "~12.0.0", "@angular/cli": "~12.1.3",
"@angular/compiler-cli": "~12.0.0", "@angular/compiler-cli": "~12.1.0-",
"@nguniversal/builders": "^12.0.0", "@nguniversal/builders": "~12.1.0",
"@types/express": "^4.17.8", "@types/express": "^4.17.8",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.8.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"jasmine-core": "~3.7.0", "jasmine-core": "~3.8.0",
"jasmine-marbles": "~0.6.0", "jasmine-marbles": "~0.8.3",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~7.0.0",
"karma": "~6.3.0", "karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3", "karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "~1.7.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~10.1.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.2.3" "typescript": "~4.3.2"
} }
} }

View File

@ -21,20 +21,20 @@
"license": "MIT", "license": "MIT",
"repository": {}, "repository": {},
"dependencies": { "dependencies": {
"@angular/animations": "~12.0.0", "@angular/animations": "~12.1.0-",
"@angular/common": "~12.0.0", "@angular/common": "~12.1.0-",
"@angular/compiler": "~12.0.0", "@angular/compiler": "~12.1.0-",
"@angular/core": "~12.0.0", "@angular/core": "~12.1.0-",
"@angular/elements": "~12.0.0", "@angular/elements": "~12.1.0-",
"@angular/forms": "~12.0.0", "@angular/forms": "~12.1.0-",
"@angular/localize": "~12.0.0", "@angular/localize": "~12.1.0-",
"@angular/platform-browser": "~12.0.0", "@angular/platform-browser": "~12.1.0-",
"@angular/platform-browser-dynamic": "~12.0.0", "@angular/platform-browser-dynamic": "~12.1.0-",
"@angular/platform-server": "~12.0.0", "@angular/platform-server": "~12.1.0-",
"@angular/router": "~12.0.0", "@angular/router": "~12.1.0-",
"@angular/service-worker": "~12.0.0", "@angular/service-worker": "~12.1.0-",
"@angular/upgrade": "~12.0.0", "@angular/upgrade": "~12.1.0-",
"@nguniversal/express-engine": "^12.0.0", "@nguniversal/express-engine": "~12.1.0",
"@webcomponents/custom-elements": "^1.4.2", "@webcomponents/custom-elements": "^1.4.2",
"angular": "1.8.0", "angular": "1.8.0",
"angular-in-memory-web-api": "~0.11.0", "angular-in-memory-web-api": "~0.11.0",
@ -43,35 +43,35 @@
"express": "^4.15.2", "express": "^4.15.2",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"systemjs": "0.19.39", "systemjs": "0.19.39",
"tslib": "^2.0.0", "tslib": "^2.2.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.0.0", "@angular-devkit/build-angular": "~12.1.3",
"@angular/cli": "~12.0.0", "@angular/cli": "~12.1.3",
"@angular/compiler-cli": "~12.0.0", "@angular/compiler-cli": "~12.1.0-",
"@nguniversal/builders": "^12.0.0", "@nguniversal/builders": "~12.1.0",
"@types/angular": "1.7.3", "@types/angular": "1.7.3",
"@types/angular-animate": "1.5.10", "@types/angular-animate": "1.5.10",
"@types/angular-mocks": "1.7.0", "@types/angular-mocks": "1.7.0",
"@types/angular-resource": "1.5.16", "@types/angular-resource": "1.5.16",
"@types/angular-route": "1.7.1", "@types/angular-route": "1.7.1",
"@types/express": "^4.17.8", "@types/express": "^4.17.8",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.8.0",
"@types/jquery": "3.5.1", "@types/jquery": "3.5.1",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"canonical-path": "1.0.0", "canonical-path": "1.0.0",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"concurrently": "^5.0.1", "concurrently": "^5.0.1",
"http-server": "^0.12.0", "http-server": "^0.12.0",
"jasmine-core": "~3.7.0", "jasmine-core": "~3.8.0",
"jasmine-marbles": "~0.6.0", "jasmine-marbles": "~0.8.3",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~7.0.0",
"karma": "~6.3.0", "karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3", "karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "~1.7.0",
"lite-server": "^2.6.1", "lite-server": "^2.6.1",
"lodash": "^4.16.2", "lodash": "^4.16.2",
"protractor": "~7.0.0", "protractor": "~7.0.0",
@ -82,8 +82,8 @@
"rollup-plugin-node-resolve": "^4.0.0", "rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-terser": "^5.3.0", "rollup-plugin-terser": "^5.3.0",
"source-map-explorer": "^1.3.2", "source-map-explorer": "^1.3.2",
"ts-node": "~8.3.0", "ts-node": "~10.1.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.2.3" "typescript": "~4.3.2"
} }
} }

View File

@ -2,12 +2,12 @@
// see boilerplate/tsconfig.json for the tsconfig used in examples // see boilerplate/tsconfig.json for the tsconfig used in examples
{ {
"compilerOptions": { "compilerOptions": {
"target": "es6", "target": "es2017",
"module": "commonjs", "module": "commonjs",
"moduleResolution": "node", "moduleResolution": "node",
"sourceMap": true, "sourceMap": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"lib": ["es2015", "dom"], "lib": ["es2018", "dom"],
"noImplicitAny": true, "noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true, "suppressImplicitAnyIndexErrors": true,
"typeRoots": [ "typeRoots": [

File diff suppressed because it is too large Load Diff