Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.38 KB

SETUP.md

File metadata and controls

65 lines (48 loc) · 1.38 KB

Environment

Tested on Ubuntu 18.04

Prerequisites

NodeJS

  • node v8.9.4 (if you are using nvm, just execute: nvm use)

Rust

$ curl https://sh.rustup.rs -sSf | sh

Don't forget to configure your current shell run for rustup:

$ source $HOME/.cargo/env

Toolchain install:

$ rustup install nightly-2018-10-30
$ rustup target add wasm32-unknown-unknown --toolchain nightly-2018-10-30

If you having trouble with nightly-2018-10-30 version, try to update to the latest one and provide target info:

$ rustup toolchain install nightly
$ rustup update
$ rustup target add wasm32-unknown-unknown --toolchain nightly

Submodules

# clone the repository with the submodule js-cardano-wasm
$ git clone --recursive [email protected]:Emurgo/yoroi-frontend.git
$ git submodule update --init --recursive

To automate downloading and installation of js-cardano-wasm dependency run setup_cardano_crypto.sh to download latest js-cardano-wasm repository into js-cardano-wasm folder.

$ sh setup_cardano_crypto.sh

Packages

To install other Yoroi-frontend related dependencies use:

$ npm install

Rebuild dll

$ npm run build-dll

Git hooks

To regiter the githooks locally you must run this command

$ git config core.hooksPath .githooks