Commit e2e69cd6 authored by Jérome Perrin's avatar Jérome Perrin

DREAM: integrate grunt in slapos version

It is probably better to stop using grunt
parent 626214a8
...@@ -3,6 +3,7 @@ parts = ...@@ -3,6 +3,7 @@ parts =
dream_simulation dream_simulation
dream_platform dream_platform
dream_test_suite dream_test_suite
grunt_watch
publish-connection-parameter publish-connection-parameter
eggs-directory = ${buildout:eggs-directory} eggs-directory = ${buildout:eggs-directory}
...@@ -28,6 +29,11 @@ command-line = ${buildout:bin-directory}/dream_platform --host $${dream_platform ...@@ -28,6 +29,11 @@ command-line = ${buildout:bin-directory}/dream_platform --host $${dream_platform
wrapper-path = $${directory:service}/dream_platform wrapper-path = $${directory:service}/dream_platform
parameters-extra = true parameters-extra = true
[grunt_watch]
recipe = slapos.cookbook:wrapper
command-line = bash -c 'cd ${dream-repository.git:location}; PATH=${nodejs:location}/bin/:$PATH ${dream-repository.git:location}/node_modules/grunt-cli/bin/grunt watch -f > $${directory:log}/grunt.log'
wrapper-path = $${directory:service}/dream_grunt_watch
# CLI # CLI
[dream_simulation] [dream_simulation]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
......
...@@ -2,12 +2,14 @@ ...@@ -2,12 +2,14 @@
versions = versions versions = versions
extends = extends =
../../stack/slapos.cfg ../../stack/slapos.cfg
../../stack/nodejs.cfg
../../component/manpy/buildout.cfg ../../component/manpy/buildout.cfg
parts = parts =
slapos-cookbook-develop slapos-cookbook-develop
slapos-cookbook slapos-cookbook
manpy manpy
dream_testrunner dream_testrunner
npm_install
instance instance
[instance] [instance]
...@@ -25,6 +27,12 @@ script = dream_testrunner ...@@ -25,6 +27,12 @@ script = dream_testrunner
initialization = initialization =
${manpy:initialization} ${manpy:initialization}
[npm_install]
recipe = plone.recipe.command
stop-on-error = true
command = cd ${dream-repository.git:location} && PATH=${git:location}/bin/:$PATH ${nodejs:location}/bin/npm install .
update_command = ${:command}
[versions] [versions]
rpy2 = 2.4.0 rpy2 = 2.4.0
pydot = 1.0.28 pydot = 1.0.28
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment