Task for executing npm commands for modules.
npm install --save-dev octopus-start-npm-tasks
const Start = require('start').default,
{modules, iter} = require('octopus-start-modules-tasks'),
npmTasks = require('octopus-start-npm-tasks');
const start = new Start();
module.exports.test = () => Start(
modules.load(),
iter.forEach()(module => npmTasks.run(module)('test')));
Runs arbitrary npm script defined in package.json
. If script is missing, it will not fail. Useful for project where some modules have defined script and some do not.
Parameters:
- module - module as returned from
iter
,async
tasks. - script - npm script name.