1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 14:47:28 +00:00

Support all-typescript tooling with ts-node

The ts-node allows to execute build scripts written in TypeScript
so the entire project could be written in TypeScript.
This commit introduces support for ts-node, updates packages
and migrate copy routine to TypeScript

Thanks!
This commit is contained in:
Peter Blazejewicz
2017-12-16 22:41:40 +01:00
parent 7325bc49a2
commit bfd74b2dc6
5 changed files with 186 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
"build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css",
"watch-sass": "node-sass -w src/public/css/main.scss dist/public/css/main.css",
"tslint": "tslint -c tslint.json -p tsconfig.json",
"copy-static-assets": "node copyStaticAssets.js",
"copy-static-assets": "ts-node copyStaticAssets.ts",
"debug": "npm run build && npm run watch-debug",
"serve-debug": "nodemon --inspect dist/server.js",
"watch-debug": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run serve-debug\""
@@ -87,6 +87,7 @@
"@types/passport": "^0.3.3",
"@types/passport-facebook": "^2.1.3",
"@types/request": "^2.0.7",
"@types/shelljs": "^0.7.7",
"@types/supertest": "^2.0.0",
"concurrently": "^3.4.0",
"jest": "^21.2.1",
@@ -95,6 +96,7 @@
"shelljs": "^0.7.7",
"supertest": "^2.0.1",
"ts-jest": "^21.1.4",
"ts-node": "^4.0.2",
"tslint": "^5.8.0",
"typescript": "^2.4.0"
}