Skip to content

Commit

Permalink
fix: support of ivy flag
Browse files Browse the repository at this point in the history
arrow functions should be normal functions

closes #9
  • Loading branch information
satanTime committed Jun 4, 2020
1 parent 3e4a2cb commit 79a8b8e
Show file tree
Hide file tree
Showing 119 changed files with 16,199 additions and 48 deletions.
33 changes: 24 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
- restore_cache:
key: a8-cache-{{ checksum "e2e/angular8/package-lock.json" }}
- restore_cache:
key: a9-cache-{{ checksum "e2e/angular9/package-lock.json" }}
key: a9-cache-ivy-false-{{ checksum "e2e/angular9-ivy-false/package-lock.json" }}
- restore_cache:
key: a9-cache-ivy-true-{{ checksum "e2e/angular9-ivy-true/package-lock.json" }}
- run:
name: NPM Install for E2E
command: npm run i:a
Expand All @@ -54,9 +56,13 @@ jobs:
paths:
- ./e2e/angular8/node_modules
- save_cache:
key: a9-cache-{{ checksum "e2e/angular9/package-lock.json" }}
key: a9-cache-ivy-false-{{ checksum "e2e/angular9-ivy-false/package-lock.json" }}
paths:
- ./e2e/angular9-ivy-false/node_modules
- save_cache:
key: a9-cache-ivy-true-{{ checksum "e2e/angular9-ivy-true/package-lock.json" }}
paths:
- ./e2e/angular9/node_modules
- ./e2e/angular9-ivy-true/node_modules
- run:
name: Spreading Build
command: npm run build && npm run s:a && npm run s:test
Expand All @@ -70,8 +76,11 @@ jobs:
name: Angular 8 UT
command: npm run test:a8
- run:
name: Angular 9 UT
command: npm run test:a9
name: Angular 9 Ivy false UT
command: npm run test:a9t
- run:
name: Angular 9 Ivy true UT
command: npm run test:a9t
- run:
name: Angular 6 E2E
command: npm run e2e:a6
Expand All @@ -82,8 +91,11 @@ jobs:
name: Angular 8 E2E
command: npm run e2e:a8
- run:
name: Angular 9 E2E
command: npm run e2e:a9
name: Angular 9 Ivy false E2E
command: npm run e2e:a9f
- run:
name: Angular 9 Ivy true E2E
command: npm run e2e:a9t
- run:
name: Angular 6 Build
command: npm run b:a6
Expand All @@ -94,5 +106,8 @@ jobs:
name: Angular 8 Build
command: npm run b:a8
- run:
name: Angular 9 Build
command: npm run b:a9
name: Angular 9 Ivy false Build
command: npm run b:a9f
- run:
name: Angular 9 Ivy true Build
command: npm run b:a9t
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.editorconfig
.gitignore
.gitkeep
.prettierignore
LICENSE
README.md
browserslist
favicon.ico
package-lock.json

node_modules
14 changes: 13 additions & 1 deletion e2e/angular6/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@ import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {EffectsModule} from '@ngrx/effects';
import {StoreModule} from '@ngrx/store';
import {ngrxEntityRelationshipReducer} from 'ngrx-entity-relationship';

import {AppComponent} from './app.component';
import {EntityModule} from './entity/entity.module';
import {EntityService} from './entity/store/entity.service';

@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, HttpClientModule, StoreModule.forRoot({}), EffectsModule.forRoot([]), EntityModule],
imports: [
BrowserModule,
HttpClientModule,
StoreModule.forRoot(
{},
{
metaReducers: [ngrxEntityRelationshipReducer],
},
),
EffectsModule.forRoot([]),
EntityModule,
],
bootstrap: [AppComponent],
providers: [EntityService],
})
Expand Down
14 changes: 13 additions & 1 deletion e2e/angular7/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@ import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {EffectsModule} from '@ngrx/effects';
import {StoreModule} from '@ngrx/store';
import {ngrxEntityRelationshipReducer} from 'ngrx-entity-relationship';

import {AppComponent} from './app.component';
import {EntityModule} from './entity/entity.module';
import {EntityService} from './entity/store/entity.service';

@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, HttpClientModule, StoreModule.forRoot({}), EffectsModule.forRoot([]), EntityModule],
imports: [
BrowserModule,
HttpClientModule,
StoreModule.forRoot(
{},
{
metaReducers: [ngrxEntityRelationshipReducer],
},
),
EffectsModule.forRoot([]),
EntityModule,
],
bootstrap: [AppComponent],
providers: [EntityService],
})
Expand Down
9 changes: 7 additions & 2 deletions e2e/angular8/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {EffectsModule} from '@ngrx/effects';
import {StoreModule} from '@ngrx/store';
import {ngrxEntityRelationshipReducer} from 'ngrx-entity-relationship';

import {AppComponent} from './app.component';
import {DataModule} from './data/data.module';
Expand All @@ -14,9 +15,13 @@ import {EntityService} from './entity/store/entity.service';
imports: [
BrowserModule,
HttpClientModule,
StoreModule.forRoot({}),
StoreModule.forRoot(
{},
{
metaReducers: [ngrxEntityRelationshipReducer],
},
),
EffectsModule.forRoot([]),

EntityModule,
DataModule,
],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions e2e/angular9-ivy-false/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "angular9-ivy-false",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e --webdriver-update=false",
"postinstall": "webdriver-manager update --versions.chrome 83.0.4103.39"
},
"private": true,
"peerDependencies": {
"ngrx-entity-relationship": "*"
},
"dependencies": {
"@angular/animations": "~9.0.7",
"@angular/common": "~9.0.7",
"@angular/compiler": "~9.0.7",
"@angular/core": "~9.0.7",
"@angular/forms": "~9.0.7",
"@angular/platform-browser": "~9.0.7",
"@angular/platform-browser-dynamic": "~9.0.7",
"@angular/router": "~9.0.7",
"@ngrx/data": "^9.1.0",
"@ngrx/effects": "^9.1.0",
"@ngrx/entity": "^9.1.0",
"@ngrx/store": "^9.1.0",
"classlist.js": "^1.1.20150312",
"rxjs": "^6.5.5",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.7",
"@angular/cli": "~9.0.7",
"@angular/compiler-cli": "~9.0.7",
"@angular/language-service": "~9.0.7",
"@types/jasmine": "^3.5.10",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.12.37",
"codelyzer": "^5.2.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.5.3",
"protractor": "^5.4.4",
"puppeteer": "~3.2.0",
"ts-node": "~8.3.0",
"tslint": "~5.18.0",
"typescript": "~3.7.5"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {EffectsModule} from '@ngrx/effects';
import {StoreModule} from '@ngrx/store';
import {ngrxEntityRelationshipReducer} from 'ngrx-entity-relationship';

import {AppComponent} from './app.component';
import {DataModule} from './data/data.module';
Expand All @@ -14,7 +15,12 @@ import {EntityService} from './entity/store/entity.service';
imports: [
BrowserModule,
HttpClientModule,
StoreModule.forRoot({}),
StoreModule.forRoot(
{},
{
metaReducers: [ngrxEntityRelationshipReducer],
},
),
EffectsModule.forRoot([]),

EntityModule,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions e2e/angular9-ivy-false/src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Angular9 Ivy False</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<app-root></app-root>
</body>
</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions e2e/angular9-ivy-false/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"typeRoots": ["node_modules/@types"],
"lib": ["es2018", "dom"]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableIvy": false
}
}
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions e2e/angular9-ivy-true/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
tab_width = 4
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120
2 changes: 2 additions & 0 deletions e2e/angular9-ivy-true/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/src/test
21 changes: 21 additions & 0 deletions e2e/angular9-ivy-true/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Michael G.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit 79a8b8e

Please sign in to comment.