From 511d69cd1c256be80f11699eb48c2e51f137111d Mon Sep 17 00:00:00 2001 From: cobbspur Date: Thu, 19 Mar 2015 17:00:13 +0000 Subject: [PATCH] Fix ember-cli commands to work with windows --- Gruntfile.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f48a4c9b80..9a4479277a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -19,6 +19,7 @@ var _ = require('lodash'), buildDirectory = path.resolve(cwd, '.build'), distDirectory = path.resolve(cwd, '.dist'), mochaPath = path.resolve(cwd + '/node_modules/grunt-mocha-cli/node_modules/mocha/bin/mocha'), + emberPath = path.resolve(cwd + '/core/client/node_modules/.bin/ember'), // ## Build File Patterns // A list of files and patterns to include when creating a release zip. @@ -255,7 +256,7 @@ var _ = require('lodash'), // Used to run ember-cli watch in the background bgShell: { ember: { - cmd: './node_modules/.bin/ember build --watch', + cmd: emberPath + ' build --watch', execOpts: { cwd: path.resolve(cwd + '/core/client/') }, @@ -278,16 +279,13 @@ var _ = require('lodash'), return 'echo Installing client dependencies... && npm install'; case 'prod': - return './node_modules/.bin/ember build --environment=production --silent'; + return emberPath + ' build --environment=production --silent'; case 'dev': - return './node_modules/.bin/ember build --silent'; + return emberPath + ' build --silent'; case 'test': - return './node_modules/.bin/ember test --silent'; - - default: - return './node_modules/.bin/ember build --silent'; + return emberPath + ' test --silent'; } }, options: {