_________ _____ _____ __________
\_ ___ \ _____/ ____\/ ____\____ ____\______ \_______ ______ _ __
/ \ \/ / _ \ __\\ __\/ __ \_/ __ \| | _/\_ __ \_/ __ \ \/ \/ /
\ \___( <_> ) | | | \ ___/\ ___/| | \ | | \/\ ___/\ /
\______ /\____/|__| |__| \___ >\___ >______ / |__| \___ >\/\_/
\/ \/ \/ \/ \/
------=== Brew your CoffeeScript in your JetBrains IDE ===------
CoffeeBrew is a plugin for your JetBrains IDE.
CoffeeBrew is developed with IntelliJ IDEA 10CE.
- You must have a JDK 1.6 and Ant installed.
- Download IntelliJ IDEA 10CE to develop for the IDEA X platform and IntelliJ IDEA 9 to verify the build against the older maia platform.
- Fork CoffeeBrew and check your personal repository out.
- Check out IntelliJ IDEA Community from
git://git.jetbrains.org/idea/community.git
. - Go into that directory and build IDEA by just calling
ant
on the command line. - Make a copy of that freshly cloned git repository for the maia branch.
- Go into that directory and checkout the maia branch.
- Build IDEA for maia by just calling
ant
on the command line. - Go to the CoffeeBrew directory, copy
build.properties.sample
tobuild.properties
and modify the path to the source code and installed application for both ideax and maia. - Open the CoffeeBrew project in your downloaded IDEA and go to
File > Project Settings
- Under SDK add a new IntelliJ IDEA Plugin SDK by pointing it to the downloaded IDEA version.
- Add the freshly compiled
<idea>/out/dist.all.ce/lib/idea.jar
to the classpath. - Add the sources from IDEA repository for easy API discovering.
- Use Ant to run the tests, compile, test and install the plugin.
- You can also debug the plugin by creating a Plugin launch configuration. I added
-Xmn100M -Xms500M -Xmx500M -XX:MaxPermSize=128m
to the VM parameters and selected make and the compile Ant target under the 'Before launch' hooks