Skip to content

Commit a47be8e

Browse files
authored
Merge pull request #248 from christophersansone/patch-1
Do not validate platform if skipping Cordova build
2 parents 97e588e + 93376db commit a47be8e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/commands/build.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ module.exports = Command.extend({
9999
return validateRootUrl.run(projectConfig, options.force)
100100
.then(validateLocationType.prepare(projectConfig))
101101
.then(validateAllowNavigation.prepare(false))
102-
.then(validatePlatform.prepare())
102+
.then(function(result) {
103+
if (options.skipCordovaBuild !== true) {
104+
validatePlatform.run();
105+
}
106+
})
103107
.then(hook.prepare('beforeBuild', options))
104108
.then(function() {
105109
if (options.skipEmberBuild !== true) {

node-tests/unit/commands/build-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ describe('Build Command', function() {
139139
expect(tasks).to.deep.equal([
140140
'validate-root-url',
141141
'validate-allow-navigation',
142-
'validate-platform',
143142
'hook beforeBuild',
144143
'ember-build',
145144
'hook afterBuild'

0 commit comments

Comments
 (0)