-
Notifications
You must be signed in to change notification settings - Fork 73
Home
Instead of using the Eclipse plug-in's TypeScript compilation support, its also possible to use the built-in Eclipse builder functionality directly by running tsc (the TypeScript compiler) as an external tool:
Project properties -> Builders
Add new "Program" builder
Location: ...\tsc
Working Directory: ${project_loc}
Arguments: --source-map --out build.js src/index.ts
Build options: [ ] Allocate Console [ ] Launch in background [x] During auto builds (other checks empty) [x] Specify working set of relevant resources Check your src directory
Now if you have Project -> Build automatically checked, it should compile automatically when saving.
- Eclipse (standard distribution)
- Eclipse Checkstyle plug-in
- Eclipse FindBugs plug-in
- Grunt
- Maven
- Node.js
git clone [email protected]:palantir/eclipse-typescript.git
git submodule init
git submodule update
npm install
- Run
grunt
(the first time and each time there are TypeScript changes) - Right-click on the TypeScript project and select Debug As -> Eclipse Application
grunt
mvn clean install
The update site will be in com.palantir.typescript.p2updatesite/target/repository.
- Ensure there are no warnings/errors in Eclipse (with Checkstyle and FindBugs installed)
- Ensure the Grunt and Maven builds succeed
- Submit a pull request
There is a branch of eclipse-typescript which is periodically updated to track the develop branch of the TypeScript repository. It may also contain fixes and enhancements only possible using the unreleased TypeScript code. The site can be found at: http://eclipse-update.palantir.com/eclipse-typescript-develop/