Skip to content

Commit

Permalink
feat: support angular 14
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomo.ajhd committed Nov 8, 2022
1 parent 0a67edc commit efc2db2
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
1 change: 0 additions & 1 deletion angular.json
Expand Up @@ -119,7 +119,6 @@
}
}
},
"defaultProject": "ng-zorro-antd-mobile",
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
Expand Down
2 changes: 1 addition & 1 deletion components/package.json
@@ -1,6 +1,6 @@
{
"name": "ng-zorro-antd-mobile",
"version": "6.0.0",
"version": "7.0.0",
"description": "An enterprise-class mobile UI components based on Ant Design and Angular",
"schematics": "./schematics/collection.json",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion components/radio/radio-item-group.component.ts
Expand Up @@ -84,7 +84,7 @@ export class RadioItemGroupComponent implements AfterContentInit, OnDestroy, Con
}

ngOnDestroy() {
this.destroy$.next();
this.destroy$.next('');
this.destroy$.complete();
}

Expand Down
2 changes: 1 addition & 1 deletion docs/introduce.en-US.md
Expand Up @@ -133,7 +133,7 @@ This is the **Angular** implementation of **Ant Design Mobile** specification, s

## Angular Support

Now Supports Angular `^12.0.0`.
Now Supports Angular `^14.0.0`.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/introduce.zh-CN.md
Expand Up @@ -133,7 +133,7 @@ title: Ant Design Mobile of Angular <div class="github-btn"><a class="gh-btn" hr

## 支持 Angular 版本

目前支持 Angular `^12.0.0` 版本。
目前支持 Angular `^14.0.0` 版本。

## 安装

Expand Down
12 changes: 6 additions & 6 deletions package.json
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 Down Expand Up @@ -55,10 +55,10 @@
"@angular/platform-browser-dynamic": "^14.2.8",
"@angular/pwa": "^14.2.7",
"@angular/router": "^14.2.8",
"@ant-design/icons-angular": "^13.0.1",
"@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": "^14.2.7",
Expand Down Expand Up @@ -111,7 +111,7 @@
"rollup-plugin-replace": "~2.2.0",
"rollup-plugin-sourcemaps": "~0.4.2",
"rollup-plugin-uglify": "~6.0.0",
"rxjs": "~6.6.2",
"rxjs": "~7.5.7",
"ts-node": "~8.1.0",
"tsickle": "^0.39.1",
"tslib": "^2.3.0",
Expand Down
7 changes: 4 additions & 3 deletions scripts/site/_site/src/app/app.component.ts
Expand Up @@ -22,17 +22,18 @@ export class AppComponent implements OnInit, AfterViewInit {
docsearch = null;
kitchenUrl = window.location.origin + '/#/kitchen-sink?lang=zh-CN';
language = 'zh';
versionList = ['0.12.x', '1.0.6', '2.0.7', '3.0.3', '4.0.0', '5.0.1', '6.0.0'];
versionList = ['0.12.x', '1.0.6', '2.0.7', '3.0.3', '4.0.0', '5.0.1', '6.0.0', '7.0.0'];
versionMap = {
'0.12.x': '0.12.5',
'1.0.6': '2001.0.6',
'2.0.7': '2012.0.7',
'3.0.3': '2013.0.3',
'4.0.0': '2014.0.0',
'5.0.1': '2015.0.3',
'6.0.0': '2016.0.0'
'6.0.0': '2016.0.0',
'7.0.0': ''
};
currentVersion = '6.0.0';
currentVersion = '7.0.0';
isHomeURL = true;
isKitchenURL = false;
demoTitle = '';
Expand Down
24 changes: 12 additions & 12 deletions scripts/site/_site/src/app/share/nz-codebox/nz-codebox.component.ts
Expand Up @@ -340,19 +340,19 @@ export class AppModule { }
description: 'Created with <3 by the StackBlitz SDK!',
template: 'angular-cli',
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',
rxjs: '~6.6.2',
'@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',
rxjs: '~7.5.7',
'zone.js': '~0.11.4',
'ng-zorro-antd-mobile': '6.0.0'
'ng-zorro-antd-mobile': '7.0.0'
},
tags: ['stackblitz', 'sdk']
});
Expand Down

0 comments on commit efc2db2

Please sign in to comment.