Adds node_modules/.bin to the path for the call to uglify
authordsc <dsc@less.ly>
Wed, 9 May 2012 20:03:33 +0000 (13:03 -0700)
committerdsc <dsc@less.ly>
Wed, 9 May 2012 20:03:33 +0000 (13:03 -0700)
fabfile/bundle.py

index 81c44c8..46abdae 100644 (file)
@@ -74,7 +74,9 @@ def bundle_app():
     update_version()
     # XXX: Meh. Maybe this should become python code.
     local('cat $(coke source_list | grep -v vendor | sed "s/^/var\//") > %(app_bundle)s' % env)
-    local('%(minify_cmd)s %(app_bundle)s > %(app_bundle_min)s' % env)
+    # Run the minify command, adding npm's bin directory
+    with path('node_modules/.bin'):
+        local('%(minify_cmd)s %(app_bundle)s > %(app_bundle_min)s' % env)