Direkt zum Inhalt | Direkt zur Navigation

Benutzerspezifische Werkzeuge

Sie sind hier: Startseite / Tech-Blog / Manage nodejs, grunt and bower with buildout

Manage nodejs, grunt and bower with buildout

How you can manage nodejs, grunt and bower including npm and bower dependencies with zc.buildout.

Buildout config

We can use gp.recipe.node recipe, for details see: https://pypi.python.org/pypi/gp.recipe.node

[buildout]
parts +=
    nodejs
    bower
    node_modules

[nodejs]
recipe = gp.recipe.node
version = 0.10.22
npms = grunt-cli bower less jshint csslint blueimp-tmpl uglify-js
scripts = grunt bower lessc jshint csslint tmpl.js uglifyjs

[bower]
recipe = collective.recipe.cmd
shell = /bin/bash
on_install = true
on_update = true
cmds = ./bin/bower install --config.interactive=false; echo $'\nBower modules installed.\n'

[node_modules]
recipe = collective.recipe.cmd
shell = /bin/bash
on_install = true
on_update = true
cmds = NODE_PATH="" bin/npm install .; echo $'\nNodeJS modules installed.\n'
abgelegt unter: , , , ,