Setup typescript basics
This commit is contained in:
parent
4189d95b8b
commit
4e7e5b7f2f
2 changed files with 7 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -31,3 +31,5 @@ node_modules
|
||||||
|
|
||||||
# Optional REPL history
|
# Optional REPL history
|
||||||
.node_repl_history
|
.node_repl_history
|
||||||
|
typings/
|
||||||
|
dist/
|
||||||
|
|
|
@ -7,10 +7,9 @@
|
||||||
"tstatic": "./src/server.js"
|
"tstatic": "./src/server.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run mocha && npm run lint && nsp check",
|
|
||||||
"lint": "eslint src/ tests/",
|
|
||||||
"start": "./src/server.js site/",
|
"start": "./src/server.js site/",
|
||||||
"mocha": "NODE_ENV=test mocha tests/**.test.js"
|
"postinstall": "typings install",
|
||||||
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "6.9.4"
|
"node": "6.9.4"
|
||||||
|
@ -41,6 +40,8 @@
|
||||||
"eslint-config": "dabapps/eslint-config#2.0.5",
|
"eslint-config": "dabapps/eslint-config#2.0.5",
|
||||||
"mocha": "=3.2.0",
|
"mocha": "=3.2.0",
|
||||||
"nsp": "=2.6.2",
|
"nsp": "=2.6.2",
|
||||||
"supertest": "=2.0.1"
|
"supertest": "=2.0.1",
|
||||||
|
"typescript": "^2.1.6",
|
||||||
|
"typings": "^2.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue