Skip to content

Instantly share code, notes, and snippets.

@raffecat
Created November 24, 2017 04:00
Show Gist options
  • Save raffecat/5c1ef5156ea583e3b3fac05549172877 to your computer and use it in GitHub Desktop.
Save raffecat/5c1ef5156ea583e3b3fac05549172877 to your computer and use it in GitHub Desktop.
tsconfig.json for node.js
{
"files": [
"src/main.ts"
],
"compilerOptions": {
"inlineSourceMap": true,
"alwaysStrict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"target": "es6",
"module": "commonjs",
"outDir": "lib",
"pretty": false
}
}
@raffecat
Copy link
Author

npm install --save-dev mocha chai @types/chai ts-node typescript
  "scripts": {
    "test": "mocha test/ --compilers ts:ts-node/register --recursive"
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment