Show More
@@ -9,15 +9,19 b" components_dir = os.path.join(static_dir,'components')" | |||
|
9 | 9 | |
|
10 | 10 | def test_component(name): |
|
11 | 11 | if not os.path.exists(os.path.join(components_dir,name)): |
|
12 | abort('cannot continue without component {}.'.format(name)) | |
|
12 | components() | |
|
13 | 13 | |
|
14 | def components(): | |
|
15 | """install components with bower""" | |
|
16 | with lcd(static_dir): | |
|
17 | local('bower install') | |
|
14 | 18 | |
|
15 | 19 | def css(minify=True): |
|
16 | 20 | """generate the css from less files""" |
|
17 | 21 | test_component('bootstrap') |
|
18 | 22 | test_component('less.js') |
|
19 | if minify not in ['True','False',True,False]: | |
|
20 |
abort(' |
|
|
23 | if minify not in ['True', 'False', True, False]: | |
|
24 | abort('minify must be Boolean') | |
|
21 | 25 | minify = (minify in ['True',True]) |
|
22 | 26 | |
|
23 | 27 | min_flag= '-x' if minify is True else '' |
General Comments 0
You need to be logged in to leave comments.
Login now