Website โ Download โ Documentation
The language that works for you
Manual installation is simple. The only dependencies you must have are git and nodejs + npm. Additionally you should have make (preferably GNU), but this comes by default on almost every *nix system.
- The first step is to clone the repository from GitHub:
$ git clone https://github.com/cheddar-lang/Cheddar.git && cd Cheddar
Note: If you want to clone a specific branch (e.g. develop for development), use the following command:
$ git clone -b <branch> https://github.com/cheddar-lang/Cheddar.git && cd Cheddar
- The next step is to install the dependencies with npm. An automatic build should trigger if dependencies are installed succesfully. Once this command is finished you should see a
dist/
directory created. If you don't, look for any errors in the installation.
$ npm install
- Manually building / testing
You can use make
to run the build, test, and install tasks:
$ make # Production Build
$ make build # Development Build
$ make test # Run tests
- Installing.
If you want to install the Cheddar CLI, you have some options. If you are doing a production installation, use make install
. For all other cases use ./bin/install
; with this you can pass a --method
argument to specify whether you'd like to install for yourself (--method=alias
) or for everyone on your computer (--method=path
, the default) which may require elevated privileges. With --method=alias
, provide the location of your bashrc file or equivalent with the --rcloc
flag (usually for *nix systems this is ~/.bashrc
, and for Mac this is ~/.bash_profile
). You may specify the installation path with --method=path
, Cheddar installs the binary in <path>/bin/cheddar
and <path>/share/cheddar
; this defaults to /usr/local
.