diff --git a/explore/angular.json b/explore/angular.json index 3772fd7a..e18ac869 100644 --- a/explore/angular.json +++ b/explore/angular.json @@ -22,7 +22,6 @@ "skipTests": true }, "@schematics/angular:module": { - "skipTests": true }, "@schematics/angular:pipe": { "skipTests": true @@ -35,7 +34,6 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "aot": true, "outputPath": "dist/explore/browser", "index": "src/index.html", "main": "src/main.ts", @@ -60,7 +58,13 @@ "node_modules/uikit/dist/js/uikit.min.js", "node_modules/uikit/dist/js/uikit-icons.min.js", "node_modules/jquery/dist/jquery.js" - ] + ], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "development": { @@ -68,7 +72,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -95,7 +98,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -141,7 +143,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -187,7 +188,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -203,7 +203,8 @@ } ] } - } + }, + "defaultConfiguration": "" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", @@ -255,7 +256,9 @@ "options": { "outputPath": "dist/explore/server", "main": "server.ts", - "tsConfig": "src/tsconfig.server.json" + "tsConfig": "src/tsconfig.server.json", + "sourceMap": true, + "optimization": false }, "configurations": { "development": { @@ -296,7 +299,8 @@ "sourceMap": false, "optimization": true } - } + }, + "defaultConfiguration": "" }, "serve-ssr": { "builder": "@nguniversal/builders:ssr-dev-server", diff --git a/explore/package.json b/explore/package.json index a78977f4..7262d617 100644 --- a/explore/package.json +++ b/explore/package.json @@ -8,7 +8,7 @@ "build-dev": "ng build --configuration=development", "build-test": "ng build --configuration=test", "build-beta": "ng build --configuration=beta", - "build-prod": "ng build --prod", + "build-prod": "ng build --configuration production", "webpack-bundle-analyzer": "ng build --stats-json && webpack-bundle-analyzer dist/explore/browser/stats.json --host 0.0.0.0", "test": "ng test", "e2e": "ng e2e", @@ -23,18 +23,18 @@ }, "private": true, "dependencies": { - "@angular/animations": "~11.2.14", + "@angular/animations": "~12.2.16", "@angular/cdk": "^11.2.13", - "@angular/common": "~11.2.14", - "@angular/compiler": "~11.2.14", - "@angular/core": "~11.2.14", - "@angular/forms": "~11.2.14", - "@angular/localize": "^11.2.14", + "@angular/common": "~12.2.16", + "@angular/compiler": "~12.2.16", + "@angular/core": "~12.2.16", + "@angular/forms": "~12.2.16", + "@angular/localize": "^12.2.16", "@angular/material": "^11.2.13", - "@angular/platform-browser": "~11.2.14", - "@angular/platform-browser-dynamic": "~11.2.14", - "@angular/platform-server": "~11.2.14", - "@angular/router": "~11.2.14", + "@angular/platform-browser": "~12.2.16", + "@angular/platform-browser-dynamic": "~12.2.16", + "@angular/platform-server": "~12.2.16", + "@angular/router": "~12.2.16", "@nguniversal/express-engine": "^11.2.1", "clipboard": "^1.5.16", "core-js": "^2.5.4", @@ -46,13 +46,13 @@ "ts-md5": "^1.2.0", "tslib": "^2.0.0", "uikit": "3.12.0", - "zone.js": "~0.10.2" + "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.1102.13", - "@angular/cli": "~11.2.13", - "@angular/compiler-cli": "~11.2.14", - "@angular/language-service": "~11.2.14", + "@angular-devkit/build-angular": "~12.2.18", + "@angular/cli": "~12.2.18", + "@angular/compiler-cli": "~12.2.16", + "@angular/language-service": "~12.2.16", "@nguniversal/builders": "^11.2.1", "@types/compression": "^1.7.0", "@types/express": "^4.17.0", @@ -69,6 +69,6 @@ "karma-jasmine-html-reporter": "^1.6.0", "protractor": "~7.0.0", "ts-node": "~7.0.0", - "typescript": "~4.0.7" + "typescript": "~4.3.5" } -} +} \ No newline at end of file diff --git a/explore/server.ts b/explore/server.ts index 3e77708b..327d8190 100644 --- a/explore/server.ts +++ b/explore/server.ts @@ -1,4 +1,4 @@ -import 'zone.js/dist/zone-node'; +import 'zone.js/node'; import { ngExpressEngine } from '@nguniversal/express-engine'; import * as express from 'express'; diff --git a/explore/src/polyfills.ts b/explore/src/polyfills.ts index 7c9e495f..f1aacd9f 100644 --- a/explore/src/polyfills.ts +++ b/explore/src/polyfills.ts @@ -59,7 +59,7 @@ import '@angular/localize/init'; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. +import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** diff --git a/explore/src/test.ts b/explore/src/test.ts index 16317897..a6f15af3 100644 --- a/explore/src/test.ts +++ b/explore/src/test.ts @@ -1,6 +1,6 @@ // This file is required by karma.conf.js and loads recursively all the .spec and framework files -import 'zone.js/dist/zone-testing'; +import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, diff --git a/explore/tsconfig.json b/explore/tsconfig.json index 8c693a25..85001d5a 100644 --- a/explore/tsconfig.json +++ b/explore/tsconfig.json @@ -8,7 +8,6 @@ "declaration": false, "module": "es2020", "moduleResolution": "node", - "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, "target": "es2015",