actually make npm task runnable.

This commit is contained in:
Ivan Malison 2014-10-22 20:59:51 -07:00
parent 699d914c36
commit 21b30c6a58

View File

@ -23,12 +23,13 @@ def setup(ctx):
linux.all(ctx) linux.all(ctx)
dotfiles(ctx, 'f') dotfiles(ctx, 'f')
install_python_libraries(ctx) install_python_libraries(ctx)
install_npm_libraries(ctx)
change_shell(ctx) change_shell(ctx)
@ctask @ctask
def dotfiles(ctx, flags): def dotfiles(ctx, flags=''):
ctx.run('hash dotfiles || sudo pip install dotfiles') ctx.run('hash dotfiles || sudo pip install dotfiles')
return ctx.run('dotfiles -s{1} -R {0}'.format(DOTFILES_DIRECTORY, flags)) return ctx.run('dotfiles -s{1} -R {0}'.format(DOTFILES_DIRECTORY, flags))
@ -61,4 +62,5 @@ ns.add_task(change_shell)
ns.add_task(dotfiles) ns.add_task(dotfiles)
ns.add_task(setup) ns.add_task(setup)
ns.add_task(install_python_libraries) ns.add_task(install_python_libraries)
ns.add_task(install_npm_libraries)
ns.add_task(vimstall) ns.add_task(vimstall)