Allows for linking node code right from your app into a mimosa workflow
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



This module allows for linking node code in your app, or on your file system, directly into a Mimosa workflow. This is great for small one off tasks that don't make sense as NPM modules.

For more information regarding Mimosa, see


Add 'adhoc-module' to your list of modules. Mimosa will install the module for you when you start up.


This module forwards registration and workflow functions on to your code, allowing local code to be directly linked into Mimosa's workflows.

Default Config

adhocModule: {
  modules: []
  • modules: An array of require calls. The code required in must expose a registration function. For information on the registration function and how to use it, see virtually any Mimosa module. Here's a simple one.

Example Config

adhocModule: {
  modules: [require('./scripts/module1'), require('./scripts/module2')]

Example code to require

var _execute = function( mimosaConfig, options, next ) {
  // do something appropriate for "beforeInstall", like copy files around
  // or transform files before installing them somewhere

exports.registration = function( mimosaConfig, register ) {
  if ( mimosaConfig.isBuild ) {
    register( ["postBuild"], "beforeInstall", _execute );