Skip to content

gulpfile in one place and node modules in another folder. Will this work? #25

@KumarSumitD

Description

@KumarSumitD

HI ,
I think this question has been asked. But just wanted to confirm, if gulp is enhanced a solution.
I have below structure -
Projects

   |
   | ------local-modules
                       |
                       |---------node_modules
   |-------ProjectA
                  |
                  |------ gulpfile.js
  |-------ProjectB
                  |
                  |------ gulpfile.js

This way we have multiple projects, but i want to use only one node modules to speed up the build process through Jenkins, and make structure cleaner.
I have tried multiple things -

  1. Went to gulp folder(node modules) and ran, node gulp.js --gulpfile . Local gulp not found
  2. Went to project folder where gulp file is available and ran, node <gulp.js location> . Local gulp not found

A quick response will be appreciated.
TIA

Sumit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions