Remove typings and update dependencies

This commit is contained in:
kiswa 2016-09-29 23:35:34 +00:00
parent b9db907abf
commit 5005e7d5ad
6 changed files with 22 additions and 18 deletions

View File

@ -6,7 +6,7 @@ php:
before_script:
- nvm install 4
- nvm use 4
- npm i -g gulp typings
- npm i -g gulp
- npm i
- touch tests.db
- chmod a+w tests.db

View File

@ -6,7 +6,7 @@
"private": true,
"scripts": {
"test": "gulp test-api && gulp test-app",
"postinstall": "gulp composer && typings i"
"postinstall": "gulp composer"
},
"repository": {
"type": "git",
@ -35,6 +35,8 @@
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/router": "3.0.0",
"@types/chartist": "^0.9.33",
"@types/core-js": "^0.9.34",
"bourbon": "^4.2.7",
"bourbon-neat": "^1.8.0",
"chai": "^3.5.0",
@ -66,11 +68,10 @@
"reflect-metadata": "^0.1.8",
"rxjs": "5.0.0-beta.12",
"scss-base": "^1.1.6",
"systemjs": "0.19.38",
"systemjs-builder": "0.15.31",
"systemjs": "0.19.39",
"systemjs-builder": "0.15.32",
"touch": "^1.0.0",
"typescript": "^2.0.3",
"typings": "^1.4.0",
"zone.js": "^0.6.23"
}
}

View File

@ -1,4 +1,5 @@
import { Component, Input, AfterViewInit } from '@angular/core';
import * as Chartist from 'chartist';
@Component({
selector: 'tb-charts',
@ -67,11 +68,11 @@ export class Charts implements AfterViewInit {
},
low: 0,
height: '300px',
plugins: [ Chartist.plugins.tooltip({
transformTooltipTextFnc: (value) => {
return value + ' points remaining'
}
}) ]
// plugins: [ Chartist.plugins.tooltip({
// transformTooltipTextFnc: (value) => {
// return value + ' points remaining'
// }
// }) ]
};
new Chartist.Line('#' + this.chartName, data, options);

View File

@ -1,10 +1,14 @@
(function(global) {
var map = {
'app': 'build',
'dragula': 'node_modules/dragula/dist/dragula.js',
'ng2-dragula': 'node_modules/ng2-dragula',
'rxjs': 'node_modules/rxjs',
'@angular': 'node_modules/@angular'
'@angular': 'node_modules/@angular',
'chartist': 'node_modules/chartist/dist/chartist.js'
};
var packages = {

View File

@ -6,6 +6,10 @@
"sourceMap": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": true
"removeComments": true,
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"typeRoots": [ "node_modules/@types" ],
"types": [ "chartist", "core-js" ]
}
}

View File

@ -1,6 +0,0 @@
{
"globalDependencies": {
"chartist": "registry:dt/chartist#0.9.5+20160619034222",
"core-js": "registry:dt/core-js#0.0.0+20160914114559"
}
}