diff --git a/lib/tsconfig.json b/lib/tsconfig.json new file mode 100644 index 0000000..78dbb8d --- /dev/null +++ b/lib/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "es2016", + "lib": [ + "es2016", + "dom" + ], + "module": "commonjs", + "moduleResolution": "node", + "baseUrl": "../", + "strict": true, + "newLine": "lf", + "removeComments": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "forceConsistentCasingInFileNames": true, + "types": [ "node" ] + } +} diff --git a/package.json b/package.json index 5693ec4..af453e2 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,24 @@ "atom": ">=0.174.0 <2.0.0" }, "dependencies": { - "atom-space-pen-views": "^2.0.3" + "@types/node": "^9.4.7", + "atom-ts-transpiler": "^1.4.3", + "atom-space-pen-views": "^2.0.3", + "typescript": "^2.7.2" }, "devDependencies": { "coffeelint": "1.16.0" - } + }, + "atomTranspilers": [ + { + "transpiler": "atom-ts-transpiler", + "glob": "{!(node_modules)/**/,}*.ts?(x)", + "options": { + "cacheKeyFiles": [ + "lib/tsconfig.json" + ], + "verbose": false + } + } + ] }