Browse Source

升级到ng10

beijing
刘向辉 2 years ago
parent
commit
fbf3d2d5e2
  1. 0
      .browserslistrc
  2. 2
      angular.json
  3. 2
      e2e/tsconfig.json
  4. 50
      package.json
  5. 2
      tsconfig.json
  6. 66
      tslint.json
  7. 21115
      yarn.lock

0
browserslist → .browserslistrc

2
angular.json

@ -8,7 +8,7 @@
"schematics": { "schematics": {
"@schematics/angular:component": { "@schematics/angular:component": {
"style": "scss", "style": "scss",
"spec": false "skipTests": true
} }
}, },
"root": "", "root": "",

2
e2e/tsconfig.json

@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/e2e", "outDir": "../out-tsc/e2e",
"module": "commonjs", "module": "commonjs",
"target": "es5", "target": "es2018",
"types": [ "types": [
"jasmine", "jasmine",
"jasminewd2", "jasminewd2",

50
package.json

@ -11,17 +11,17 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^9.0.0", "@angular/animations": "^10.2.5",
"@angular/cdk": "^9.2.4", "@angular/cdk": "^9.2.4",
"@angular/common": "~9.0.0", "@angular/common": "~10.2.5",
"@angular/compiler": "~9.0.0", "@angular/compiler": "~10.2.5",
"@angular/core": "~9.0.0", "@angular/core": "~10.2.5",
"@angular/fire": "^5.3.0", "@angular/fire": "^5.3.0",
"@angular/forms": "~9.0.0", "@angular/forms": "~10.2.5",
"@angular/material": "^9.0.0", "@angular/material": "9",
"@angular/platform-browser": "~9.0.0", "@angular/platform-browser": "~10.2.5",
"@angular/platform-browser-dynamic": "~9.0.0", "@angular/platform-browser-dynamic": "~10.2.5",
"@angular/router": "~9.0.0", "@angular/router": "~10.2.5",
"@aspnet/signalr": "^1.1.4", "@aspnet/signalr": "^1.1.4",
"@babylonjs/core": "4.2.1", "@babylonjs/core": "4.2.1",
"@babylonjs/gui": "4.2.1", "@babylonjs/gui": "4.2.1",
@ -56,29 +56,29 @@
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rxjs": "~6.5.4", "rxjs": "~6.5.4",
"swiper": "^5.3.6", "swiper": "^5.3.6",
"tslib": "^1.10.0", "tslib": "^2.0.0",
"viewerjs": "^1.6.2", "viewerjs": "^1.6.2",
"zone.js": "~0.10.2" "zone.js": "~0.10.3"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.900.1", "@angular-devkit/build-angular": "~0.1002.4",
"@angular/cli": "~9.0.1", "@angular/cli": "~10.2.4",
"@angular/compiler-cli": "~9.0.0", "@angular/compiler-cli": "~10.2.5",
"@angular/language-service": "~9.0.0", "@angular/language-service": "~10.2.5",
"@types/jasmine": "~3.3.8", "@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^5.1.2", "codelyzer": "^5.1.2",
"jasmine-core": "~3.4.0", "jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~5.0.0",
"karma": "~4.1.0", "karma": "~5.0.0",
"karma-chrome-launcher": "~2.2.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.0.1", "karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~2.0.1", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.4.0", "karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~5.4.0", "protractor": "~7.0.0",
"ts-node": "~7.0.0", "ts-node": "~7.0.0",
"tslint": "~5.15.0", "tslint": "~6.1.0",
"typescript": "~3.7.5" "typescript": "~4.0.8"
} }
} }

2
tsconfig.json

@ -8,7 +8,7 @@
"declaration": false, "declaration": false,
"downlevelIteration": true, "downlevelIteration": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"module": "esnext", "module": "es2020",
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "es2015",

66
tslint.json

@ -1,13 +1,21 @@
{ {
"extends": "tslint:recommended", "extends": "tslint:recommended",
"rules": { "rules": {
"align": {
"options": [
"parameters",
"statements"
]
},
"array-type": false, "array-type": false,
"arrow-parens": false, "arrow-parens": false,
"arrow-return-shorthand": true,
"deprecation": { "deprecation": {
"severity": "warning" "severity": "warning"
}, },
"component-class-suffix": true, "component-class-suffix": true,
"contextual-lifecycle": true, "contextual-lifecycle": true,
"curly": true,
"directive-class-suffix": true, "directive-class-suffix": true,
"directive-selector": [ "directive-selector": [
true, true,
@ -21,10 +29,17 @@
"app", "app",
"kebab-case" "kebab-case"
], ],
"eofline": true,
"import-blacklist": [ "import-blacklist": [
true, true,
"rxjs/Rx" "rxjs/Rx"
], ],
"import-spacing": true,
"indent": {
"options": [
"spaces"
]
},
"interface-name": false, "interface-name": false,
"max-classes-per-file": false, "max-classes-per-file": false,
"max-line-length": [ "max-line-length": [
@ -79,11 +94,60 @@
"no-output-native": true, "no-output-native": true,
"no-output-on-prefix": true, "no-output-on-prefix": true,
"no-output-rename": true, "no-output-rename": true,
"semicolon": {
"options": [
"always"
]
},
"space-before-function-paren": {
"options": {
"anonymous": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never",
"named": "never"
}
},
"no-outputs-metadata-property": true, "no-outputs-metadata-property": true,
"template-banana-in-box": true, "template-banana-in-box": true,
"template-no-negated-async": true, "template-no-negated-async": true,
"typedef-whitespace": {
"options": [
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
]
},
"use-lifecycle-interface": true, "use-lifecycle-interface": true,
"use-pipe-transform-interface": true "use-pipe-transform-interface": true,
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-pascal-case"
]
},
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
}
}, },
"rulesDirectory": [ "rulesDirectory": [
"codelyzer" "codelyzer"

21115
yarn.lock

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