Skip to content

Commit

Permalink
Merge branch 'drivers' of https://github.com/jinhduong/eslinq into dr…
Browse files Browse the repository at this point in the history
…ivers
  • Loading branch information
jinhduong committed Apr 28, 2018
2 parents 9c53c26 + f827265 commit 2395c9b
Show file tree
Hide file tree
Showing 22 changed files with 126 additions and 24 deletions.
82 changes: 82 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"gulp": "^3.9.1",
"html-webpack-plugin": "^3.2.0",
"mocha": "^5.1.1",
"rollup-plugin-typescript": "^0.8.1",
"rollup-plugin-uglify": "^3.0.0",
"ts-node": "^6.0.0",
"typedoc": "^0.11.1",
"typescript": "^2.8.1",
Expand Down
1 change: 1 addition & 0 deletions release/linq-fns.ru.js

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

14 changes: 14 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import uglify from 'rollup-plugin-uglify';
import typescript from 'rollup-plugin-typescript';

export default {
input: 'dist/index.browser.js',
output: {
file: 'release/linq-fns.ru.js',
format: 'umd'
},
plugins: [
// typescript(),
uglify()
]
};
2 changes: 1 addition & 1 deletion src/browser/linq-fns.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { Queryable } from "../implements";
import { Queryable } from '../implements/index';

window['Queryable'] = Queryable
2 changes: 1 addition & 1 deletion src/demo/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Queryable } from '../implements';
import { Queryable } from '../implements/index';
import { precompile } from 'handlebars';
const cTable = require('console.table');

Expand Down
2 changes: 1 addition & 1 deletion src/implements/baseIterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { IIterator } from "../intefaces/iterator.interface";
export class BaseIterator<T> implements IIterator<T> {
nextSource: any[] | Promise<any>;

replaceBySyncSource?(syncSource: T[]) {
replaceBySyncSource(syncSource: T[]) {
this.nextSource = syncSource;
}

Expand Down
6 changes: 3 additions & 3 deletions src/implements/methods.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { IMethods, IIterator } from "../intefaces";
import { Utils } from '../utils';
import { IMethods, IIterator } from "../intefaces/index";
import { Utils } from '../utils/index';
import {
WhereClause, SelectClause, SelectManyClause, JoinClause, LeftJoinClause, OrderByClause,
OrderByDescendingClause, GroupByClause, GroupJoinClause, FirstClause, LastClause, CountClause,
SumClause, AvarageClause, MinClause, MaxClause, SingleClause, TakeClause, SkipWhileClause,
SkipClause, TakeWhileClause, AnyClause, ContainsClause, AllClause, DistinctClause, ConcatClause, UnionClause, ZipClause, ExceptClause, IntersectClasue, SequenceEqualClause, AggregateClause,

} from "../methods";
} from "../methods/index";
import { Queryable } from './queryable';

export class IteratorMethods<T> implements IMethods<T> {
Expand Down
3 changes: 3 additions & 0 deletions src/index.browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Queryable } from "./implements/queryable";

window['Queryable'] = Queryable;
2 changes: 1 addition & 1 deletion src/methods/aggregate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseIterator } from '../implements';
import { BaseIterator } from '../implements/index';
import { IIterator } from '../intefaces';

export class AggregateClause<T> extends BaseIterator<T> implements IIterator<T>{
Expand Down
2 changes: 1 addition & 1 deletion src/methods/concat.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseIterator } from '../implements';
import { BaseIterator } from '../implements/index';
import { IIterator } from '../intefaces';

export class ConcatClause<T> extends BaseIterator<T> implements IIterator<T>{
Expand Down
2 changes: 1 addition & 1 deletion src/methods/contains.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IIterator } from "../intefaces/iterator.interface";
import { BaseIterator } from "../implements/baseIterator";
import { Utils } from '../utils';
import { Utils } from '../utils/index';

export class ContainsClause<T> extends BaseIterator<T> implements IIterator<T> {

Expand Down
4 changes: 2 additions & 2 deletions src/methods/distinct.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IIterator } from '../intefaces';
import { BaseIterator } from '../implements';
import { Utils } from '../utils';
import { BaseIterator } from '../implements/index';
import { Utils } from '../utils/index';

export class DistinctClause<T> extends BaseIterator<T> implements IIterator<T> {
_comparer: (aEntity: T, bEntity: T) => boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/methods/except.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseIterator } from '../implements';
import { BaseIterator } from '../implements/index';
import { IIterator } from '../intefaces';
import { Utils } from '../utils';
import { Utils } from '../utils/index';
import { SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION } from 'constants';

export class ExceptClause<T> extends BaseIterator<T> implements IIterator<T>{
Expand Down
2 changes: 1 addition & 1 deletion src/methods/groupBy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IIterator } from "../intefaces/iterator.interface";
import { SelectClause } from "./select";
import { BaseIterator } from "../implements/baseIterator";
import { Utils } from '../utils';
import { Utils } from '../utils/index';

export class GroupByClause<T> extends BaseIterator<T> implements IIterator<T> {

Expand Down
4 changes: 2 additions & 2 deletions src/methods/intersect.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseIterator } from '../implements';
import { BaseIterator } from '../implements/index';
import { IIterator } from '../intefaces';
import { Utils } from '../utils';
import { Utils } from '../utils/index';
import { DistinctClause } from '.';

export class IntersectClasue<T> extends BaseIterator<T> implements IIterator<T>{
Expand Down
2 changes: 1 addition & 1 deletion src/methods/orderBy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export class OrderByClause<T> extends BaseIterator<T> implements IIterator<T> {
super();
this._iterator = func;
}
}
};
4 changes: 2 additions & 2 deletions src/methods/sequenceEqual.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseIterator } from '../implements';
import { BaseIterator } from '../implements/index';
import { IIterator } from '../intefaces';
import { Utils } from '../utils';
import { Utils } from '../utils/index';

export class SequenceEqualClause<T> extends BaseIterator<T> implements IIterator<T>{
nextSource;
Expand Down
2 changes: 1 addition & 1 deletion src/methods/single.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IIterator } from "../intefaces/iterator.interface";
import { WhereClause } from "./where";
import { BaseIterator } from "../implements/baseIterator";
import { Utils } from '../utils';
import { Utils } from '../utils/index';

export class SingleClause<T> extends BaseIterator<T> implements IIterator<T> {

Expand Down

0 comments on commit 2395c9b

Please sign in to comment.