fix: clean command (#815)

* fix clean command
* added unit tests for the getArgs clean
* Cleaned up ProjectBuilder.getArgs for readability
This commit is contained in:
Norman Breau
2019-09-07 01:54:33 -03:00
committed by エリス
parent c93e3e9f6f
commit 1b11206174
2 changed files with 15 additions and 2 deletions
+1 -2
View File
@@ -45,8 +45,8 @@ class ProjectBuilder {
getArgs (cmd, opts) {
let args;
let buildCmd = cmd;
if (opts.packageType === PackageType.BUNDLE) {
let buildCmd;
if (cmd === 'release') {
buildCmd = ':app:bundleRelease';
} else if (cmd === 'debug') {
@@ -55,7 +55,6 @@ class ProjectBuilder {
args = [buildCmd, '-b', path.join(this.root, 'build.gradle')];
} else {
let buildCmd;
if (cmd === 'release') {
buildCmd = 'cdvBuildRelease';
} else if (cmd === 'debug') {