Skip to content

Commit

Permalink
add TypeScript setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesadarich committed Jan 3, 2017
1 parent cfb7447 commit b0b5605
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "1.0.0-alpha.0",
"main": "src/karma-alsatian.js",
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -25,5 +26,8 @@
"bugs": {
"url": "https://github.com/alsatian-test/karma-alsatian/issues"
},
"homepage": "https://github.com/alsatian-test/karma-alsatian#readme"
"homepage": "https://github.com/alsatian-test/karma-alsatian#readme",
"devDependencies": {
"typescript": "^2.1.4"
}
}
1 change: 1 addition & 0 deletions src/karma-alsatian.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("success");
25 changes: 25 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": true,
"declaration": true,
"sourceMap": false,
"preserveConstEnums": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"buildOnSave": false,
"compileOnSave": true,
"exclude": [
"./**/*.d.ts",
"node_modules"
],
"include": [
"./**/*.ts"
],
"atom": {
"rewriteTsconfig": false
}
}

0 comments on commit b0b5605

Please sign in to comment.