Skip to content

Instantly share code, notes, and snippets.

@coopernurse
Created September 24, 2010 14:13
Show Gist options
  • Save coopernurse/595441 to your computer and use it in GitHub Desktop.
Save coopernurse/595441 to your computer and use it in GitHub Desktop.
#
# node.js project fabfile
#
# dependencies:
# fabric (apt-get install fabric)
# node-jslint (http://github.com/reid/node-jslint)
# expresso (or replace with whatever node.js test tool you're using)
#
from fabric.api import local
import os, os.path
def test():
local('expresso -I lib test/*', capture=False)
def jslint():
for root, subFolders, files in os.walk("."):
for file in files:
if file.endswith(".js"):
filename = os.path.join(root,file)
print filename
local('jslint %s' % filename, capture=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment