Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 3ba4b68

Browse files
committed
fix: refactor export
1 parent 5e2991c commit 3ba4b68

File tree

9 files changed

+117
-88
lines changed

9 files changed

+117
-88
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-pipes",
3-
"version": "7.0.0",
3+
"version": "7.0.3",
44
"description": "Angular pipes library",
55
"scripts": {
66
"karma": "node_modules/.bin/karma start karma.conf.js",

src/aggregate/index.ts renamed to src/aggregate/aggregate.module.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,3 @@ import { SumPipe } from './sum.pipe';
2525
export class NgAggregatePipesModule {}
2626

2727

28-
export * from './group-by.pipe';
29-
export * from './max.pipe';
30-
export * from './mean.pipe';
31-
export * from './min.pipe';
32-
export * from './sum.pipe';

src/array/index.ts renamed to src/array/array.module.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,6 @@ import { UnionPipe } from './union.pipe';
2929
import { TakeWhilePipe } from './take-while.pipe';
3030
import { TakeUntilPipe } from './take-until.pipe';
3131

32-
export * from './empty.pipe';
33-
export * from './head.pipe';
34-
export * from './initial.pipe';
35-
export * from './last.pipe';
36-
export * from './join.pipe';
37-
export * from './tail.pipe';
38-
export * from './uniq.pipe';
39-
export * from './without.pipe';
40-
export * from './map.pipe';
41-
export * from './where.pipe';
42-
export * from './first-or-default.pipe';
43-
export * from './range.pipe';
44-
export * from './pluck.pipe';
45-
export * from './reverse.pipe';
46-
export * from './order-by.pipe';
47-
export * from './count.pipe';
48-
export * from './some.pipe';
49-
export * from './every.pipe';
50-
export * from './shuffle.pipe';
51-
export * from './take.pipe';
52-
export * from './drop.pipe';
53-
export * from './deep.pipe';
54-
export * from './chunk.pipe';
55-
export * from './flatten.pipe';
56-
export * from './intersection.pipe';
57-
export * from './union.pipe';
58-
export * from './take-while.pipe';
59-
export * from './take-until.pipe';
60-
6132

6233
@NgModule({
6334
declarations: [

src/boolean/index.ts renamed to src/boolean/boolean.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,3 @@ import {
6565
})
6666
export class NgBooleanPipesModule {}
6767

68-
export * from './conditions.pipe';
69-
export * from './types.pipe';

src/math/index.ts renamed to src/math/math.module.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ import { RandomPipe } from './random.pipe';
1010
import { SqrtPipe } from './sqrt.pipe';
1111
import { PowPipe } from './pow.pipe';
1212

13-
export * from './bytes.pipe';
14-
export * from './ceil.pipe';
15-
export * from './floor.pipe';
16-
export * from './round.pipe';
17-
export * from './degrees.pipe';
18-
export * from './radians.pipe';
19-
export * from './random.pipe';
20-
export * from './sqrt.pipe';
21-
export * from './pow.pipe';
22-
2313
@NgModule({
2414
declarations: [
2515
BytesPipe,

src/object/index.ts renamed to src/object/object.module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import { KeysPipe } from './keys.pipe';
33
import { ToArrayPipe } from './to-array.pipe';
44
import { DefaultsPipe } from './defaults.pipe';
55

6-
export * from './keys.pipe';
7-
export * from './to-array.pipe';
8-
export * from './defaults.pipe';
96

107
@NgModule({
118
declarations: [

src/pipes.module.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { NgModule } from '@angular/core';
22

3-
import { NgAggregatePipesModule } from './aggregate';
4-
import { NgArrayPipesModule } from './array';
5-
import { NgBooleanPipesModule } from './boolean';
6-
import { NgMathPipesModule } from './math';
7-
import { NgObjectPipesModule } from './object';
8-
import { NgStringPipesModule } from './string';
3+
import { NgAggregatePipesModule } from './aggregate/aggregate.module';
4+
import { NgArrayPipesModule } from './array/array.module';
5+
import { NgBooleanPipesModule } from './boolean/boolean.module';
6+
import { NgMathPipesModule } from './math/math.module';
7+
import { NgObjectPipesModule } from './object/object.module';
8+
import { NgStringPipesModule } from './string/string.module';
99

1010

1111
@NgModule({

src/public_api.ts

Lines changed: 110 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,110 @@
1-
export * from './aggregate';
2-
export * from './array';
3-
export * from './boolean';
4-
export * from './math';
5-
export * from './object';
6-
export * from './string';
7-
8-
export {NgPipesModule} from './pipes.module';
1+
export { NgAggregatePipesModule } from './aggregate/aggregate.module';
2+
export { NgArrayPipesModule } from './array/array.module';
3+
export { NgBooleanPipesModule } from './boolean/boolean.module';
4+
export { NgMathPipesModule } from './math/math.module';
5+
export { NgObjectPipesModule } from './object/object.module';
6+
export { NgStringPipesModule } from './string/string.module';
7+
8+
export { NgPipesModule } from './pipes.module';
9+
10+
11+
12+
export { GroupByPipe } from './aggregate/group-by.pipe';
13+
export { MaxPipe } from './aggregate/max.pipe';
14+
export { MeanPipe } from './aggregate/mean.pipe';
15+
export { MinPipe } from './aggregate/min.pipe';
16+
export { SumPipe } from './aggregate/sum.pipe';
17+
18+
export { EmptyPipe } from './array/empty.pipe';
19+
export { HeadPipe } from './array/head.pipe';
20+
export { InitialPipe } from './array/initial.pipe';
21+
export { LastPipe } from './array/last.pipe';
22+
export { JoinPipe } from './array/join.pipe';
23+
export { TailPipe } from './array/tail.pipe';
24+
export { UniqPipe } from './array/uniq.pipe';
25+
export { WithoutPipe } from './array/without.pipe';
26+
export { MapPipe } from './array/map.pipe';
27+
export { WherePipe } from './array/where.pipe';
28+
export { FirstOrDefaultPipe } from './array/first-or-default.pipe';
29+
export { RangePipe } from './array/range.pipe';
30+
export { PluckPipe } from './array/pluck.pipe';
31+
export { ReversePipe } from './array/reverse.pipe';
32+
export { OrderByPipe } from './array/order-by.pipe';
33+
export { CountPipe } from './array/count.pipe';
34+
export { SomePipe } from './array/some.pipe';
35+
export { EveryPipe } from './array/every.pipe';
36+
export { ShufflePipe } from './array/shuffle.pipe';
37+
export { TakePipe } from './array/take.pipe';
38+
export { DropPipe } from './array/drop.pipe';
39+
export { DeepPipe } from './array/deep.pipe';
40+
export { ChunkPipe } from './array/chunk.pipe';
41+
export { FlattenPipe } from './array/flatten.pipe';
42+
export { IntersectionPipe } from './array/intersection.pipe';
43+
export { UnionPipe } from './array/union.pipe';
44+
export { TakeWhilePipe } from './array/take-while.pipe';
45+
export { TakeUntilPipe } from './array/take-until.pipe';
46+
47+
48+
export {
49+
IsEqualPipe,
50+
IsGreaterOrEqualPipe,
51+
IsGreaterPipe,
52+
IsLessOrEqualPipe,
53+
IsIdenticalPipe,
54+
IsLessPipe,
55+
IsNotEqualPipe,
56+
IsNotIdenticalPipe
57+
} from './boolean/conditions.pipe';
58+
59+
export {
60+
IsArrayPipe,
61+
IsDefinedPipe,
62+
IsFunctionPipe,
63+
IsNilPipe,
64+
IsNullPipe,
65+
IsNumberPipe,
66+
IsObjectPipe,
67+
IsStringPipe,
68+
IsUndefinedPipe
69+
} from './boolean/types.pipe';
70+
71+
72+
export { BytesPipe } from './math/bytes.pipe';
73+
export { CeilPipe } from './math/ceil.pipe';
74+
export { FloorPipe } from './math/floor.pipe';
75+
export { RoundPipe } from './math/round.pipe';
76+
export { DegreesPipe } from './math/degrees.pipe';
77+
export { RadiansPipe } from './math/radians.pipe';
78+
export { RandomPipe } from './math/random.pipe';
79+
export { SqrtPipe } from './math/sqrt.pipe';
80+
export { PowPipe } from './math/pow.pipe';
81+
82+
export { KeysPipe } from './object/keys.pipe';
83+
export { ToArrayPipe } from './object/to-array.pipe';
84+
export { DefaultsPipe } from './object/defaults.pipe';
85+
86+
87+
export { LeftPadPipe } from './string/left-pad.pipe';
88+
export { MatchPipe } from './string/match.pipe';
89+
export { PadPipe } from './string/pad.pipe';
90+
export { ReplacePipe } from './string/replace.pipe';
91+
export { RightPadPipe } from './string/right-pad.pipe';
92+
export { SplitPipe } from './string/split.pipe';
93+
export { TestPipe } from './string/test.pipe';
94+
export { TrimPipe } from './string/trim.pipe';
95+
export { NewlinesPipe } from './string/newlines.pipe';
96+
export { CapitalizePipe } from './string/capitalize.pipe';
97+
export { UpperFirstPipe } from './string/upperfirst.pipe';
98+
export { TemplatePipe } from './string/template.pipe';
99+
export { EncodeURIPipe } from './string/encode-uri.pipe';
100+
export { EncodeURIComponentPipe } from './string/encode-uri-component.pipe';
101+
export { DecodeURIPipe } from './string/decode-uri.pipe';
102+
export { DecodeURIComponentPipe } from './string/decode-uri-component.pipe';
103+
export { TruncatePipe } from './string/truncate.pipe';
104+
export { RepeatPipe } from './string/repeat.pipe';
105+
export { SlugifyPipe } from './string/slugify.pipe';
106+
export { StripTagsPipe } from "./string/strip-tags.pipe";
107+
export { LatinizePipe } from "./string/latinize.pipe";
108+
export { WrapPipe } from "./string/wrap.pipe";
109+
export { WithPipe } from "./string/with.pipe";
110+
export { ReverseStrPipe } from "./string/reverse-str.pipe";

src/string/index.ts renamed to src/string/string.module.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,6 @@ import {WrapPipe} from "./wrap.pipe";
2525
import {WithPipe} from "./with.pipe";
2626
import {ReverseStrPipe} from "./reverse-str.pipe";
2727

28-
export * from './left-pad.pipe';
29-
export * from './match.pipe';
30-
export * from './pad.pipe';
31-
export * from './replace.pipe';
32-
export * from './right-pad.pipe';
33-
export * from './split.pipe';
34-
export * from './test.pipe';
35-
export * from './trim.pipe';
36-
export * from './newlines.pipe';
37-
export * from './capitalize.pipe';
38-
export * from './upperfirst.pipe';
39-
export * from './template.pipe';
40-
export * from './encode-uri.pipe';
41-
export * from './encode-uri-component.pipe';
42-
export * from './decode-uri.pipe';
43-
export * from './decode-uri-component.pipe';
44-
export * from './truncate.pipe';
45-
export * from './repeat.pipe';
46-
export * from './slugify.pipe';
47-
export * from './strip-tags.pipe';
48-
export * from './latinize.pipe';
49-
export * from './wrap.pipe';
50-
export * from './with.pipe';
51-
export * from './reverse-str.pipe';
5228

5329
@NgModule({
5430
declarations: [

0 commit comments

Comments
 (0)