JavaEar 专注于收集分享传播有价值的技术资料

Configuring TypeScript Sublime without explicitly defining every file path

Working with TypeScript and Sublime Text 3 using the T3S package. I'd like my NodeJS project to be structured like so:

/web.js
/views/some-view.js
/controllers/some-controller.js
[...]
/src
/src/web.ts
/src/views/some-view.ts
/src/controllers/some-controller.ts

In other words, I want all my .ts to be under /src and compile to individual .js files under /.

How can I configure T3S to compile my .ts files like this, without explicitly defining each and every .ts file in my sublime-project file?

If I cannot use T3S's build system to accomplish this, then is there a way to disable T3S's build system? Instead I'd make a Ruby filesystem watcher and compile every time a file is changed.

1个回答

    最佳答案