Skip to content

Commit

Permalink
[[CHORE]] Improve TS definition and processes (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmendiara authored and JoseAntonioRodriguez committed Aug 30, 2016
1 parent 0b06fd2 commit b74df6d
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 58 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ typings/
benchmark/out.log

npm-debug.log
test/logops.typings.js

*.bak
*.orig
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ typings/
.istanbul.yml
.travis.yml

tsconfig.json
typings.json
tslint.json
release.json

npm-debug.log
CONTRIBUTING.md
2 changes: 1 addition & 1 deletion lib/logops.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* The NODEJS stream where the logger will write string traces
* Defaults to process.stdout
*/
export let stream: any;
export let stream: NodeJS.WritableStream;

/**
* Gets the current log level. The default level is INFO
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"scripts": {
"travis": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js test/*.spec.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js test/*.spec.js",
"lint": "jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'",
"lint": "jscs lib && eslint lib && tslint './{lib,test}/**/*.ts' && tsc",
"test": "mocha -R spec test/environment.js test/*.spec.js",
"changelog": "conventional-changelog -p jshint",
"release": "release-it"
Expand All @@ -40,7 +40,9 @@
"sinon": "^1.15.0",
"sinon-chai": "^2.8.0",
"tslint": "^3.14.0",
"tslint-config-typings": "^0.2.3"
"tslint-config-typings": "^0.2.3",
"typescript": "^1.8.10",
"typings": "^1.3.3"
},
"keywords": [
"logger",
Expand Down
54 changes: 0 additions & 54 deletions test/logops.typings.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/logops.typings.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import logops = require('../lib/logops');
import * as logops from '../lib/logops';

let lvl: string = logops.getLevel();

Expand Down
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitAny": false,
"sourceMap": false
},
"exclude": [
"node_modules"
]
}
5 changes: 5 additions & 0 deletions typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"globalDependencies": {
"node": "registry:dt/node#6.0.0+20160826120425"
}
}

0 comments on commit b74df6d

Please sign in to comment.