Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 1.36 KB

CONTRIBUTING.md

File metadata and controls

28 lines (15 loc) · 1.36 KB

Contributions

(Not fleshing this much out yet until the module is off the ground)

Structure

This module is structured as a private NPM package. You should be able to clone it, run npm install, and be on your way.

All code is written in TypeScript and lives under "src/". Build output (the installable module) gets copied to a new folder called "module/".

Strings (strings/en.json) live in the src/ directory, and are automatically copied into the module directory by the TypeScript compiler.

The module manifest (module.json) is not copied automatically (this happens in a GitHub workflow). If you need it during dev, you'll have to copy it manually for now.

Foundry VTT TypeScript definitions

This package uses a combination of foundry-pc-types and custom type definitions where foundry-pc-types uses any or is otherwise missing concrete definitions.

Testing changes

First, build your changes (npm run build); this will generate an installable module in the "module" directory.

Then either copy the folder into your Foundry VTT "modules/" data folder (renamed "shared-token-visibility/"), or create a symlink called "shared-token-visibility/" from the modules directory to your local module directory.

Merging your code

Pull requests into main are welcome and I will review them if they show up.