In a server side node project with the standard package.json, How should we mix coffescript and typescript files?
The npm install
, npm test
and npm start
functionality should still be available. The commands themselves are not essencial.
Extra info:
the coffeescript and Typescript need to be able to talk to each other as much as possible
the project is written in Expres
Just add
node.d.ts
and then you should be able to justvar/require
coffescript files from typescript just fine. To require typescript files compile them to JS (using an IDE like atom, or grunt / gulp packages) and then you should be able to require them just fine.To use TypeScript from typescript use
import/require
(instead ofvar/require
) and then compile with--module commonjs
.