UNPKG

534 BMarkdownView Raw
1# Contributing
2
3## Creating a Plugin
4
5Canon is a monorepo, with plugins stored in the `packages/` folder. To get started creating a new plugin:
6
71. Create a new branch to work in (usually `<name>-0.1`).
82. Create a new subfolder `packages/<name>`
93. Initialize a `package.json` and add `@datawheel/canon-core` to both the devDependencies and the peerDependencies
104. Run `npx canon-setup` to create a boilerplate canon site to test your plugin (these files will not get published to npm).
115. Create a `src/` folder to store your code!