beetboxvm / beetbox

Pre-provisioned L*MP stack
http://beetbox.rtfd.org
92 stars 19 forks source link

Add Gulp, NVM and Yeoman #441

Closed mariohernandez closed 7 years ago

mariohernandez commented 7 years ago

Problem/Motivation

Would be nice to have Gulp, NVM and Yeoman integrated to facilitate the creation of front-end environments.

Expected behaviour

After ssh into vagrant, I could execute gulp tasks for my front-end environment. This would also allow me to manage the node version to ensure anyone using my fork uses the same version of node using nvm

Actual behaviour

N/A: Gulp is missing

Steps to reproduce

N/A

Proposed changes

thom8 commented 7 years ago

@mariohernandez you're able to add and NPM global dependencies with the nodejs_npm_global_packages variable from the NodeJS role

nodejs_npm_global_packages:
  - name: gulp-cli
  - name: yeoman

This role uses the nodesource therefore the nodejs_version is limited to the latest major version eg 4.x, 6.x there is a suggestion of switching to nvm -- https://github.com/geerlingguy/ansible-role-nodejs/issues/27 which would be nice.

Another option is to install a local version of node with something like -- https://github.com/thecodingmachine/nodejs-installer

thom8 commented 7 years ago

@mariohernandez hope this answered your question, reopen this issue if you have any more queries.