Coder Social home page Coder Social logo

puppet-nodejs's Introduction

puppet-nodejs

Build Status

This module allows to install Node.js and NPM.

Installation

This module doesn't have any hard dependencies but you need: python, g++, make, wget and tar installed.

Get the module:

git clone git://github.com/willdurand/puppet-nodejs.git modules/nodejs

Usage

Include the nodejs class:

include nodejs

You can specify a Node.js version by specifing it:

class { 'nodejs':
  version => 'v0.8.0',
}

You can install different versions of Node.js thanks to the nodejs::install definition:

nodejs::install { 'v0.7.0':
  version => 'v0.7.0',
}

By default, this module creates symlinks for each Node.js version installed into /usr/local/bin. You can change this behavior by using the target_dir parameter.

Also, this module installs NPM by default. You can set the with_npm parameter to false to not install it.

NPM Provider

This module adds a new provider: npm. You can use it as usual:

package { 'bower':
  provider => npm
}

Running the tests

Install the dependencies using Bundler:

BUNDLE_GEMFILE=.gemfile bundle install

Run the following command:

BUNDLE_GEMFILE=.gemfile bundle exec rake spec

License

puppet-nodejs is released under the MIT License. See the bundled LICENSE file for details.

puppet-nodejs's People

Contributors

willdurand avatar

Watchers

Boris Guéry avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.