Commit 32022863 authored by Pietro Albini's avatar Pietro Albini

Use local gulp instead of the global one

parent d580e08f
......@@ -106,17 +106,19 @@ def clean():
@invoke.task
def assets(watch=False):
"""Build the assets"""
node_bin = "%s/node_modules/.bin" % BASE
# Be sure to have all the dependencies installed
if not os.path.exists("%s/node_modules" % BASE):
if not os.path.exists(node_bin):
invoke.run("npm install", pty=True)
if watch:
try:
invoke.run("gulp watch", pty=True)
invoke.run("%s/gulp watch" % node_bin, pty=True)
except KeyboardInterrupt:
pass
else:
invoke.run("gulp", pty=True)
invoke.run("%s/gulp" % node_bin, pty=True)
@invoke.task(pre=[assets])
......
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