Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
Derek Cicerone edited this page Jun 30, 2015 · 13 revisions

Tips & Tricks

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.

Developing

Tools

Initial Setup

git clone [email protected]:palantir/eclipse-typescript.git
npm install

Debugging

  • Run grunt (the first time and each time there are TypeScript changes)
  • Right-click on the TypeScript project and select Debug As -> Eclipse Application

Building the Eclipse Update Site

grunt
mvn clean install

The update site will be in com.palantir.typescript.p2updatesite/target/repository.

Contributing

  • Ensure there are no warnings/errors in Eclipse (with Checkstyle and FindBugs installed)
  • Ensure the Grunt and Maven builds succeed
  • Submit a pull request

Develop Update Site

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/