Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Can't find tasks defined in my Gulpfile #62

Open
hansv opened this issue May 14, 2018 · 0 comments
Open

Can't find tasks defined in my Gulpfile #62

hansv opened this issue May 14, 2018 · 0 comments

Comments

@hansv
Copy link

hansv commented May 14, 2018

I pulled the current image (6501338b5a4a) from docker hub, followed the instructions but could not get it to work.

I kept getting 'Task is not in your Gulpfile', so it seem even though the gulpfile.js is required, the tasks are not loaded.

My workaround was to change the import order:
var glp = require(projectPath + '/gulpfile');
gulp.tasks = glp.tasks;
requireDir('./tasks', {recurse: true});

And added a module export to the end of my gulpfile
module.exports = gulp;

This worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant