From 15e5ead2d15d1726772c82544462b0acbdb227fa Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 8 Feb 2020 12:55:56 +0400 Subject: Initial TypeScript Signed-off-by: Valentin Popov --- package.json | 7 +++++-- tsconfig.json | 28 ++++++++++++++++++++++++++++ yarn.lock | 9 +++++++++ 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 tsconfig.json diff --git a/package.json b/package.json index 5514cee..06372c7 100644 --- a/package.json +++ b/package.json @@ -9,5 +9,8 @@ "private": false, "scripts": {}, "dependencies": {}, - "devDependencies": {} -} \ No newline at end of file + "devDependencies": { + "tslib": "^1.10.0", + "typescript": "^3.7.5" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..ee95095 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "declaration": true, + "downlevelIteration": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "module": "ES2015", + "moduleResolution": "Node", + "newLine": "lf", + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "outDir": "dist", + "removeComments": true, + "sourceMap": true, + "strict": true, + "target": "ES5" + }, + "exclude": [ + "node_modules", + "dist" + ], + "include": [ + "src" + ] +} diff --git a/yarn.lock b/yarn.lock index fb57ccd..4a8e847 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,3 +2,12 @@ # yarn lockfile v1 +tslib@^1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" + integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== + +typescript@^3.7.5: + version "3.7.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae" + integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw== -- cgit v1.2.3