Skip to content

Commit

Permalink
feat(module: all): support Angular 14
Browse files Browse the repository at this point in the history
  • Loading branch information
nuonuoge committed Oct 31, 2022
1 parent 535c044 commit faa52d2
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 47 deletions.
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

## Angular 支持

现在支持 Angular `^13.0.0`.
现在支持 Angular `^14.0.0`.

## 安装

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This is the **Angular** implementation of **Ant Design Mobile** specification, s

## Angular Support

Now Supports Angular `^13.0.0`.
Now Supports Angular `^14.0.0`.

## Installation

Expand Down
1 change: 0 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
}
}
},
"defaultProject": "ng-zorro-antd-mobile",
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
Expand Down
32 changes: 16 additions & 16 deletions components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,26 @@
"url": "https://github.com/NG-ZORRO/ng-zorro-antd-mobile/issues"
},
"dependencies": {
"@angular/animations": "^13.1.1",
"@angular/cdk": "^13.1.1",
"@angular/common": "^13.1.1",
"@angular/compiler": "^13.1.1",
"@angular/core": "^13.1.1",
"@angular/forms": "^13.1.1",
"@angular/platform-browser": "^13.1.1",
"@angular/platform-browser-dynamic": "^13.1.1",
"@angular/router": "^13.1.1",
"@ant-design/icons-angular": "^13.0.1"
"@angular/animations": "^14.2.8",
"@angular/cdk": "^14.2.6",
"@angular/common": "^14.2.8",
"@angular/compiler": "^14.2.8",
"@angular/core": "^14.2.8",
"@angular/forms": "^14.2.8",
"@angular/platform-browser": "^14.2.8",
"@angular/platform-browser-dynamic": "^14.2.8",
"@angular/router": "^14.2.8",
"@ant-design/icons-angular": "^14.1.0"
},
"devDependencies": {
"@angular/upgrade": "^13.1.1",
"@angular-devkit/build-angular": "^13.1.2",
"@angular/cli": "^13.1.2",
"@angular/compiler-cli": "^13.1.1",
"@angular/platform-server": "^13.1.1",
"@angular/upgrade": "^14.2.8",
"@angular-devkit/build-angular": "^14.2.7",
"@angular/cli": "^14.2.7",
"@angular/compiler-cli": "^14.2.8",
"@angular/platform-server": "^14.2.8",
"tslib": "^2.3.0",
"tslint": "~6.1.3",
"typescript": "~4.5.4"
"typescript": "~4.7.4"
},
"lint-staged": {
"{src,docs}/**/*.{scss}": [
Expand Down
2 changes: 1 addition & 1 deletion components/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"target": "es2015",
"target": "es2020",
"module": "es2015",
"sourceMap": true,
"inlineSources": true,
Expand Down
2 changes: 1 addition & 1 deletion components/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "../out-tsc/spec",
"baseUrl": "./",
"target": "es5",
"target": "es2020",
"types": [
"jasmine",
"node"
Expand Down
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"ng": "ng",
"start": "npm run site:init && node --max_old_space_size=5120 node_modules/@angular/cli/bin/ng serve --port=4300",
"build": "node ./scripts/site/generate-site init && node --max_old_space_size=5120 node_modules/@angular/cli/bin/ng build --aot --configuration production --output-hashing none",
"build": "node ./scripts/site/generate-site init && node --max_old_space_size=5120 node_modules/@angular/cli/bin/ng build ng-zorro-antd-mobile --aot --configuration production --output-hashing none",
"test": "npm run site:init && ng test --watch=false --code-coverage",
"test-headless": "npm run site:init && ng test --watch=false --code-coverage --browsers=ChromeHeadless",
"test-watch": "npm run site:init && ng test --watch=true --code-coverage",
Expand All @@ -20,14 +20,14 @@
"schematic:tsc": "tsc -p schematics/tsconfig.json",
"schematic:build": "node ./scripts/schematics/set-theme.js && node ./scripts/schematics/set-version.js && npm run schematic:tsc && node ./scripts/schematics/copy-resources",
"schematic:generate": "npm run schematic:demo && npm run schematic:build && rm -rf schematics/demo",
"doc": "node --max_old_space_size=5120 node_modules/@angular/cli/bin/ng build --aot --configuration production",
"doc": "node --max_old_space_size=5120 node_modules/@angular/cli/bin/ng build ng-zorro-antd-mobile --aot --configuration production",
"helper": "bash ./release-helper.sh",
"migration-styles": "node ./scripts/build/migration-styles.js",
"integration": "npm run generate && bash ./integration-test.sh",
"format": "prettier --write './components/**/*.{ts,tsx,js,scss,html}' && tslint --fix './components/**/*.{js,ts,tsx}'",
"postgenerate": "node ./scripts/build/generate-less.js && cp README.md publish/README.md && npm run migration-styles && npm run schematic:generate",
"generate": "node --max_old_space_size=5120 node_modules/@angular/cli/bin/ng build ng-zorro-antd-mobile-lib --configuration production",
"pre-release": "npm run site:init && bash ./scripts/build/replace-publish.sh && npm run generate && node --max_old_space_size=5120 ./node_modules/@angular/cli/bin/ng build --aot --configuration production && npm run helper"
"pre-release": "npm run site:init && bash ./scripts/build/replace-publish.sh && npm run generate && node --max_old_space_size=5120 ./node_modules/@angular/cli/bin/ng build ng-zorro-antd-mobile --aot --configuration production && npm run helper"
},
"main": "./bundles/antd.umd.js",
"module": "./esm5/antd.js",
Expand All @@ -45,30 +45,30 @@
"frontend"
],
"dependencies": {
"@angular/animations": "^13.1.1",
"@angular/cdk": "^13.1.1",
"@angular/common": "^13.1.1",
"@angular/compiler": "^13.1.1",
"@angular/core": "^13.1.1",
"@angular/forms": "^13.1.1",
"@angular/platform-browser": "^13.1.1",
"@angular/platform-browser-dynamic": "^13.1.1",
"@angular/pwa": "^13.1.2",
"@angular/router": "^13.1.1",
"@ant-design/icons-angular": "^13.0.1",
"@angular/animations": "^14.2.8",
"@angular/cdk": "^14.2.6",
"@angular/common": "^14.2.8",
"@angular/compiler": "^14.2.8",
"@angular/core": "^14.2.8",
"@angular/forms": "^14.2.8",
"@angular/platform-browser": "^14.2.8",
"@angular/platform-browser-dynamic": "^14.2.8",
"@angular/pwa": "^14.2.7",
"@angular/router": "^14.2.8",
"@ant-design/icons-angular": "^14.1.0",
"ant-design": "^1.0.0",
"antd-mobile-demo-data": "^0.3.0",
"ng-zorro-antd": "^13.0.0"
"ng-zorro-antd": "^14.1.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.1.2",
"@angular-devkit/core": "^13.1.2",
"@angular-devkit/schematics": "^13.1.2",
"@angular/cli": "^13.1.2",
"@angular/compiler-cli": "^13.1.1",
"@angular/platform-server": "^13.1.1",
"@angular/service-worker": "^13.1.1",
"@angular/upgrade": "^13.1.1",
"@angular-devkit/build-angular": "^14.2.7",
"@angular-devkit/core": "^14.2.7",
"@angular-devkit/schematics": "^14.2.7",
"@angular/cli": "^14.2.7",
"@angular/compiler-cli": "^14.2.8",
"@angular/platform-server": "^14.2.8",
"@angular/service-worker": "^14.2.8",
"@angular/upgrade": "^14.2.8",
"@schematics/angular": "^9.0.1",
"@stackblitz/sdk": "^1.3.0",
"@types/jasmine": "~2.8.8",
Expand All @@ -93,7 +93,7 @@
"less": "^3.9.0",
"less-plugin-clean-css": "^1.5.1",
"marked": "~2.0.0",
"ng-packagr": "13.1.2",
"ng-packagr": "14.2.2",
"ngx-color": "^4.0.0",
"ngx-infinite-scroll": "~7.1.0",
"node-prismjs": "^0.1.1",
Expand All @@ -116,7 +116,7 @@
"tsickle": "^0.39.1",
"tslib": "^2.3.0",
"tslint": "~6.1.3",
"typescript": "~4.5.4",
"typescript": "~4.7.4",
"yaml-front-matter": "^4.0.0",
"zone.js": "~0.11.4"
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"target": "es2020",
"typeRoots": [
"node_modules/@types"
],
Expand Down

0 comments on commit faa52d2

Please sign in to comment.