Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.35 KB

CONTRIBUTING.md

File metadata and controls

32 lines (26 loc) · 1.35 KB

Contributing Guide

If you get stuck, message me on discord @samualn.

Requirements

Linux Users

  1. Open this cloned repository in a terminal
  2. Run pnpm install
  3. Modify your PATH
    • If you have direnv, run direnv allow if you havn't already
    • Otherwise run export PATH=$PWD/node_modules/.bin:$PATH
  4. Run scripts/package.sh to compile everything and build the NPM package in dist

Windows Users

  1. Open this cloned repository in Git Bash
  2. Run pnpm install
  3. Run export PATH=$PWD/node_modules/.bin:$PATH
  4. Run scripts/package.sh to compile everything and build the NPM package in dist

Tips and Tricks

Run ./rollup.config.js to only recompile.

Run the Devepment Version of HSM

You can run the devepment version of HSM by running node dist/bin/hsm.js. You can pass it arguments just like you normally would e.g. node dist/bin/hsm.js --version.

Install the Development Version of the NPM Package in Another Project

In the other project (e.g. testing with Hackmud Scripting Environment) run pnpm add ~/path/to/hackmud-script-manager/dist.