Skip to content
Rémi Barraquand edited this page Aug 28, 2014 · 4 revisions

Dahu "next"

The following instructions are for setting up a suitable environment for building Dahu-Next.

Pre-requisites

Windows

  • Git can be installed by downloading the installer from Git download page.
  • Java can be installed by downloading the installer from the Oracle website.
  • NodeJS can be install by downloading the installer from the NodeJS download page.
  • To install Ruby you may want to use the great RubyInstaller for Windows.
  • To install Compass, open Git Shell and run the following command gem install compass

Info: The Git installer on Windows comes with Git Shell, a nice shell replacement. Please consider using this shell.

Ubuntu, Debian

  • Java can be installed by downloading the installer from the Oracle website.
  • Install Git and NodeJS: sudo apt-get install git nodejs. Make sure npm (provided with nodejs) is in your $PATH, and check the installation directory (npm bin -g, if needed change it with npm config set prefix <path>)
  • Ruby should be installed on Unix system using RVM. To install RVM proceed as described on the RVM install page. Once RVM is installed, open a shell and run: $ rvm install ruby
  • To install Compass run the following: gem install compass. (On Debian you can install compass as follow aptitude install ruby-compass)

Arch Linux

If you have arch then you will know how to install all the Pre-requisites by yourself :)

MacOSx

@todo

Download Dahu

git clone -b next https://github.com/dahuapp/dahu.git dahu-next
cd dahu-next

Build

Build all:

$ ./gradlew build

Build only the editor:

$ ./gradlew :dahu:editor:build

Build only the CLI:

$ ./gradlew :dahu:cli:build

Run

Run the editor:

$ ./gradlew :dahu:editor:run

Run the CLI:

$ ./gradlew :dahu:cli:run

To provide arguments to the CLI use -Pargs='...'

# generate some presentation:
$ ./gradlew :dahu:cli:run -Pargs="generate /path/to/some/presentation.dahu"
# print the help
$ ./gradlew :dahu:cli:run -Pargs="help"

Clone this wiki locally