-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyeoman.cfg
49 lines (42 loc) · 1.19 KB
/
yeoman.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[buildout]
parts =
node_modules
grunt_script
bower_script
yo_script
#
# The following is optional. Add to buildout.cfg instead.
# bower_modules
[node_modules]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds = NODE_PATH="" npm install .; echo "\nNodeJS server side modules updated.\n"
[bower_modules]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds = NODE_PATH=${buildout:directory}/node_modules ${buildout:directory}/node_modules/.bin/bower install; echo "\nBower client-side modules updated.\n"
[node_script]
recipe = collective.recipe.template
input = inline:
#! /bin/sh
export NODE_PATH=${buildout:directory}/node_modules
export PATH=$NODE_PATH/.bin:$PATH
${buildout:directory}/node_modules/.bin/${:script_name} $@
output = ${buildout:bin-directory}/${:script_name}
mode = 755
#
# Needs to be specified:
# script_name = ...
[grunt_script]
<= node_script
script_name = grunt
[bower_script]
<= node_script
script_name = bower
[yo_script]
<= node_script
script_name = yo
#http://greenfinity.hu/en/blog/installing-javascript-from-zc-buildout
#https://raw.github.com/reebalazs/buildout.javascript.yeoman/master/yeoman.cfg