lib/embork/cli.rb in embork-0.0.7 vs lib/embork/cli.rb in embork-0.0.8
- old
+ new
@@ -83,11 +83,11 @@
desc "hint", %{run jshint on the app and tests}
def hint
borkfile = Embork::Borkfile.new options[:borkfile]
Dir.chdir borkfile.project_root do
- system('node node_modules/jshint/bin/jshint app tests')
+ system('PATH=$(npm bin):$PATH jshint app tests')
end
end
desc "deps", "Install bower and node dependencies"
def deps
@@ -99,10 +99,10 @@
exit 1
end
borkfile = Embork::Borkfile.new options[:borkfile]
Dir.chdir borkfile.project_root do
system('npm install')
- system('node node_modules/bower/bin/bower install')
+ system('PATH=$(npm bin):$PATH bower install')
end
end
end