From 739e3c107185864cdc68ba41ef2509898dbd625d Mon Sep 17 00:00:00 2001 From: Gus Date: Wed, 14 Jun 2017 23:10:38 +0300 Subject: [PATCH] Base structure + package.json + tsconfig.json --- package.json | 30 ++++++++++++++++++++++++++++++ tsconfig.json | 13 +++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 package.json create mode 100644 tsconfig.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..818be65 --- /dev/null +++ b/package.json @@ -0,0 +1,30 @@ +{ + "name": "ts_node--example", + "version": "1.0.0", + "description": "Example nodejs-typescript application", + "main": "index.ts", + "scripts": { + "start": "tsc --watch", + "built:watch": "nodemon ./bin/index.js" + }, + "keywords": [ + "typescript", + "nodejs" + ], + "author": "Sergius", + "license": "MIT", + "dependencies": { + "body-parser": "^1.17.2", + "express": "^4.15.3", + "express-session": "^1.15.3", + "nedb": "^1.8.0" + }, + "devDependencies": { + "@types/body-parser": "^1.16.3", + "@types/express": "^4.0.35", + "@types/express-session": "^1.15.0", + "@types/nedb": "^1.8.3", + "@types/node": "^7.0.27", + "nodemon": "^1.11.0" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..6f324b0 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "ES6", + "noImplicitAny": false, + "removeComments": true, + "outDir": "bin/", + "sourceMap": false + }, + "include": [ + "src/**/*" + ] +} \ No newline at end of file