Getting started with plugin development
Launch it with Nextflow
To test with Nextflow for development purpose:
- Clone the Nextflow repo into a sibling directory
- Append the following line to the
settings.gradle
in this project:
- Compile the plugin code
- Run nextflow with this command:
Alternative: Launch without a local Nextflow build
The plugin can be tested without using a local Nextflow build using the following steps:
Warning
This will install the compiled plugin code into your $NXF_PLUGINS_DIR
directory (default: ${HOME}/.nextflow/plugins
).
If the plugin version from the manifest file (plugins/nf-co2footprint/src/resources/META-INF/MANIFEST.MF
) of the dev code matches an existing plugin, any install will be overwritten.
- Compile and install the plugin code
- Run nextflow with this command, specifying the plugin version:
Compiling and running tests
To compile and run the tests use the following command:
Change and preview the docs
The docs are generated using Material for MkDocs. To change the docs, edit the files in the docs/ folder and run the following command to generate the docs (after installing mkdocs via pip install mkdocs-material
):
To preview the docs, open the URL provided by mkdocs in your browser.