##// END OF EJS Templates
only autosave when dirty
only autosave when dirty

File last commit:

r10440:77d92864
r10506:7a392f61
Show More
fabfile.py
25 lines | 675 B | text/x-python | PythonLexer
Matthias BUSSONNIER
migrate from make to fabric
r9299 """ fabfile to prepare the notebook """
from fabric.api import local,lcd
from fabric.utils import abort
import os
static_dir = 'static'
components_dir = os.path.join(static_dir,'components')
Brian E. Granger
Put back the components fab function as we can still use it.
r10438 def components():
Brian E. Granger
Fixing indentation in fabfile.py.
r10440 """install components with bower"""
Brian E. Granger
Put back the components fab function as we can still use it.
r10438 with lcd(static_dir):
local('bower install')
Matthias BUSSONNIER
not minify option
r9300 def css(minify=True):
Matthias BUSSONNIER
migrate from make to fabric
r9299 """generate the css from less files"""
MinRK
add `fab components`...
r10159 if minify not in ['True', 'False', True, False]:
abort('minify must be Boolean')
Matthias BUSSONNIER
not minify option
r9300 minify = (minify in ['True',True])
min_flag= '-x' if minify is True else ''
Matthias BUSSONNIER
migrate from make to fabric
r9299 with lcd(static_dir):
Matthias BUSSONNIER
not minify option
r9300 local('lessc {min_flag} less/style.less css/style.min.css'.format(min_flag=min_flag))
Matthias BUSSONNIER
migrate from make to fabric
r9299