-
Notifications
You must be signed in to change notification settings - Fork 25
Installation
Rémi Barraquand edited this page Aug 28, 2014
·
4 revisions
The following instructions are for setting up a suitable environment for building Dahu-Next.
- 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.
- 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 withnpm 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 followaptitude install ruby-compass)
If you have arch then you will know how to install all the Pre-requisites by yourself :)
@todo
git clone -b next https://github.com/dahuapp/dahu.git dahu-next
cd dahu-next
Build all:
$ ./gradlew build
Build only the editor:
$ ./gradlew :dahu:editor:build
Build only the CLI:
$ ./gradlew :dahu:cli:build
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"