-
-
Notifications
You must be signed in to change notification settings - Fork 642
Add optional installs of Node and Ruby #227
Comments
This has one upstream dependency so far, on the |
Default versions installed with no extra config in Ubuntu 14.04:
|
Issue geerlingguy/ansible-role-nodejs#5 has been fixed, adding an example in the example config file, will add documentation later. |
So I tried this out with my project, and I got these versions of node and npm:
I'm not really sure what the 'proper' way to get the latest node version is via ansible, but this version of node is too old for several of the packages that we are using. I found a stack exchange post with several options for doing this manually. I do think this could be pretty useful, I had it install bower as well and that actually grabbed the latest version and 'just worked'. |
@sarahjean - I think I'll add a configurable option for this via the Node.js role, see: geerlingguy/ansible-role-nodejs#4 |
@sarahjean - I've added the ability to specify a node.js version in the installation, and it defaults to 0.10 right now. You can add Do you think I should default this to |
Yeah, I think that using the latest stable version available is probably a better default. |
Fun story: I've actually started using node inside the VM for a project this week, so it's a happy coincidence I had already laid the groundwork earlier :) I'll take an initial stab at adding documentation for common scenarios soon (mine is around testing with Selenium + Behat + PhantomJS), if nobody else does. |
I've documented node.js usage, but left out any detailed documentation of Ruby usage. Fewer and fewer projects are using Ruby/Compass/etc. these days, so those devs can figure it out on their own. It's about as simple as the Node.js integration anyways... |
Alrighty... enough people have asked for this feature specifically, and as long as I document it, it doesn't have to add much to the kludge factor. Since every FE dev has his own preferred concoction of FE asset management and dev/build tools (grunt, gulp, gasp, broccoli, fettucini, bundler, oh my!), I figure allowing for Node + npm modules and/or Ruby + gems would at least hit the 80% use case.
This would also somewhat reduce the urgency of fixing #174, which seems pretty gnarly at least with the current state of Ansible's includes.
The
geerlingguy.nodejs
andgeerlingguy.ruby
roles both install the base requirement, plus allow users to define npm modules or gems to add in... that kind of thing. And that would at least help dev teams standardize the tooling. Then they could (until #174 is done) add a command to install their local dependencies/bundle configs inside their own projects.geerlingguy.nodejs
role and configgeerlingguy.ruby
role and confignodejs_npm_global_packages
option ansible-role-nodejs#5The text was updated successfully, but these errors were encountered: