Skip to content

Commit

Permalink
Merge pull request ipython#3144 from minrk/bower
Browse files Browse the repository at this point in the history
minor bower tweaks
  • Loading branch information
ellisonbg committed Apr 13, 2013
2 parents 9311f6f + 0c2b7cc commit 288b632
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ docs/man/*.gz
docs/source/api/generated
docs/gh-pages
IPython/frontend/html/notebook/static/mathjax
IPython/frontend/html/notebook/static/components
*.py[co]
__pycache__
build
Expand Down
10 changes: 7 additions & 3 deletions IPython/frontend/html/notebook/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@

def test_component(name):
if not os.path.exists(os.path.join(components_dir,name)):
abort('cannot continue without component {}.'.format(name))
components()

def components():
"""install components with bower"""
with lcd(static_dir):
local('bower install')

def css(minify=True):
"""generate the css from less files"""
test_component('bootstrap')
test_component('less.js')
if minify not in ['True','False',True,False]:
abort('need to get Boolean')
if minify not in ['True', 'False', True, False]:
abort('minify must be Boolean')
minify = (minify in ['True',True])

min_flag= '-x' if minify is True else ''
Expand Down

0 comments on commit 288b632

Please sign in to comment.