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

Node.js dev environment #1

Open
jcarbaugh opened this issue Jan 6, 2016 · 3 comments
Open

Node.js dev environment #1

jcarbaugh opened this issue Jan 6, 2016 · 3 comments

Comments

@jcarbaugh
Copy link
Contributor

@recursivefunk, what is needed for a good baseline node dev environment?

@recursivefunk
Copy link

nvm gets you node and npm. gulp will get you set to build front end assets.

@jcarbaugh
Copy link
Contributor Author

@recursivefunk should gulp be installed with npm install -g gulp or is there some way it should be used with nvm?

@recursivefunk
Copy link

Actually, you don't even need to install gulp. For projects that need it, it should just be a package.json dependency. Gulp's executable comes packaged with it in it's bin directory. Then in the package.json file you can do

"scripts": {
    "gulp": "gulp"
}

npm creates a .bin directory under node_modules/ and throws all dependency executables in there. When you configure a command in the script section of package.json like shown above, npm it will look under node_modules/.bin first for the command.

Short answer: don't worry about gulp

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

2 participants