How to install gp.recipe.node
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install gp.recipe.node
Lastest release
Contents
- Code repository: https://github.com/gawel/gp.recipe.node
Detailed Documentation
Supported options
The recipe supports the following options:
- url
- url to a node.js archive
- version
- node.js version. Ignored if url is set. Default to recipe version. Mean that using recipe=gp.recipe.node==0.10.3.X will install node 0.10.3
- npms
- a list of package to install with npm. You can specify a package version by using npmname@version
- scripts
- a list of scripts
- node-path
- a list of extra directory to add to NODE_PATH
Example usage
We'll start by creating a buildout that uses the recipe:
>>> write('buildout.cfg', ... """ ... [buildout] ... parts = test1 ... ... [test1] ... recipe = gp.recipe.node ... npms = coffee-script less ... scripts = coffee lessc ... """)
Running the buildout gives us:
>>> print 'start', system(buildout) start... Installing test1. ... Generated script '.../bin/lessc'.
Contributors
Gael Pasgrimaud, Author
Change history
0.10.8.1
- Allow to install only node/npm
0.10.5.1
- Now use binary distribution on linux and osx by default. Mean that the recipe no longer require gcc and the installation is way much faster.
- Raise an error if a script does not exist
- Use package version to get the node.js version to install
0.3
- Change npm install script location [Ross Pfahler]
0.1
- Created recipe with ZopeSkel [Gael Pasgrimaud]