Skip to content

Commit

Permalink
update buildout for gulp. #1632
Browse files Browse the repository at this point in the history
  • Loading branch information
schakrava committed Feb 19, 2017
1 parent a478747 commit eb0131f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions base-buildout.cfg
Expand Up @@ -101,6 +101,7 @@ command = export DJANGO_SETTINGS_MODULE=settings &&
${buildout:directory}/bin/django migrate --noinput django_ztask &&
${buildout:directory}/bin/prep_db
update-command = ${db-migrate:command}
stop-on-error = true

[myvar]
nginx_websocket_port = 7999
Expand Down
23 changes: 22 additions & 1 deletion buildout.cfg
Expand Up @@ -35,6 +35,8 @@ parts =
js-libraries
js-sync
collectstatic
gulp-install
gulp-eslint
supervisor
supervisord-conf
db-migrate
Expand Down Expand Up @@ -178,4 +180,23 @@ update-command = ${delete-prod-rpm:command}

[js-libraries]
url = http://rockstor.com/downloads/jslibs-dev/lib.tgz
md5sum = af34ea774db29113de6168e8c769c612
md5sum = af34ea774db29113de6168e8c769c612

[gulp-install]
recipe = plone.recipe.command
yum_install = sudo /usr/bin/yum install --setopt=timeout=600 -y
command = if [[ ! -f /usr/bin/gulp ]]; then
${gulp-install:yum_install} npm;
npm install --global gulp-cli
fi
update-command = ${gulp-install:command}
stop-on-error = true

[gulp-eslint]
recipe = plone.recipe.command
command = cd ${buildout:directory} &&
npm install --save-dev gulp &&
npm install --save-dev gulp-eslint &&
gulp
update-command = ${gulp-eslint:command}
stop-on-error = true

0 comments on commit eb0131f

Please sign in to comment.