Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbc5177

Browse files
authored
refactor: move ngx-isr into rx-angular repo by also keeping the commit history
2 parents e0ac2e0 + eb77b9b commit fbc5177

File tree

103 files changed

+4153
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+4153
-198
lines changed

.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
12+
"allowCircularSelfDependency": false,
13+
"banTransitiveDependencies": true,
14+
"checkDynamicDependenciesExceptions": [],
15+
"checkNestedExternalImports": true,
1216
"enforceBuildableLibDependency": true,
1317
"allow": [],
1418
"depConstraints": [

apps/docs/static/img/isr-logo.png

70.7 KB
Loading

libs/cdk/.eslintrc.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,6 @@
99
"plugin:@angular-eslint/template/process-inline-templates"
1010
],
1111
"rules": {
12-
/**
13-
* @Notice: overwrite root enforce-module-boundaries to allow deep imports of secondary entry-points.
14-
*/
15-
"@nx/enforce-module-boundaries": [
16-
"error",
17-
{
18-
"enforceBuildableLibDependency": false,
19-
"allow": ["@rx-angular/cdk/**"],
20-
"depConstraints": [
21-
{
22-
"sourceTag": "cdk",
23-
"onlyDependOnLibsWithTags": ["type:test-util"]
24-
}
25-
]
26-
}
27-
],
2812
"@angular-eslint/directive-selector": [
2913
"error",
3014
{

libs/cdk/coalescing/spec/coalesceWith.spec.ts

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import {
33
asapScheduler,
44
concat,
55
defer,
6-
from, NEVER,
6+
from,
7+
NEVER,
78
Observable,
8-
of, scheduled,
9-
timer
9+
of,
10+
scheduled,
11+
timer,
1012
} from 'rxjs';
11-
import { jestMatcher, mockConsole } from '@test-helpers';
13+
import { jestMatcher, mockConsole } from '@test-helpers/rx-angular';
1214
import { TestScheduler } from 'rxjs/testing';
1315
import { coalesceWith } from '../src/lib/coalesceWith';
1416

@@ -287,23 +289,17 @@ describe('coalesce operator additional logic', () => {
287289
}
288290
});
289291

290-
it('should emit once per micro task', done => {
292+
it('should emit once per micro task', (done) => {
291293
const scope = {};
292294
const arrNum = [1, 2, 3, 4];
293295
const arrAlph = ['a', 'b', 'c', 'd'];
294296
const num$ = concat(from(arrNum), NEVER).pipe(
295297
share(),
296-
coalesceWith(
297-
scheduled([1], asapScheduler),
298-
scope
299-
)
298+
coalesceWith(scheduled([1], asapScheduler), scope)
300299
);
301300
const alph$ = concat(from(arrAlph), NEVER).pipe(
302301
share(),
303-
coalesceWith(
304-
scheduled([1], asapScheduler),
305-
scope
306-
)
302+
coalesceWith(scheduled([1], asapScheduler), scope)
307303
);
308304
let numValue;
309305
num$.subscribe({
@@ -316,7 +312,7 @@ describe('coalesce operator additional logic', () => {
316312
},
317313
complete: () => {
318314
throw new Error('should not be called');
319-
}
315+
},
320316
});
321317
alph$.subscribe({
322318
next: (x: string) => {
@@ -329,7 +325,7 @@ describe('coalesce operator additional logic', () => {
329325
},
330326
complete: () => {
331327
throw new Error('should not be called');
332-
}
328+
},
333329
});
334330
});
335331

libs/cdk/coalescing/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export * from './lib/index';
1+
export { coalesceWith } from './lib/coalesceWith';
2+
export { CoalescingManager, coalescingManager } from './lib/coalescingManager';
3+
export { RxCoalescingOptions, coalescingObj } from './lib/model';

libs/cdk/coalescing/src/lib/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

libs/cdk/coercing/spec/coerce-all-factory.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from 'rxjs';
1212
import { TestScheduler } from 'rxjs/testing';
1313

14-
import { jestMatcher } from '@test-helpers';
14+
import { jestMatcher } from '@test-helpers/rx-angular';
1515

1616
import { coerceAllFactory } from '../src/lib/coerce-all-factory';
1717

libs/cdk/coercing/spec/coerceDistinctObservableWith.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from 'rxjs';
99
import { TestScheduler } from 'rxjs/testing';
1010

11-
import { jestMatcher } from '@test-helpers';
11+
import { jestMatcher } from '@test-helpers/rx-angular';
1212

1313
import { coerceDistinctWith } from '../src/lib/coerceDistinctObservableWith';
1414

libs/cdk/coercing/spec/coerceObservable.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { coerceObservable } from '@rx-angular/cdk/coercing';
2-
import { jestMatcher } from '@test-helpers';
2+
import { jestMatcher } from '@test-helpers/rx-angular';
33
import { of } from 'rxjs';
44
import { TestScheduler } from 'rxjs/testing';
55

libs/cdk/coercing/spec/coerceObservableWith.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { coerceObservableWith } from '@rx-angular/cdk/coercing';
2-
import { jestMatcher, mockConsole } from '@test-helpers';
2+
import { jestMatcher, mockConsole } from '@test-helpers/rx-angular';
33
import { of } from 'rxjs';
44
import { TestScheduler } from 'rxjs/testing';
55

libs/cdk/internals/core/src/lib/accumulateObservables.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TestScheduler } from 'rxjs/testing';
2-
import { jestMatcher } from '@test-helpers';
2+
import { jestMatcher } from '@test-helpers/rx-angular';
33
import { coalesceWith } from '@rx-angular/cdk/coalescing';
44
import { from, Observable, of } from 'rxjs';
55
import { accumulateObservables } from './accumulateObservables';

libs/cdk/render-strategies/spec/onStrategy.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TestScheduler } from 'rxjs/testing';
2-
import { jestMatcher } from '@test-helpers';
2+
import { jestMatcher } from '@test-helpers/rx-angular';
33
import {
44
onStrategy,
55
RX_NATIVE_STRATEGIES,

libs/cdk/template/spec/list-manager.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
RxListViewContext,
2323
} from '@rx-angular/cdk/template';
2424
import { RxStrategyProvider } from '@rx-angular/cdk/render-strategies';
25-
import { mockConsole } from '@test-helpers';
25+
import { mockConsole } from '@test-helpers/rx-angular';
2626
import { ReplaySubject } from 'rxjs';
2727

2828
@Component({

libs/cdk/template/spec/template-manager.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
33
import { RxNotificationKind } from '@rx-angular/cdk/notifications';
44
import { RX_RENDER_STRATEGIES_CONFIG } from '@rx-angular/cdk/render-strategies';
55
import { RxTemplateManager } from '@rx-angular/cdk/template';
6-
import { mockConsole } from '@test-helpers';
6+
import { mockConsole } from '@test-helpers/rx-angular';
77
import { of, ReplaySubject, throwError } from 'rxjs';
88
import { tap } from 'rxjs/operators';
99
import {

libs/cdk/transformations/spec/object/deleteProp.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { deleteProp } from '@rx-angular/cdk/transformations';
2-
import { initialPrimitiveState, PrimitiveState } from '@test-helpers';
2+
import {
3+
initialPrimitiveState,
4+
PrimitiveState,
5+
} from '@test-helpers/rx-angular';
36

47
let primitiveState: PrimitiveState;
58

libs/cdk/transformations/spec/object/dictionaryToArray.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { dictionaryToArray } from '@rx-angular/cdk/transformations';
2-
import { initialPrimitiveState } from '@test-helpers';
2+
import { initialPrimitiveState } from '@test-helpers/rx-angular';
33

44
interface Creature {
55
id: number;

libs/cdk/transformations/spec/object/patch.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
initialPrimitiveState,
44
NestedState,
55
PrimitiveState,
6-
} from '@test-helpers';
6+
} from '@test-helpers/rx-angular';
77
import { patch } from '@rx-angular/cdk/transformations';
88

99
let primitiveState: PrimitiveState;

libs/cdk/transformations/spec/object/setProp.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { setProp } from '@rx-angular/cdk/transformations';
2-
import { initialNestedState, initialPrimitiveState, NestedState, PrimitiveState } from '@test-helpers';
2+
import {
3+
initialNestedState,
4+
initialPrimitiveState,
5+
NestedState,
6+
PrimitiveState,
7+
} from '@test-helpers/rx-angular';
38

49
let primitiveState: PrimitiveState;
510
let nestedState: NestedState;

libs/cdk/transformations/spec/object/slice.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { initialPrimitiveState, PrimitiveState } from '@test-helpers';
1+
import {
2+
initialPrimitiveState,
3+
PrimitiveState,
4+
} from '@test-helpers/rx-angular';
25
import { slice } from '@rx-angular/cdk/transformations';
36

47
let primitiveState: PrimitiveState;

libs/cdk/transformations/spec/object/toggle.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { toggle } from '@rx-angular/cdk/transformations';
2-
import { initialPrimitiveState, PrimitiveState } from '@test-helpers';
2+
import {
3+
initialPrimitiveState,
4+
PrimitiveState,
5+
} from '@test-helpers/rx-angular';
36

47
let primitiveState: PrimitiveState;
58

libs/eslint-plugin/src/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
import { configs } from './lib/configs';
2-
import { rules } from './lib/rules';
3-
4-
export = {
5-
rules,
6-
configs,
7-
};
1+
export { configs } from './lib/configs';
2+
export { rules } from './lib/rules';

libs/isr/.eslintrc.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"extends": "../../.eslintrc.json",
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"extends": [
8+
"plugin:@nx/angular",
9+
"plugin:@angular-eslint/template/process-inline-templates"
10+
],
11+
"rules": {
12+
"@angular-eslint/directive-selector": [
13+
"error",
14+
{
15+
"type": "attribute",
16+
"prefix": "rx",
17+
"style": "camelCase"
18+
}
19+
],
20+
"@angular-eslint/component-selector": [
21+
"error",
22+
{
23+
"type": "element",
24+
"prefix": "rx",
25+
"style": "kebab-case"
26+
}
27+
],
28+
"@typescript-eslint/no-non-null-assertion": "warn"
29+
}
30+
},
31+
{
32+
"files": ["*.html"],
33+
"extends": ["plugin:@nx/angular-template"],
34+
"rules": {
35+
"@angular-eslint/template/eqeqeq": "warn"
36+
}
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)