##// END OF EJS Templates
migrate from make to fabric
Matthias BUSSONNIER -
Show More
@@ -0,0 +1,21 b''
1 """ fabfile to prepare the notebook """
2
3 from fabric.api import local,lcd
4 from fabric.utils import abort
5 import os
6
7 static_dir = 'static'
8 components_dir = os.path.join(static_dir,'components')
9
10 def test_component(name):
11 if not os.path.exists(os.path.join(components_dir,name)):
12 abort('cannot continue without component {}.'.format(name))
13
14
15 def css():
16 """generate the css from less files"""
17 test_component('bootstrap')
18 test_component('less.js')
19 with lcd(static_dir):
20 local('lessc -x less/style.less css/style.min.css')
21
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now