[READ-ONLY] Mirror of https://github.com/samualtnorman/hackmud-script-manager. Script manager for game hackmud, with minification, TypeScrip www.npmjs.com/package/hackmud-script-manager
hackmud-script-manager CONTRIBUTING.md
1.4 kB · 32 lines
Markdown
at 0.21

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 Development Version of HSM #

You can run the development 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.