JSweet quick start
A simple project to get started with JSweet. This project just contains a main method that shows 'Hello world' messages in two different ways. The program uses the J4TS candy to access
java.util API, and the jQuery candy. Programmers can use it to set up a new JSweet project and try out some basic features.
> git clone https://github.com/cincheo/jsweet-quickstart.git > cd jsweet-quickstart > mvn generate-sources > firefox webapp/index.html
You can also watch your JSweet (.java) source files for modifications using
mvn clean jsweet:watch
It will transpile automatically when you save a source file. Be sure that there are not transpilation error in your console, though.
At any time, you can modify the Java files (or add new files) and run
index.html file (
You can modify the generation options by modifying the plugin section for
jsweet-maven-plugin. When having a project with multiple source files, a good generation option to turn on is the
<dependencies> section of the
pom.xml. You can copy-paste the Maven dependency description from our Candy browser, or from our online Maven repository. When running
candiesJsOut option (here in the