💄 Resolve apm path once

This commit is contained in:
Kevin Sawicki 2013-10-11 09:08:36 -07:00
parent 0f1c1715dd
commit aed15766fb

View File

@ -10,10 +10,11 @@ module.exports = (grunt) ->
passed = true
done = @async()
atomPath = path.resolve('atom.sh')
apmPath = path.resolve('node_modules/.bin/apm')
queue = async.queue (packagePath, callback) ->
options =
cmd: path.resolve('node_modules/.bin/apm')
cmd: apmPath
args: ['test', '-p', atomPath]
opts:
cwd: packagePath