stix-gates
Setup
If you initialized a new stix project using the boards cli stix preset, stix-gates will already be included in your project and you can move on to the usage section. If not, keep reading.
- In your stix project, simply run
yarn add stix-gates. - Add the module to your project's
src/config/modules.ts:
import { ModuleManagerConfigInterface } from 'stix';
import { StixGates } from 'stix-gates';
export const modules: ModuleManagerConfigInterface = [
StixGates,
// Your other modules.
];
Setting up gates
Setting up stix-gates is easy.
- Make sure you have a
gates.tsatsrc/config/gates.ts. - Add it to your config (add
export * from './gates';to yoursrc/config/index.ts)
Done. The stix-gates module will do the rest... Except for writing your gates of course, for which I do encourage you to keep reading!