Skip to content

Commit

Permalink
BW-658 #comment changes for debug option
Browse files Browse the repository at this point in the history
  • Loading branch information
piya99 committed Sep 10, 2019
1 parent 11d6d1c commit 373de34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 9 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ const commandList = {
replaceVariableInIndex(['trivia', 'trivia-admin'], args.argv.productVariant);
}
},
"run-mobile":
"mobile":
{
"command": "tns run platform --bundle environment forDevice --env.package_name=packageName --env.project=productVariant",
"command": "tns app platform --bundle environment forDevice --env.package_name=packageName --env.project=productVariant",
"description": "run android/ios app in staging/production environment",
"options": {
"productVariant": {
Expand Down Expand Up @@ -191,6 +191,13 @@ const commandList = {
"default": '1.0',
"alias": ['VN', 'vn']
},
"app": {
"demand": true,
"description": 'app e.g. --run',
"alias": ['a', 'A'],
"default": 'run',
"coerce": args => args === 'debug' ? 'debug' : 'run',
}
},
"builder": args => args.argv.platform === 'ios' && args.argv.environment.search('--env.prod') >= 0 ? args.argv.forDevice = ' --for-device' : args.argv.forDevice = '',
"preCommand": async (argv) => { await updateAppVersion(argv, false); await updatePackageJson(argv); }
Expand Down
5 changes: 3 additions & 2 deletions commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ Commands :
arguments : pv = product variant e.g. trivia
e = project environment e.g. staging

4) command: run-mobile
description: run android/ios app in staging/production environment
4) command: mobile
description: run or debug android/ios app in staging/production environment
e.g. : node cli run-mobile --pv trivia --pk io.bitwiser.trivia.dev --plt android --e staging
arguments : pv = productVarient e.g. trivia
pk = project package name defined in firebase e.g. io.bitwiser.trivia.dev
plt = Mobile platform e.g. android
e = project environment
app = run or debug app e.g run

5) command: release-mobile
description: release android app for staging/production environment
Expand Down

0 comments on commit 373de34

Please sign in to comment.