Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
32022863
Commit
32022863
authored
9 years ago
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use local gulp instead of the global one
parent
d580e08f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tasks.py
tasks.py
+5
-3
No files found.
tasks.py
View file @
32022863
...
...
@@ -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
])
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment