Skip to content

Commit

Permalink
chore(angular): replaces core-js/es/reflect with more lightweight @ab…
Browse files Browse the repository at this point in the history
…raham/reflection
  • Loading branch information
stalniy committed Apr 5, 2019
1 parent 9d479d9 commit 597571c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
}],
"import/no-extraneous-dependencies": ["error", {
"devDependencies": [
"tools/**/*.js"
"tools/**/*.js",
"packages/*/spec/**/*.js"
]
}]
}
Expand Down
6 changes: 0 additions & 6 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"chai": "^4.1.0",
"chai-spies": "^1.0.0",
"codecov": "^3.0.0",
"core-js": "^2.6.4",
"eslint": "^5.0.0",
"eslint-config-airbnb-base": "^13.0.0",
"eslint-plugin-import": "^2.9.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/casl-angular/package-lock.json

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

1 change: 1 addition & 0 deletions packages/casl-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@casl/ability": "^2.0.0 || ^3.0.0"
},
"devDependencies": {
"@abraham/reflection": "^0.5.1",
"@angular/common": "^7.0.0",
"@angular/compiler": "^7.0.3",
"@angular/compiler-cli": "^7.0.3",
Expand Down
26 changes: 13 additions & 13 deletions packages/casl-angular/spec/spec_helper.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import 'core-js/es7/reflect'
import 'zone.js/dist/zone.js'
import 'zone.js/dist/proxy'
import 'zone.js/dist/sync-test'
import 'zone.js/dist/async-test'
import 'zone.js/dist/fake-async-test'
import 'jest-zone-patch'
import '@abraham/reflection';
import 'zone.js/dist/zone';
import 'zone.js/dist/proxy';
import 'zone.js/dist/sync-test';
import 'zone.js/dist/async-test';
import 'zone.js/dist/fake-async-test';
import 'jest-zone-patch';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing'
import { TestBed } from '@angular/core/testing'
import { Component } from '@angular/core'
} from '@angular/platform-browser-dynamic/testing';
import { TestBed } from '@angular/core/testing';
import { Component } from '@angular/core';

TestBed.initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
)
);

export class App {
static get annotations() {
Expand All @@ -25,12 +25,12 @@ export class App {
template: '{{ post | can: "read" }}',
inputs: ['post']
})
]
];
}
}

export class Post {
constructor(attrs) {
Object.assign(this, attrs)
Object.assign(this, attrs);
}
}

0 comments on commit 597571c

Please sign in to comment.