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

Can't find tasks defined in my Gulpfile #62

Description

@hansv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions