-
Notifications
You must be signed in to change notification settings - Fork 15
Testing a custom version of @companion module base
Sometimes it may be useful to test or use an unreleased version of @companion-module/base
. This commonly happens when new features are added to this library, before they are deemed ready for general use.
Warning: Modules using unreleased versions of @companion-module/base
should not be distributed. There will often be subtle differences between the unreleased version and the final version that will cause bugs. Make sure to only use released versions in any distributed/published module versions.
This can sometimes be done against a normal build of companion, unless the changes to this library require changes in companion too.
- clone this repository somewhere on your computer if you havent already
git clone https://github.com/bitfocus/companion-module-base.git
- cd into the cloned folder
cd companion-module-base
- If the version you want is a branch, checkout the branch, or main if you want the primary branch. eg
git checkout main
- Install dependencies
yarn install
- Build the library
yarn build
. If this step fails with an error, you will need to resolve this - Make the library available through
yarn link
(if you have done this before, it can be skipped) - Inside your module folder, link in the local version
yarn link @companion-module/base
. This may need to be repeated anytime you run add/install/remove any dependencies from your module.
Note: be aware that the custom version will stay with your module as you switch branches. Once you are done, the best way to ensure you are using the version defined in your package.json
is to delete your node_modules
folder and run yarn install
to regenerate it
Getting Started
- Home
- Module development 101
- Git crashcourse
- Upgrading a module built for Companion 2.x
- Companion module library versioning
- Releasing your module
Development
- File Structure
- manifest.json
- Logging
- Module packaging
- Actions
- Feedbacks
- Presets
- Input Field Types
- Module configuration
- Upgrade scripts
- Variables
Code quality
Advanced functionality