Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom node_modules location conflicts with gulpfile.js #20

Open
madmas opened this issue Jul 25, 2016 · 0 comments
Open

Custom node_modules location conflicts with gulpfile.js #20

madmas opened this issue Jul 25, 2016 · 0 comments

Comments

@madmas
Copy link

madmas commented Jul 25, 2016

Hi,
if I got this two information bits right, I get into trouble if I want to mode the node_modules folder somewhere else but keep the gulpfile.js still in my ${projectDir}.

On the one hand, the README says (regarding the Example build file):

// if the /node_modules directory already exists somewhere other than at the base of where your build.gradle is
//  plugin looks for gulp in the node_modules directory
gulp {
    workDir = file("WebContent")
}

but on the other hand, workDir is also used to find the gulpfile.js, as said in the README under "Configuring the Plugin":

 // Set the directory where gulpfile.js should be found
    workDir = file("${project.projectDir}")

Why do I want to have node_modules somewhere else?
I want to introduce a self-contained build using those plugins while maintaining compatibility for current setups and scripts.

An example of what I'm trying to do can be found at https://gist.github.com/madmas/39a29ced6bdd717a335d42ba1648f3aa

Any hints / tips how to handle such thing?

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

No branches or pull requests

1 participant