Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

How to NOT install local bower & grunt? #405

Closed
ghost opened this issue Aug 12, 2015 · 6 comments
Closed

How to NOT install local bower & grunt? #405

ghost opened this issue Aug 12, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Aug 12, 2015

A question: I have bower & grunt installed globally on my server. What would be the best approach to not install them locally, to minimize disk space usage?

@pmccauley
Copy link

I would have a local development server and then only deploy the theme files not the node and bower files, or even scss. For example I have a local WP that I use as dev. I then would setup a separate grunt command to push to the test / production server.

Other than that I would use an ftp and only deploy the files, folders you need for the theme.

@ghost
Copy link
Author

ghost commented Aug 13, 2015

@pmccauley , thanks for your answer. Not quite what I was looking for. What I meant was how to run npm install without installing bower & grunt as local dependencies.

@Aetles
Copy link
Contributor

Aetles commented Aug 13, 2015

You could look at the changes that where made in 85e631d where the global dependencies where removed.

@ghost
Copy link
Author

ghost commented Aug 13, 2015

@Aetles, that's what I thought.. So it looks I have to install the 80 megabytes of node_modules for every theme development project. It was just mere 24 megabytes before the global dependencies were removed.

@Aetles
Copy link
Contributor

Aetles commented Aug 13, 2015

Yeah, that's a drawback but I still think it's better than using global installations. John Albin Wilkins wrote a convincing article about why installing packages globally is not recommended.

@ghost
Copy link
Author

ghost commented Aug 14, 2015

Ok, thanks, good read, I'm convinced, though I've never had any problems with global installations .

@ghost ghost closed this as completed Aug 14, 2015
This issue was closed.
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

2 participants