grunt icon indicating copy to clipboard operation
grunt copied to clipboard

Allow for custom plugin "tasks" folder

Open simlu opened this issue 8 years ago • 0 comments

When creating grunt plugins, it it sometimes really awkward that we can't set a custom folder for the tasks.

Adding a dummy file tasks/sometask.js with the following content is pretty common when using other modules that rely on the lib or src path structure:

module.exports = require(`${__dirname}/../lib/sometask`);

Currently the tasks folder is hardcoded into loadNpmTasks.

How would we best go about allowing customization here? An option parameter that can be passed into loadNpmTasks maybe?

simlu avatar Nov 13 '17 09:11 simlu