CATS is an IDE for the TypeScript developer. CATS is open source software released under the Apache 2.0 license and runs on Linux, Windows and OS X. CATS itself is written in TypeScript and even being developed with CATS as its main IDE.
Although not yet feature complete, it is getting there. Right now CATS already has built-in support for the following features:
- Intelligent code editor with support for syntax highlighting and code completion.
- Support for refactoring and smart navigation.
- Validation of the source code while you are typing.
- Editing features like folding and indentation.
- Running your application from within IDE and using the WebKit debugger to debug.
It is recommended to first make a backup before using CATS on your project since the software is still considered to be of alpha quality.
To install CATS, just follow these steps:
Download the CATS from Github:
git clone https://github.com/jbaron/cats.git
Download and install node-webkit. In case you don't have node-webkit yet, you can download a binary for Windows, Linux or Mac at: Node-Webkit. Make sure you have at least version 0.8.0 installed.
Go to the cats directory and type:
By default the "greeter" project will be loaded. In the samples directory there are several other projects you can try out. Of course when you open a new project, you can also open a directory that contains your own project. When you want to start CATS with a specific project, you can pass the project directory as a command line parameter:
/path_to_node_webkit/nw ./ <full_path_to_project>
CATS will look for a file in the project directory called: ".settings/config.json". If found, CATS will use the values configured in this file, otherwise it will use sensible default values. You can edit this file (or the default values if you don't have this file yet) from the main menu.
In case you encounter an issue, you can open a ticket on Github. Also enhancement requests can be entered here: Github issue tracker
There is normally no need to compile CATS yourself, since all the compiled files are already included. But if you want to play around with it, here are the steps:
Make sure you have installed TypeScript 0.9.1 or later
Also make sure you have Nodejs and Jake installed. You can get node from nodejs.org and after that install Jake:
npm install -g jake
Go to the cats directory
The following will compile the required files:
That is all there is to it. The lib directory should now have an updated main.js, tsworker.js and uml.js files and you are ready to run CATS editor.
Some of the main 3rd party components that we have used within CATS and couldn't have done without:
TypeScript (of course), developed by Microsoft.
Node-webkit. This is a great initiative from Intel to allow Node libraries to be used within a web page. CATS use this to read and write local files without the need for a server-side component.
The todo list items are tracked as enhancement requests on GitHub. You can check them out at: