Browse Source

升级到ng12

beijing
刘向辉 2 years ago
parent
commit
9b9404197d
  1. 12
      angular.json
  2. 43
      package.json
  3. 2
      src/environments/environment.ts
  4. 2
      src/polyfills.ts
  5. 2
      src/test.ts
  6. 3842
      yarn.lock

12
angular.json

@ -23,7 +23,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",
@ -53,7 +52,13 @@
"./node_modules/swiper/js/swiper.min.js", "./node_modules/swiper/js/swiper.min.js",
"node_modules/@aspnet/signalr/dist/browser/signalr.min.js", "node_modules/@aspnet/signalr/dist/browser/signalr.min.js",
"node_modules/abp-web-resources/Abp/Framework/scripts/abp.js" "node_modules/abp-web-resources/Abp/Framework/scripts/abp.js"
] ],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -83,7 +88,8 @@
} }
] ]
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",

43
package.json

@ -4,38 +4,41 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve --proxy-config proxy.config.json --open --port 4200 ", "start": "ng serve --proxy-config proxy.config.json --open --port 4200 ",
"build": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod", "build": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --configuration production",
"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": "^11.2.14", "@angular/animations": "^12.2.16",
"@angular/cdk": "^9.2.4", "@angular/cdk": "^9.2.4",
"@angular/common": "~11.2.14", "@angular/common": "~12.2.16",
"@angular/compiler": "~11.2.14", "@angular/compiler": "~12.2.16",
"@angular/core": "~11.2.14", "@angular/core": "~12.2.16",
"@angular/fire": "^5.3.0", "@angular/fire": "^5.3.0",
"@angular/forms": "~11.2.14", "@angular/forms": "~12.2.16",
"@angular/material": "9", "@angular/material": "9",
"@angular/platform-browser": "~11.2.14", "@angular/platform-browser": "~12.2.16",
"@angular/platform-browser-dynamic": "~11.2.14", "@angular/platform-browser-dynamic": "~12.2.16",
"@angular/router": "~11.2.14", "@angular/router": "~12.2.16",
"@aspnet/signalr": "^1.1.4", "@aspnet/signalr": "^1.1.4",
"@babylonjs/core": "4.2.1", "@babylonjs/core": "5.27.0",
"@babylonjs/gui": "4.2.1", "@babylonjs/gui": "^5.27.0",
"@babylonjs/inspector": "4.2.1", "@babylonjs/gui-editor": "^5.27.0",
"@babylonjs/loaders": "4.2.1", "@babylonjs/inspector": "^5.27.0",
"@babylonjs/materials": "4.2.1", "@babylonjs/loaders": "^5.27.0",
"@babylonjs/materials": "^5.27.0",
"@types/cesium": "^1.59.5", "@types/cesium": "^1.59.5",
"@types/earcut": "^2.1.1", "@types/earcut": "^2.1.1",
"@types/react": "^18.0.21",
"@types/react-dom": "^17.0.10", "@types/react-dom": "^17.0.10",
"@types/swiper": "^5.2.1", "@types/swiper": "^5.2.1",
"abp-ng2-module": "^6.4.0", "abp-ng2-module": "^6.4.0",
"abp-web-resources": "^5.4.0", "abp-web-resources": "^5.4.0",
"angular-calendar": "^0.28.2", "angular-calendar": "^0.28.2",
"babylonjs": "4.2.1", "babylonjs": "4.2.1",
"babylonjs-gltf2interface": "^5.28.0",
"bson-objectid": "^1.3.1", "bson-objectid": "^1.3.1",
"cesium": "^1.64.0", "cesium": "^1.64.0",
"class-transformer": "^0.4.0", "class-transformer": "^0.4.0",
@ -58,13 +61,13 @@
"swiper": "^5.3.6", "swiper": "^5.3.6",
"tslib": "^2.0.0", "tslib": "^2.0.0",
"viewerjs": "^1.6.2", "viewerjs": "^1.6.2",
"zone.js": "~0.10.3" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1102.19", "@angular-devkit/build-angular": "~12.2.18",
"@angular/cli": "~11.2.19", "@angular/cli": "~12.2.18",
"@angular/compiler-cli": "~11.2.14", "@angular/compiler-cli": "~12.2.16",
"@angular/language-service": "~11.2.14", "@angular/language-service": "~12.2.16",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
@ -79,6 +82,6 @@
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~7.0.0", "ts-node": "~7.0.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.0.8" "typescript": "~4.5.2"
} }
} }

2
src/environments/environment.ts

@ -13,4 +13,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact * This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown. * on performance if an error is thrown.
*/ */
// import 'zone.js/dist/zone-error'; // Included with Angular CLI. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

2
src/polyfills.ts

@ -55,7 +55,7 @@
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * 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.
/*************************************************************************************************** /***************************************************************************************************

2
src/test.ts

@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // 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 { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,

3842
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save