Publishing a module
You can publish your module through our CLI or programmatically, in a typescript file.
To configure your module when publishing, you can use:
- an egg.json or egg.yaml file;
- an eggignore file;
- the options of the publish command.
If there is a conflict between a field in your config, the options of the publish command will take precedence, then the eggignore file and finally the eggs config file.
There are a number of required fields that must appear somewhere in your configuration:
name
;version
and/orbump
;files
and/orignore
To publish a module, just navigate to the root of your module (where your egg file is located) and use the following command:
Boom! After this, you'll be returned a link to your module on our Gallery. You should also update your README.md
with this url so that other users can find your module on Nest.land!
Note: Use the same command to publish a new version to an existing module!
#
OptionsYou can use several options as well, instead of stating these fields in your egg
file:
For more details, please refer to configuration.
Additional options:
#
ProgrammaticallyYou just need to import the publish
function from the latest version of eggs.
This functions identically to the CLI, and features such as logging are still available.
This avoids the need to install eggs. Moreover, every contributor to the project has the same version of eggs.
#
Automatic publishingThanks to @divy-work, you can now set up a GitHub Actions workflow for automatically publishing your modules!
To see how to use this, visit our eggs-ci repository.
#
BadgeIn addition, you'll have the option of adding our official badge to your project docs, courtesy of @maximousblk. This is the best way you can support our platform and help us grow. We'd really appreciate seeing it on your project!
Round Edition
Block Edition
or if you want to support us louder, you can use the large badge: