Skip to content

Commit

Permalink
chore(all): adjust projects ci, cleanup, fix npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon committed Jan 13, 2019
1 parent a5cb084 commit fb67af5
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 58 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
jobs:
test:
working_directory: ~/repo
docker:
- image: circleci/node:9-jessie-browsers
steps:
- checkout
- run: npm install
- run:
name: Tests
command: 'npm run test'

workflows:
version: 2
build_and_test:
jobs:
- test:
filters:
branches:
only: master
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

6 changes: 3 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.idea
.vscode
.rollupcache
.circleci
jspm_packages
bower_components
node_modules
src
dist
sample
test
.idea
test
24 changes: 0 additions & 24 deletions circle.yml

This file was deleted.

1 change: 0 additions & 1 deletion gulpfile.js

This file was deleted.

24 changes: 0 additions & 24 deletions src/template-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export class TemplateStrategyLocator {

export class TableBodyStrategy implements ITemplateStrategy {


getScrollContainer(element: Element): HTMLElement {
return this.getTable(element).parentNode as HTMLElement;
}
Expand Down Expand Up @@ -83,22 +82,6 @@ export class TableBodyStrategy implements ITemplateStrategy {
return 0;
}

private getFirstTbody(tableElement: HTMLTableElement): HTMLTableSectionElement {
let child = tableElement.firstElementChild;
while (child !== null && child.tagName !== 'TBODY') {
child = child.nextElementSibling;
}
return child.tagName === 'TBODY' ? child as HTMLTableSectionElement : null;
}

private _getLastTbody(tableElement: HTMLTableElement): HTMLTableSectionElement {
let child = tableElement.lastElementChild;
while (child !== null && child.tagName !== 'TBODY') {
child = child.previousElementSibling;
}
return child.tagName === 'TBODY' ? child as HTMLTableSectionElement : null;
}

/**
* `element` is actually a comment, acting as anchor for `virtual-repeat` attribute
* `element` will be placed next to a tbody
Expand Down Expand Up @@ -157,13 +140,6 @@ export class TableRowStrategy implements ITemplateStrategy {
getTopBufferDistance(topBuffer: Element): number {
return 0;
}

/**
* `element` is actually a comment, acting as anchor for `virtual-repeat` attribute
*/
private getTable(element: Element): HTMLTableElement {
return element.parentNode.parentNode as HTMLTableElement;
}
}

export class DefaultTemplateStrategy implements ITemplateStrategy {
Expand Down

0 comments on commit fb67af5

Please sign in to comment.