mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 01:52:19 +08:00
feat(angular): angular 9 support (#19515)
* init ivy support * chore(): angular prerelease * chore: update * updates * angular 8 deps * chore(angular): update sync script * updates * chore(): remove console log * chore(): updates * chore(): update release script * fix(): remove comments * fix(): remove test version * fix(): failing angular test * fix(): failing angular tests * fix(): update ci steps * fix(): fix sync script * chore(): refactor angular proxies * chore(): updates * chore(): updates * chore(): lint * chore(): updates * chore(ssr): check for window * chore(): fix virtual scroll angular tests * chore(): lint * chore(): add server to link * chore(scripts): update release script * chore(): bump version check * style(scripts): spacing
This commit is contained in:
@ -20,38 +20,40 @@
|
||||
"url": "https://github.com/ionic-team/ionic/issues"
|
||||
},
|
||||
"homepage": "https://ionicframework.com/",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "ngc -p ./tsconfig.json",
|
||||
"test": "echo 'angular no tests yet'",
|
||||
"build": "ng-packagr -p package.json",
|
||||
"build.prod": "npm run clean && npm run build",
|
||||
"clean": "rm -rf ./dist"
|
||||
"clean": "rm -rf ./dist",
|
||||
"lint": "npm run lint.ts",
|
||||
"lint.ts": "tslint --project .",
|
||||
"lint.fix": "tslint --project . --fix"
|
||||
},
|
||||
"ngPackage": {
|
||||
"lib": {
|
||||
"entryFile": "src/public_api.ts"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@angular-devkit/core": "^8.0.0",
|
||||
"@angular/common": "^8.0.0",
|
||||
"@angular/core": "^8.0.0",
|
||||
"@angular/platform-server": "^8.0.0",
|
||||
"@ionic/core": "*",
|
||||
"@angular/core": ">=8.2.7",
|
||||
"@angular/platform-server": ">=8.2.7",
|
||||
"@ionic/angular": "*",
|
||||
"rxjs": ">=6.2.0",
|
||||
"zone.js": ">=0.8.26"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/core": "^8.0.0",
|
||||
"@angular/animations": "^8.0.0",
|
||||
"@angular/common": "^8.0.0",
|
||||
"@angular/compiler": "^8.0.0",
|
||||
"@angular/compiler-cli": "^8.0.0",
|
||||
"@angular/core": "^8.0.0",
|
||||
"@angular/platform-browser": "^8.0.0",
|
||||
"@angular/platform-server": "^8.0.0",
|
||||
"@angular/router": "^8.0.0",
|
||||
"rxjs": "^6.4.0",
|
||||
"tsickle": "^0.34.0",
|
||||
"typescript": "~3.4.3",
|
||||
"zone.js": "~0.9.1"
|
||||
"@angular/animations": "8.2.13",
|
||||
"@angular/common": "8.2.13",
|
||||
"@angular/compiler": "8.2.13",
|
||||
"@angular/compiler-cli": "8.2.13",
|
||||
"@angular/core": "8.2.13",
|
||||
"@angular/platform-browser": "8.2.13",
|
||||
"@angular/platform-server": "8.2.13",
|
||||
"@ionic/core": "*",
|
||||
"ng-packagr": "5.7.1",
|
||||
"tslint": "^5.12.1",
|
||||
"tslint-ionic-rules": "0.0.21",
|
||||
"typescript": "3.4.5",
|
||||
"typescript-tslint-plugin": "0.5.4"
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ import { hydrateDocument } from '@ionic/core/hydrate';
|
||||
export class IonicServerModule {}
|
||||
|
||||
// @dynamic
|
||||
// tslint:disable-next-line: only-arrow-functions
|
||||
export function hydrateIonicComponents(doc: any, appId: any) {
|
||||
return () => {
|
||||
return hydrateDocument(doc, {
|
||||
|
1
packages/angular-server/src/public_api.ts
Normal file
1
packages/angular-server/src/public_api.ts
Normal file
@ -0,0 +1 @@
|
||||
export { IonicServerModule } from './ionic-server-module';
|
@ -1,9 +1,12 @@
|
||||
{
|
||||
"extends": "../../tsconfig",
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"module": "commonjs",
|
||||
"rootDir": "src",
|
||||
"outDir": "dist"
|
||||
"outDir": "dist",
|
||||
"plugins": [
|
||||
{ "name": "typescript-tslint-plugin" }
|
||||
]
|
||||
},
|
||||
"files": [
|
||||
"src/ionic-server-module.ts"
|
||||
@ -16,4 +19,4 @@
|
||||
"skipTemplateCodegen": true,
|
||||
"fullTemplateTypeCheck": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
24
packages/angular-server/tslint.json
Normal file
24
packages/angular-server/tslint.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"extends": ["tslint-ionic-rules/strict"],
|
||||
"linterOptions": {
|
||||
"exclude": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx"
|
||||
]
|
||||
},
|
||||
"rules": {
|
||||
"no-conditional-assignment": false,
|
||||
"no-non-null-assertion": false,
|
||||
"no-unnecessary-type-assertion": false,
|
||||
"no-import-side-effect": false,
|
||||
"trailing-comma": false,
|
||||
"no-null-keyword": false,
|
||||
"no-console": false,
|
||||
"no-unbound-method": true,
|
||||
"no-floating-promises": false,
|
||||
"no-invalid-template-strings": true,
|
||||
"ban-export-const-enum": true,
|
||||
"only-arrow-functions": true,
|
||||
"prefer-for-of": false
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user