Skip to main content

ZC Buildout recipe for node.js

Project description

https://travis-ci.org/gawel/gp.recipe.node.png?branch=master https://pypip.in/v/gp.recipe.node/badge.png https://pypip.in/d/gp.recipe.node/badge.png

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.22.X will install node 0.10.22

npms

a list of package to install with npm. You can specify a package version by using npmname@version

scripts

a list of scripts (optional)

node-path

a list of extra directory to add to NODE_PATH

relaltive-paths

will generate paths relative to the root buildout directory. this is also honored if ‘relative-paths’ is in the main buildout section

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 Yusuke Tsutsumi

Change history

0.12.3.2 (2015-05-21)

  • Bugfix when using node-directory combined with relative-path

0.12.3.1 (2015-05-21)

  • Allow to install node outside parts/ by specifying node-directory options

  • Switch to 0.12.3.1

0.12.0.1 (2015-03-12)

  • Switch to 0.12.0

0.10.28.0 (2014-06-03)

  • Switch to 0.10.28

  • relative-paths should be honored

0.10.26.0 (2014-02-28)

  • Switch to 0.10.26

0.10.24.0 (2013-12-26)

  • Switch to 0.10.24

0.10.22.1 (2013-11-23)

  • Switch to 0.10.22

  • scripts option is no longer required

0.10.21.1 (2013-11-08)

  • Switch to 0.10.21

  • Allow dev version

  • PEP8

0.10.20.1 (2013-10-14)

  • Switch to 0.10.20

  • py3 compat

0.10.18.2 (2013-09-13)

  • Fixes a failure installing npms when the buildout path contains spaces

0.10.18.1

  • Update node version

  • Allow to use download cache

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]

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gp.recipe.node-0.12.3.2.zip (13.0 kB view details)

Uploaded Source

File details

Details for the file gp.recipe.node-0.12.3.2.zip.

File metadata

File hashes

Hashes for gp.recipe.node-0.12.3.2.zip
Algorithm Hash digest
SHA256 d6e23b099089b85d880477b6e80a69eb5c3a56e84b821357482e2c0022552e22
MD5 e7614792036e9221094e9c6a03c30759
BLAKE2b-256 a5dc67361a321a85fab2024136a1d14e672d4b8bda047e2c6e55961a2ed7fda6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page