Commit f1276774 by Torkel Ödegaard

typescript: updated tslint and fixed new warnings

parent 98266bd9
...@@ -76,8 +76,8 @@ ...@@ -76,8 +76,8 @@
"systemjs-builder": "^0.15.34", "systemjs-builder": "^0.15.34",
"tether": "^1.4.0", "tether": "^1.4.0",
"tether-drop": "https://github.com/torkelo/drop", "tether-drop": "https://github.com/torkelo/drop",
"tslint": "^4.5.1", "tslint": "^5.1.0",
"typescript": "^2.1.4", "typescript": "^2.2.2",
"virtual-scroll": "^1.1.1" "virtual-scroll": "^1.1.1"
} }
} }
...@@ -117,7 +117,7 @@ export class SearchCtrl { ...@@ -117,7 +117,7 @@ export class SearchCtrl {
queryHasNoFilters() { queryHasNoFilters() {
var query = this.query; var query = this.query;
return query.query === '' && query.starred === false && query.tag.length === 0; return query.query === '' && query.starred === false && query.tag.length === 0;
}; }
filterByTag(tag, evt) { filterByTag(tag, evt) {
this.query.tag.push(tag); this.query.tag.push(tag);
...@@ -127,7 +127,7 @@ export class SearchCtrl { ...@@ -127,7 +127,7 @@ export class SearchCtrl {
evt.stopPropagation(); evt.stopPropagation();
evt.preventDefault(); evt.preventDefault();
} }
}; }
removeTag(tag, evt) { removeTag(tag, evt) {
this.query.tag = _.without(this.query.tag, tag); this.query.tag = _.without(this.query.tag, tag);
...@@ -135,7 +135,7 @@ export class SearchCtrl { ...@@ -135,7 +135,7 @@ export class SearchCtrl {
this.giveSearchFocus = this.giveSearchFocus + 1; this.giveSearchFocus = this.giveSearchFocus + 1;
evt.stopPropagation(); evt.stopPropagation();
evt.preventDefault(); evt.preventDefault();
}; }
getTags() { getTags() {
return this.backendSrv.get('/api/dashboards/tags').then((results) => { return this.backendSrv.get('/api/dashboards/tags').then((results) => {
...@@ -146,19 +146,19 @@ export class SearchCtrl { ...@@ -146,19 +146,19 @@ export class SearchCtrl {
this.search(); this.search();
} }
}); });
}; }
showStarred() { showStarred() {
this.query.starred = !this.query.starred; this.query.starred = !this.query.starred;
this.giveSearchFocus = this.giveSearchFocus + 1; this.giveSearchFocus = this.giveSearchFocus + 1;
this.search(); this.search();
}; }
search() { search() {
this.showImport = false; this.showImport = false;
this.selectedIndex = 0; this.selectedIndex = 0;
this.searchDashboards(); this.searchDashboards();
}; }
} }
......
...@@ -44,7 +44,7 @@ export class SignUpCtrl { ...@@ -44,7 +44,7 @@ export class SignUpCtrl {
window.location.href = config.appSubUrl + '/'; window.location.href = config.appSubUrl + '/';
} }
}); });
}; }
} }
coreModule.controller('SignUpCtrl', SignUpCtrl); coreModule.controller('SignUpCtrl', SignUpCtrl);
......
...@@ -75,7 +75,7 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $ ...@@ -75,7 +75,7 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
if (!PanelCtrl || PanelCtrl.registered) { if (!PanelCtrl || PanelCtrl.registered) {
return componentInfo; return componentInfo;
}; }
if (PanelCtrl.templatePromise) { if (PanelCtrl.templatePromise) {
return PanelCtrl.templatePromise.then(res => { return PanelCtrl.templatePromise.then(res => {
......
...@@ -23,7 +23,7 @@ export class BackendSrv { ...@@ -23,7 +23,7 @@ export class BackendSrv {
post(url, data) { post(url, data) {
return this.request({ method: 'POST', url: url, data: data }); return this.request({ method: 'POST', url: url, data: data });
}; }
patch(url, data) { patch(url, data) {
return this.request({ method: 'PATCH', url: url, data: data }); return this.request({ method: 'PATCH', url: url, data: data });
...@@ -98,7 +98,7 @@ export class BackendSrv { ...@@ -98,7 +98,7 @@ export class BackendSrv {
this.$timeout(this.requestErrorHandler.bind(this, err), 50); this.$timeout(this.requestErrorHandler.bind(this, err), 50);
throw err; throw err;
}); });
}; }
addCanceler(requestId, canceler) { addCanceler(requestId, canceler) {
if (requestId in this.inFlightRequests) { if (requestId in this.inFlightRequests) {
...@@ -186,7 +186,7 @@ export class BackendSrv { ...@@ -186,7 +186,7 @@ export class BackendSrv {
this.inFlightRequests[options.requestId].shift(); this.inFlightRequests[options.requestId].shift();
} }
}); });
}; }
loginPing() { loginPing() {
return this.request({url: '/api/login/ping', method: 'GET', retry: 1 }); return this.request({url: '/api/login/ping', method: 'GET', retry: 1 });
......
...@@ -92,7 +92,7 @@ export default class TimeSeries { ...@@ -92,7 +92,7 @@ export default class TimeSeries {
this.yaxis = override.yaxis; this.yaxis = override.yaxis;
} }
} }
}; }
getFlotPairs(fillStyle) { getFlotPairs(fillStyle) {
var result = []; var result = [];
......
...@@ -12,7 +12,7 @@ export function exportSeriesListToCsv(seriesList) { ...@@ -12,7 +12,7 @@ export function exportSeriesListToCsv(seriesList) {
}); });
}); });
saveSaveBlob(text, 'grafana_data_export.csv'); saveSaveBlob(text, 'grafana_data_export.csv');
}; }
export function exportSeriesListToCsvColumns(seriesList) { export function exportSeriesListToCsvColumns(seriesList) {
var text = 'sep=;\nTime;'; var text = 'sep=;\nTime;';
...@@ -47,7 +47,7 @@ export function exportSeriesListToCsvColumns(seriesList) { ...@@ -47,7 +47,7 @@ export function exportSeriesListToCsvColumns(seriesList) {
text += '\n'; text += '\n';
} }
saveSaveBlob(text, 'grafana_data_export.csv'); saveSaveBlob(text, 'grafana_data_export.csv');
}; }
export function exportTableDataToCsv(table) { export function exportTableDataToCsv(table) {
var text = 'sep=;\n'; var text = 'sep=;\n';
...@@ -64,9 +64,9 @@ export function exportTableDataToCsv(table) { ...@@ -64,9 +64,9 @@ export function exportTableDataToCsv(table) {
text += '\n'; text += '\n';
}); });
saveSaveBlob(text, 'grafana_data_export.csv'); saveSaveBlob(text, 'grafana_data_export.csv');
}; }
export function saveSaveBlob(payload, fname) { export function saveSaveBlob(payload, fname) {
var blob = new Blob([payload], { type: "text/csv;charset=utf-8" }); var blob = new Blob([payload], { type: "text/csv;charset=utf-8" });
window.saveAs(blob, fname); window.saveAs(blob, fname);
}; }
...@@ -69,7 +69,7 @@ export class AnnotationsEditorCtrl { ...@@ -69,7 +69,7 @@ export class AnnotationsEditorCtrl {
this.reset(); this.reset();
this.mode = 'list'; this.mode = 'list';
this.$scope.broadcastRefresh(); this.$scope.broadcastRefresh();
}; }
add() { add() {
this.annotations.push(this.currentAnnotation); this.annotations.push(this.currentAnnotation);
...@@ -77,7 +77,7 @@ export class AnnotationsEditorCtrl { ...@@ -77,7 +77,7 @@ export class AnnotationsEditorCtrl {
this.mode = 'list'; this.mode = 'list';
this.$scope.broadcastRefresh(); this.$scope.broadcastRefresh();
this.$scope.dashboard.updateSubmenuVisibility(); this.$scope.dashboard.updateSubmenuVisibility();
}; }
removeAnnotation(annotation) { removeAnnotation(annotation) {
var index = _.indexOf(this.annotations, annotation); var index = _.indexOf(this.annotations, annotation);
......
...@@ -216,7 +216,6 @@ coreModule.directive('panelDropZone', function($timeout) { ...@@ -216,7 +216,6 @@ coreModule.directive('panelDropZone', function($timeout) {
} }
if (indrag === true) { if (indrag === true) {
var dropZoneSpan = 12 - row.span;
if (dropZoneSpan > 1) { if (dropZoneSpan > 1) {
return showPanel(dropZoneSpan, 'Drop Here'); return showPanel(dropZoneSpan, 'Drop Here');
} }
......
...@@ -60,7 +60,7 @@ class TimeSrv { ...@@ -60,7 +60,7 @@ class TimeSrv {
if (_.isString(this.time.to) && this.time.to.indexOf('Z') >= 0) { if (_.isString(this.time.to) && this.time.to.indexOf('Z') >= 0) {
this.time.to = moment(this.time.to).utc(); this.time.to = moment(this.time.to).utc();
} }
}; }
private parseUrlParam(value) { private parseUrlParam(value) {
if (value.indexOf('now') !== -1) { if (value.indexOf('now') !== -1) {
...@@ -92,7 +92,7 @@ class TimeSrv { ...@@ -92,7 +92,7 @@ class TimeSrv {
if (params.refresh) { if (params.refresh) {
this.refresh = params.refresh || this.refresh; this.refresh = params.refresh || this.refresh;
} }
}; }
private routeUpdated() { private routeUpdated() {
var params = this.$location.search(); var params = this.$location.search();
...@@ -154,7 +154,7 @@ class TimeSrv { ...@@ -154,7 +154,7 @@ class TimeSrv {
private cancelNextRefresh() { private cancelNextRefresh() {
this.timer.cancel(this.refreshTimer); this.timer.cancel(this.refreshTimer);
}; }
setTime(time, fromRouteUpdate?) { setTime(time, fromRouteUpdate?) {
_.extend(this.time, time); _.extend(this.time, time);
......
...@@ -136,7 +136,7 @@ class MetricsPanelCtrl extends PanelCtrl { ...@@ -136,7 +136,7 @@ class MetricsPanelCtrl extends PanelCtrl {
this.calculateInterval(); this.calculateInterval();
return this.datasource; return this.datasource;
}; }
calculateInterval() { calculateInterval() {
var intervalOverride = this.panel.interval; var intervalOverride = this.panel.interval;
...@@ -194,7 +194,7 @@ class MetricsPanelCtrl extends PanelCtrl { ...@@ -194,7 +194,7 @@ class MetricsPanelCtrl extends PanelCtrl {
if (this.panel.hideTimeOverride) { if (this.panel.hideTimeOverride) {
this.timeInfo = ''; this.timeInfo = '';
} }
}; }
issueQueries(datasource) { issueQueries(datasource) {
this.datasource = datasource; this.datasource = datasource;
......
...@@ -74,7 +74,7 @@ export class PlaylistEditCtrl { ...@@ -74,7 +74,7 @@ export class PlaylistEditCtrl {
return playlistItem === listedPlaylistItem; return playlistItem === listedPlaylistItem;
}); });
this.filterFoundPlaylistItems(); this.filterFoundPlaylistItems();
}; }
savePlaylist(playlist, playlistItems) { savePlaylist(playlist, playlistItems) {
var savePromise; var savePromise;
......
...@@ -154,7 +154,7 @@ export class DataSourceEditCtrl { ...@@ -154,7 +154,7 @@ export class DataSourceEditCtrl {
this.$location.path('datasources/edit/' + result.id); this.$location.path('datasources/edit/' + result.id);
}); });
} }
}; }
confirmDelete() { confirmDelete() {
this.backendSrv.delete('/api/datasources/' + this.current.id).then(() => { this.backendSrv.delete('/api/datasources/' + this.current.id).then(() => {
......
...@@ -17,4 +17,4 @@ export { ...@@ -17,4 +17,4 @@ export {
CustomVariable, CustomVariable,
ConstantVariable, ConstantVariable,
AdhocVariable, AdhocVariable,
} };
...@@ -13,7 +13,7 @@ class GrafanaDatasource { ...@@ -13,7 +13,7 @@ class GrafanaDatasource {
metricFindQuery() { metricFindQuery() {
return this.$q.when([]); return this.$q.when([]);
}; }
annotationQuery(options) { annotationQuery(options) {
return this.backendSrv.get('/api/annotations', { return this.backendSrv.get('/api/annotations', {
......
...@@ -120,7 +120,7 @@ export default class InfluxDatasource { ...@@ -120,7 +120,7 @@ export default class InfluxDatasource {
return {data: seriesList}; return {data: seriesList};
}); });
}; }
annotationQuery(options) { annotationQuery(options) {
if (!options.annotation.query) { if (!options.annotation.query) {
...@@ -137,7 +137,7 @@ export default class InfluxDatasource { ...@@ -137,7 +137,7 @@ export default class InfluxDatasource {
} }
return new InfluxSeries({series: data.results[0].series, annotation: options.annotation}).getAnnotations(); return new InfluxSeries({series: data.results[0].series, annotation: options.annotation}).getAnnotations();
}); });
}; }
targetContainsTemplate(target) { targetContainsTemplate(target) {
for (let group of target.groupBy) { for (let group of target.groupBy) {
...@@ -155,7 +155,7 @@ export default class InfluxDatasource { ...@@ -155,7 +155,7 @@ export default class InfluxDatasource {
} }
return false; return false;
}; }
metricFindQuery(query) { metricFindQuery(query) {
var interpolated = this.templateSrv.replace(query, null, 'regex'); var interpolated = this.templateSrv.replace(query, null, 'regex');
...@@ -256,7 +256,7 @@ export default class InfluxDatasource { ...@@ -256,7 +256,7 @@ export default class InfluxDatasource {
} }
} }
}); });
}; }
getTimeFilter(options) { getTimeFilter(options) {
var from = this.getInfluxTime(options.rangeRaw.from, false); var from = this.getInfluxTime(options.rangeRaw.from, false);
......
...@@ -195,7 +195,7 @@ export default class InfluxQuery { ...@@ -195,7 +195,7 @@ export default class InfluxQuery {
var escapedValues = _.map(value, kbn.regexEscape); var escapedValues = _.map(value, kbn.regexEscape);
return escapedValues.join('|'); return escapedValues.join('|');
}; }
render(interpolate?) { render(interpolate?) {
var target = this.target; var target = this.target;
......
...@@ -28,7 +28,7 @@ function createPart(part): any { ...@@ -28,7 +28,7 @@ function createPart(part): any {
} }
return new QueryPart(part, def); return new QueryPart(part, def);
}; }
function register(options: any) { function register(options: any) {
index[options.type] = new QueryPartDef(options); index[options.type] = new QueryPartDef(options);
......
...@@ -30,4 +30,4 @@ class MixedDatasource { ...@@ -30,4 +30,4 @@ class MixedDatasource {
} }
} }
export {MixedDatasource, MixedDatasource as Datasource} export {MixedDatasource, MixedDatasource as Datasource};
<query-editor-row query-ctrl="ctrl" can-collapse="false"> <query-editor-row query-ctrl="ctrl" can-collapse="false">
<div class="gf-form-inline"> <div class="gf-form-inline">
<div class="gf-form gf-form--grow"> <div class="gf-form gf-form--grow">
<textarea rows="6" class="gf-form-input" ng-model="ctrl.target.rawSql" spellcheck="false" placeholder="query expression" data-min-length=0 data-items=100 ng-model-onblur ng-change="ctrl.panelCtrl.refresh()"></textarea> <textarea rows="10" class="gf-form-input" ng-model="ctrl.target.rawSql" spellcheck="false" placeholder="query expression" data-min-length=0 data-items=100 ng-model-onblur ng-change="ctrl.panelCtrl.refresh()"></textarea>
</div> </div>
</div> </div>
......
...@@ -139,4 +139,4 @@ class AlertListPanel extends PanelCtrl { ...@@ -139,4 +139,4 @@ class AlertListPanel extends PanelCtrl {
export { export {
AlertListPanel, AlertListPanel,
AlertListPanel as PanelCtrl AlertListPanel as PanelCtrl
} };
...@@ -125,4 +125,4 @@ class DashListCtrl extends PanelCtrl { ...@@ -125,4 +125,4 @@ class DashListCtrl extends PanelCtrl {
} }
} }
export {DashListCtrl, DashListCtrl as PanelCtrl} export {DashListCtrl, DashListCtrl as PanelCtrl};
...@@ -116,4 +116,4 @@ class GettingStartedPanelCtrl extends PanelCtrl { ...@@ -116,4 +116,4 @@ class GettingStartedPanelCtrl extends PanelCtrl {
} }
} }
export {GettingStartedPanelCtrl, GettingStartedPanelCtrl as PanelCtrl} export {GettingStartedPanelCtrl, GettingStartedPanelCtrl as PanelCtrl};
...@@ -271,7 +271,7 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) { ...@@ -271,7 +271,7 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) {
}; };
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
var series = data[i]; let series = data[i];
series.data = series.getFlotPairs(series.nullPointMode || panel.nullPointMode); series.data = series.getFlotPairs(series.nullPointMode || panel.nullPointMode);
// if hidden remove points and disable stack // if hidden remove points and disable stack
...@@ -287,7 +287,7 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) { ...@@ -287,7 +287,7 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) {
options.series.bars.align = 'center'; options.series.bars.align = 'center';
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
var series = data[i]; let series = data[i];
series.data = [[i + 1, series.stats[panel.xaxis.values[0]]]]; series.data = [[i + 1, series.stats[panel.xaxis.values[0]]]];
} }
......
...@@ -284,7 +284,7 @@ class GraphCtrl extends MetricsPanelCtrl { ...@@ -284,7 +284,7 @@ class GraphCtrl extends MetricsPanelCtrl {
} }
info.yaxis = override.yaxis = info.yaxis === 2 ? 1 : 2; info.yaxis = override.yaxis = info.yaxis === 2 ? 1 : 2;
this.render(); this.render();
}; }
addSeriesOverride(override) { addSeriesOverride(override) {
this.panel.seriesOverrides.push(override || {}); this.panel.seriesOverrides.push(override || {});
...@@ -316,4 +316,4 @@ class GraphCtrl extends MetricsPanelCtrl { ...@@ -316,4 +316,4 @@ class GraphCtrl extends MetricsPanelCtrl {
} }
export {GraphCtrl, GraphCtrl as PanelCtrl} export {GraphCtrl, GraphCtrl as PanelCtrl};
...@@ -70,4 +70,4 @@ class PluginListCtrl extends PanelCtrl { ...@@ -70,4 +70,4 @@ class PluginListCtrl extends PanelCtrl {
} }
} }
export {PluginListCtrl, PluginListCtrl as PanelCtrl} export {PluginListCtrl, PluginListCtrl as PanelCtrl};
...@@ -214,8 +214,8 @@ class SingleStatCtrl extends MetricsPanelCtrl { ...@@ -214,8 +214,8 @@ class SingleStatCtrl extends MetricsPanelCtrl {
// check value to text mappings if its enabled // check value to text mappings if its enabled
if (this.panel.mappingType === 1) { if (this.panel.mappingType === 1) {
for (var i = 0; i < this.panel.valueMaps.length; i++) { for (let i = 0; i < this.panel.valueMaps.length; i++) {
var map = this.panel.valueMaps[i]; let map = this.panel.valueMaps[i];
// special null case // special null case
if (map.value === 'null') { if (map.value === 'null') {
if (data.value === null || data.value === void 0) { if (data.value === null || data.value === void 0) {
...@@ -233,8 +233,8 @@ class SingleStatCtrl extends MetricsPanelCtrl { ...@@ -233,8 +233,8 @@ class SingleStatCtrl extends MetricsPanelCtrl {
} }
} }
} else if (this.panel.mappingType === 2) { } else if (this.panel.mappingType === 2) {
for (var i = 0; i < this.panel.rangeMaps.length; i++) { for (let i = 0; i < this.panel.rangeMaps.length; i++) {
var map = this.panel.rangeMaps[i]; let map = this.panel.rangeMaps[i];
// special null case // special null case
if (map.from === 'null' && map.to === 'null') { if (map.from === 'null' && map.to === 'null') {
if (data.value === null || data.value === void 0) { if (data.value === null || data.value === void 0) {
...@@ -257,13 +257,13 @@ class SingleStatCtrl extends MetricsPanelCtrl { ...@@ -257,13 +257,13 @@ class SingleStatCtrl extends MetricsPanelCtrl {
if (data.value === null || data.value === void 0) { if (data.value === null || data.value === void 0) {
data.valueFormated = "no value"; data.valueFormated = "no value";
} }
}; }
removeValueMap(map) { removeValueMap(map) {
var index = _.indexOf(this.panel.valueMaps, map); var index = _.indexOf(this.panel.valueMaps, map);
this.panel.valueMaps.splice(index, 1); this.panel.valueMaps.splice(index, 1);
this.render(); this.render();
}; }
addValueMap() { addValueMap() {
this.panel.valueMaps.push({value: '', op: '=', text: '' }); this.panel.valueMaps.push({value: '', op: '=', text: '' });
...@@ -273,7 +273,7 @@ class SingleStatCtrl extends MetricsPanelCtrl { ...@@ -273,7 +273,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
var index = _.indexOf(this.panel.rangeMaps, rangeMap); var index = _.indexOf(this.panel.rangeMaps, rangeMap);
this.panel.rangeMaps.splice(index, 1); this.panel.rangeMaps.splice(index, 1);
this.render(); this.render();
}; }
addRangeMap() { addRangeMap() {
this.panel.rangeMaps.push({from: '', to: '', text: ''}); this.panel.rangeMaps.push({from: '', to: '', text: ''});
......
...@@ -101,7 +101,7 @@ export class TablePanelEditorCtrl { ...@@ -101,7 +101,7 @@ export class TablePanelEditorCtrl {
setUnitFormat(column, subItem) { setUnitFormat(column, subItem) {
column.unit = subItem.value; column.unit = subItem.value;
this.panelCtrl.render(); this.panelCtrl.render();
}; }
addColumnStyle() { addColumnStyle() {
var columnStyleDefaults = { var columnStyleDefaults = {
......
...@@ -42,7 +42,7 @@ transformers['timeseries_to_columns'] = { ...@@ -42,7 +42,7 @@ transformers['timeseries_to_columns'] = {
// group by time // group by time
var points = {}; var points = {};
for (var i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
var series = data[i]; var series = data[i];
model.columns.push({text: series.target}); model.columns.push({text: series.target});
...@@ -63,7 +63,7 @@ transformers['timeseries_to_columns'] = { ...@@ -63,7 +63,7 @@ transformers['timeseries_to_columns'] = {
var point = points[time]; var point = points[time];
var values = [point.time]; var values = [point.time];
for (var i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
var value = point[i]; var value = point[i];
values.push(value); values.push(value);
} }
...@@ -242,4 +242,4 @@ function transformDataToTable(data, panel) { ...@@ -242,4 +242,4 @@ function transformDataToTable(data, panel) {
return model; return model;
} }
export {transformers, transformDataToTable} export {transformers, transformDataToTable};
...@@ -79,4 +79,4 @@ export class TextPanelCtrl extends PanelCtrl { ...@@ -79,4 +79,4 @@ export class TextPanelCtrl extends PanelCtrl {
} }
} }
export {TextPanelCtrl as PanelCtrl} export {TextPanelCtrl as PanelCtrl};
...@@ -18,4 +18,4 @@ export { ...@@ -18,4 +18,4 @@ export {
MetricsPanelCtrl, MetricsPanelCtrl,
QueryCtrl, QueryCtrl,
alertTab, alertTab,
} };
...@@ -21,4 +21,4 @@ export { ...@@ -21,4 +21,4 @@ export {
sinon, sinon,
expect, expect,
angularMocks, angularMocks,
} };
module.exports = function(config, grunt) { module.exports = function(config, grunt) {
'use strict' 'use strict'
return { return {
tslint : "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json", tslint : "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json --type-check",
tslintfile : "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json <%= tslint.source.files.src %>", tslintfile : "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json --type-check <%= tslint.source.files.src %>",
tscompile: "node ./node_modules/typescript/lib/tsc.js -p tsconfig.json --diagnostics", tscompile: "node ./node_modules/typescript/lib/tsc.js -p tsconfig.json --diagnostics",
tswatch: "node ./node_modules/typescript/lib/tsc.js -p tsconfig.json --diagnostics --watch", tswatch: "node ./node_modules/typescript/lib/tsc.js -p tsconfig.json --diagnostics --watch",
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment