Skip to content

Commit

Permalink
Add parameter to just add the platform and do not run the build
Browse files Browse the repository at this point in the history
  • Loading branch information
UeberhammDesign authored and ueberhammDesign committed May 4, 2017
1 parent cef1373 commit 8eefe6b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ module.exports = function (options) {
}
})
.then(function () {
// Build the platform
return cordova.build({platforms: ['ios']});
if(options.justAdd) {
// Build the platform
return cordova.build({platforms: ['ios']});
}
})
.then(function () {
cb();
Expand Down
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ Type: `string`

iOS platform version.

#### justAdd

Type: `boolean`<br>
Default: `false`

If the value is `true`, this will just add the platform to the project and do not start the build.

## Related

Expand Down

0 comments on commit 8eefe6b

Please sign in to comment.