##// END OF EJS Templates
Merge pull request #3267 from minrk/forreals...
Merge pull request #3267 from minrk/forreals add missing return

File last commit:

r10526:65ac40a9
r10548:f6499360 merge
Show More
fabfile.py
21 lines | 621 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'
MinRK
remove unused components...
r10523 components_dir = os.path.join(static_dir, 'components')
Matthias BUSSONNIER
migrate from make to fabric
r9299
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 ''
MinRK
use less from components
r10526 lessc = os.path.join('components', 'less.js', 'bin', 'lessc')
Matthias BUSSONNIER
migrate from make to fabric
r9299 with lcd(static_dir):
MinRK
use less from components
r10526 local('{lessc} {min_flag} less/style.less css/style.min.css'.format(**locals()))
Matthias BUSSONNIER
migrate from make to fabric
r9299