From 4e7e5b7f2f7e44c952de493e9659b8ec226fd45e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 14 Feb 2017 21:44:28 +0000 Subject: [PATCH] Setup typescript basics --- .gitignore | 2 ++ package.json | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index e920c16..893dafe 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,5 @@ node_modules # Optional REPL history .node_repl_history +typings/ +dist/ diff --git a/package.json b/package.json index 04c328a..b1e3cd0 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,9 @@ "tstatic": "./src/server.js" }, "scripts": { - "test": "npm run mocha && npm run lint && nsp check", - "lint": "eslint src/ tests/", "start": "./src/server.js site/", - "mocha": "NODE_ENV=test mocha tests/**.test.js" + "postinstall": "typings install", + "build": "tsc" }, "engines": { "node": "6.9.4" @@ -41,6 +40,8 @@ "eslint-config": "dabapps/eslint-config#2.0.5", "mocha": "=3.2.0", "nsp": "=2.6.2", - "supertest": "=2.0.1" + "supertest": "=2.0.1", + "typescript": "^2.1.6", + "typings": "^2.1.0" } }