Skip to content

Commit 64f3a2a

Browse files
authored
Merge pull request #113 from isleofcode/fix/default-output-path
Fix/default output path
2 parents 6ff7d65 + 7d92c77 commit 64f3a2a

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

docs/cli.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Build the ember and cordova project together running in the simulator or on a de
4141
+ environment (default:development)
4242
+ platform (default:ios)
4343
+ release (default: debug)
44+
+ cordova-output-path (default: ember-cordova/cordova/www)
4445

4546
#### Examples
4647
+ `ember cordova:build`
@@ -101,6 +102,7 @@ here](livereload.md).
101102
#### Available options
102103
+ platform (default:ios)
103104
+ reloadUrl (default:localhost:4200)
105+
+ cordova-output-path (default: ember-cordova/cordova/www)
104106

105107
#### Examples
106108
+ `ember cdv:serve`

lib/commands/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
{ name: 'platform', type: String, default: 'ios' },
2424
{ name: 'verbose', type: Boolean, default: false, aliases: ['v'] },
2525
{ name: 'environment', type: String, default: 'development', aliases: ['e', 'env', { 'dev': 'development' }, { 'prod': 'production' }] },
26-
{ name: 'output-path', type: 'Path', default: 'ember-cordova/cordova/www', aliases: ['op', 'out'] },
26+
{ name: 'cordova-output-path', type: 'Path', default: 'ember-cordova/cordova/www', aliases: ['op', 'out'] },
2727
{ name: 'release', type: Boolean, default: false }
2828
],
2929
/* eslint-enable max-len */
@@ -65,7 +65,7 @@ module.exports = {
6565
ui: ui,
6666
project: project,
6767
environment: options.environment,
68-
outputPath: options.outputPath
68+
outputPath: options.cordovaOutputPath
6969
});
7070

7171
cordovaBuild = new CdvBuildTask({

lib/commands/serve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
{ name: 'live-reload-base-url', type: String, aliases: ['lrbu'], description: 'Defaults to baseURL' },
4747
{ name: 'live-reload-port', type: Number, aliases: ['lrp'], description: '(Defaults to port number within [49152...65535])' },
4848
{ name: 'environment', type: String, default: 'development', aliases: ['e', 'env', { 'dev': 'development' }, { 'prod': 'production' }] },
49-
{ name: 'output-path', type: 'Path', default: 'ember-cordova/cordova/www/', aliases: ['op', 'out'] },
49+
{ name: 'cordova-output-path', type: 'Path', default: 'ember-cordova/cordova/www/', aliases: ['op', 'out'] },
5050
{ name: 'ssl', type: Boolean, default: false },
5151
{ name: 'ssl-key', type: String, default: 'ssl/server.key' },
5252
{ name: 'ssl-cert', type: String, default: 'ssl/server.crt' }
@@ -104,7 +104,7 @@ module.exports = {
104104
ui: this.ui,
105105
project: this.project,
106106
environment: options.environment,
107-
outputPath: options.outputPath
107+
outputPath: options.cordovaOutputPath
108108
});
109109

110110
cordovaBuild = new CdvBuildTask({

lib/tasks/ember-build-serve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = Task.extend({
2020
run: function(options) {
2121
var builder = new Builder({
2222
ui: this.ui,
23-
outputPath: options.outputPath,
23+
outputPath: options.cordovaOutputPath,
2424
project: this.project,
2525
environment: options.environment
2626
});

0 commit comments

Comments
 (0)