Skip to content

npm link of Gulpfile (as a module) will not find tasks and error. #833

@Industrial

Description

@Industrial

Hi.

I've written a gulp setup (https://github.com/Industrial/id-project) for all my projects but as the number of projects using this setup grew it became more generic and instead of copying over behaviour from project to project I opted to make the setup (id-project) more generic and support configuration.

At first I used git to pull in changes from id-project into e.g. ProjectA and ProjectB. This turned out to be a messy thing and a lot of bookkeeping and working with git instead of coding.

Right now, I've implemented id-project as a NPM module so all I have to do is npm install --save-dev id-project gulp coffee-script and the gulpfile.coffee looks like (require "id-project")() and I'm done. I can make changes to id-project and just update with npm when I want those changes in another project.

The problem I'm having is that when I am developing new features or fixing bugs on id-project, I can't use npm link to test these changes in another project before releasing id-project. Gulp tells me Task 'default' is not in your gulpfile.

There seems to be a difference between using the npm install id-project version and npm link version.

Meanwhile I'm releasing a lot of unneeded versions on npm that I would like to do without.

Any help would be appreciated.

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