diff --git a/lib/tsconfig.json b/lib/tsconfig.json new file mode 100644 index 0000000..382a531 --- /dev/null +++ b/lib/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es6", + "lib": [ + "es6", + "dom" + ], + "module": "commonjs", + "moduleResolution": "node", + "baseUrl": "../../", + "removeComments": true, + "types": [ "atom", "node" ] + } +} diff --git a/package.json b/package.json index 5693ec4..fbfe7c7 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,27 @@ "atom": ">=0.174.0 <2.0.0" }, "dependencies": { - "atom-space-pen-views": "^2.0.3" + "atom-space-pen-views": "^2.0.3", + "atom-ts-transpiler": "^1.2.3", + "typescript": "^2.5.3" }, "devDependencies": { "coffeelint": "1.16.0" - } + }, + "atomTranspilers": [ + { + "transpiler": "atom-ts-transpiler", + "glob": "{!(node_modules)/**/,}*.ts?(x)", + "options": { + "cacheKeyFiles": [ + "lib/tsconfig.json" + ], + "verbose": false + } + }, + { + "glob": "{!(node_modules)/**/,}*.js", + "transpiler": "atom-babel6-transpiler" + } + ] }