Skip to content

Commit c9b6fd7

Browse files
committed
chore(*): adding a build to the travis-ci
1 parent 10976e8 commit c9b6fd7

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ before_install:
1414
script:
1515
- npm run lint
1616
- npm run test:lib
17+
- npm run build
1718
- cat ./coverage/igniteui-angular-wrappers/lcov.info | coveralls
1819

1920
before_deploy:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"ng": "ng",
1111
"start": "ng serve",
1212
"lint": "ng lint",
13+
"build": "ng build --prod",
1314
"build:lib": "ng build igniteui-angular-wrappers",
1415
"test:lib": "ng test igniteui-angular-wrappers --watch=false --no-progress --code-coverage --browsers=ChromeHeadless",
1516
"test:lib:watch": "ng test igniteui-angular-wrappers --browsers=ChromeHeadless"

src/app/grid-api-methods/grid-api-methods.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class GridApiMethodsComponent {
9999

100100
if (!this.condCombo.selectedItems()) {
101101
const fElem = this.condCombo.itemsFromIndex(0);
102-
this.condCombo.select(fElem.element);
102+
this.condCombo.select(fElem['element']);
103103
}
104104
const condition = this.condCombo.value();
105105

@@ -130,7 +130,7 @@ export class GridApiMethodsComponent {
130130

131131
reCalcPageIndexes() {
132132
const indexes = [];
133-
for (let i = 0; i < Math.ceil(this.grid.widget().data('igGrid').dataSource.data().length / this.currPageSize); i++) {
133+
for (let i = 0; i < Math.ceil(this.grid.widget()['data']('igGrid').dataSource.data().length / this.currPageSize); i++) {
134134
indexes.push({ value: i + 1 });
135135
}
136136
this.pageIndexes = indexes;

src/app/grid-data-binding/grid-data-binding.component.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ export class GridDataBindingComponent {
5656
}
5757

5858
createNewProduct() {
59-
const newProduct = {};
60-
newProduct.ProductID = this.data.length + 1;
61-
newProduct.ProductName = null;
62-
newProduct.QuantityPerUnit = null;
63-
newProduct.UnitPrice = null;
59+
const newProduct = {
60+
ProductID: this.data.length + 1,
61+
ProductName: null,
62+
QuantityPerUnit: null,
63+
UnitPrice: null
64+
};
6465
return newProduct;
6566
}
6667

0 commit comments

Comments
 (0)