mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fix ember-cli commands to work with windows
This commit is contained in:
parent
61b86bf821
commit
511d69cd1c
1 changed files with 5 additions and 7 deletions
12
Gruntfile.js
12
Gruntfile.js
|
@ -19,6 +19,7 @@ var _ = require('lodash'),
|
||||||
buildDirectory = path.resolve(cwd, '.build'),
|
buildDirectory = path.resolve(cwd, '.build'),
|
||||||
distDirectory = path.resolve(cwd, '.dist'),
|
distDirectory = path.resolve(cwd, '.dist'),
|
||||||
mochaPath = path.resolve(cwd + '/node_modules/grunt-mocha-cli/node_modules/mocha/bin/mocha'),
|
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
|
// ## Build File Patterns
|
||||||
// A list of files and patterns to include when creating a release zip.
|
// 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
|
// Used to run ember-cli watch in the background
|
||||||
bgShell: {
|
bgShell: {
|
||||||
ember: {
|
ember: {
|
||||||
cmd: './node_modules/.bin/ember build --watch',
|
cmd: emberPath + ' build --watch',
|
||||||
execOpts: {
|
execOpts: {
|
||||||
cwd: path.resolve(cwd + '/core/client/')
|
cwd: path.resolve(cwd + '/core/client/')
|
||||||
},
|
},
|
||||||
|
@ -278,16 +279,13 @@ var _ = require('lodash'),
|
||||||
return 'echo Installing client dependencies... && npm install';
|
return 'echo Installing client dependencies... && npm install';
|
||||||
|
|
||||||
case 'prod':
|
case 'prod':
|
||||||
return './node_modules/.bin/ember build --environment=production --silent';
|
return emberPath + ' build --environment=production --silent';
|
||||||
|
|
||||||
case 'dev':
|
case 'dev':
|
||||||
return './node_modules/.bin/ember build --silent';
|
return emberPath + ' build --silent';
|
||||||
|
|
||||||
case 'test':
|
case 'test':
|
||||||
return './node_modules/.bin/ember test --silent';
|
return emberPath + ' test --silent';
|
||||||
|
|
||||||
default:
|
|
||||||
return './node_modules/.bin/ember build --silent';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
|
Loading…
Reference in a new issue