rnbuilder 0.6.18 → 0.6.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g rnbuilder
20
20
  $ rnbuilder COMMAND
21
21
  running command...
22
22
  $ rnbuilder (-v|--version|version)
23
- rnbuilder/0.6.18 darwin-arm64 node-v18.18.0
23
+ rnbuilder/0.6.20 darwin-arm64 node-v18.18.0
24
24
  $ rnbuilder --help [COMMAND]
25
25
  USAGE
26
26
  $ rnbuilder COMMAND
@@ -51,22 +51,26 @@ USAGE
51
51
  $ rnbuilder build [BUILD]
52
52
 
53
53
  OPTIONS
54
- -b, --branch=branch Set the source branch used to build the app
55
- -c, --client=client Set client that you want to build app
56
- -e, --env=staging|adhoc|prod Set the environment: prod, adhoc, staging
57
- -g, --ignore_git_reset Ignore git reset when building
58
- -h, --help show CLI help
59
- -i, --installr=installr If enabled, the build will be uploaded to installR
60
- -s, --ignore_cleanup Ignore cleanup when building
61
- -t, --target=android|ios Set the build target: android, ios or both
62
- -v, --version=version Set the version number for this build
54
+ -b, --branch=branch Set the source branch used to build the app
55
+ -c, --client=client Set client that you want to build app
56
+ -d, --distribute=distribute Specify where to distribute app
57
+ -e, --env=staging|adhoc|prod Set the environment: prod, adhoc, staging
58
+ -f, --firebase If enabled, the build will be uploaded to firebase
59
+ -g, --ignore_git_reset Ignore git reset when building
60
+ -h, --help show CLI help
61
+ -i, --installr=installr If enabled, the build will be uploaded to installR
62
+ -s, --ignore_cleanup Ignore cleanup when building
63
+ -t, --target=android|ios Set the build target: android, ios or both
64
+ -t, --testersIos=testersIos Tester ids for iOS distribution
65
+ -u, --testersAndroid=testersAndroid Tester ids for Android distribution
66
+ -v, --version=version Set the version number for this build
63
67
 
64
68
  EXAMPLE
65
69
  $ rnbuilder build
66
70
  hello world from ./src/build.ts!
67
71
  ```
68
72
 
69
- _See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/build.ts)_
73
+ _See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/build.ts)_
70
74
 
71
75
  ## `rnbuilder check-version [MATCH-CHECK]`
72
76
 
@@ -85,7 +89,7 @@ EXAMPLE
85
89
  Nuke certificates ./src/match-check.ts!
86
90
  ```
87
91
 
88
- _See code: [src/commands/check-version.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/check-version.ts)_
92
+ _See code: [src/commands/check-version.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/check-version.ts)_
89
93
 
90
94
  ## `rnbuilder codepush [BUILD]`
91
95
 
@@ -104,7 +108,7 @@ EXAMPLE
104
108
  Push changes to existing apps ./src/firebase-sync-udids.ts!
105
109
  ```
106
110
 
107
- _See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/codepush.ts)_
111
+ _See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/codepush.ts)_
108
112
 
109
113
  ## `rnbuilder google-key [MATCH-CHECK]`
110
114
 
@@ -123,7 +127,7 @@ EXAMPLE
123
127
  Nuke certificates ./src/match-check.ts!
124
128
  ```
125
129
 
126
- _See code: [src/commands/google-key.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/google-key.ts)_
130
+ _See code: [src/commands/google-key.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/google-key.ts)_
127
131
 
128
132
  ## `rnbuilder help [COMMAND]`
129
133
 
@@ -155,7 +159,7 @@ EXAMPLE
155
159
  initialize environment for first run from ./src/initialize.ts!
156
160
  ```
157
161
 
158
- _See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/initialize.ts)_
162
+ _See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/initialize.ts)_
159
163
 
160
164
  ## `rnbuilder match-check [MATCH-CHECK]`
161
165
 
@@ -174,7 +178,7 @@ EXAMPLE
174
178
  Nuke certificates ./src/match-check.ts!
175
179
  ```
176
180
 
177
- _See code: [src/commands/match-check.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/match-check.ts)_
181
+ _See code: [src/commands/match-check.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/match-check.ts)_
178
182
 
179
183
  ## `rnbuilder match-nuke [BUILD]`
180
184
 
@@ -193,7 +197,7 @@ EXAMPLE
193
197
  Nuke certificates ./src/match-nuke.ts!
194
198
  ```
195
199
 
196
- _See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/match-nuke.ts)_
200
+ _See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/match-nuke.ts)_
197
201
 
198
202
  ## `rnbuilder onesignal [BUILD]`
199
203
 
@@ -215,7 +219,7 @@ EXAMPLE
215
219
  Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!
216
220
  ```
217
221
 
218
- _See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/onesignal.ts)_
222
+ _See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/onesignal.ts)_
219
223
 
220
224
  ## `rnbuilder setup [SETUP]`
221
225
 
@@ -233,7 +237,7 @@ EXAMPLE
233
237
  hello world from ./src/setup.ts!
234
238
  ```
235
239
 
236
- _See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/setup.ts)_
240
+ _See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/setup.ts)_
237
241
 
238
242
  ## `rnbuilder submit-review [SUBMIT-REVIEW]`
239
243
 
@@ -252,7 +256,7 @@ EXAMPLE
252
256
  Push changes to existing apps ./src/firebase-sync-udids.ts!
253
257
  ```
254
258
 
255
- _See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/submit-review.ts)_
259
+ _See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/submit-review.ts)_
256
260
 
257
261
  ## `rnbuilder sync-udids [BUILD]`
258
262
 
@@ -271,5 +275,5 @@ EXAMPLE
271
275
  Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!
272
276
  ```
273
277
 
274
- _See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.18/src/commands/sync-udids.ts)_
278
+ _See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.20/src/commands/sync-udids.ts)_
275
279
  <!-- commandsstop -->
@@ -10,6 +10,10 @@ export default class Build extends Command {
10
10
  branch: flags.IOptionFlag<string | undefined>;
11
11
  version: flags.IOptionFlag<string | undefined>;
12
12
  installr: flags.IOptionFlag<string | undefined>;
13
+ distribute: flags.IOptionFlag<string | undefined>;
14
+ firebase: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
15
+ testersIos: flags.IOptionFlag<string | undefined>;
16
+ testersAndroid: flags.IOptionFlag<string | undefined>;
13
17
  ignore_git_reset: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
14
18
  ignore_cleanup: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
15
19
  };
@@ -109,12 +109,14 @@ class Build extends command_1.Command {
109
109
  }
110
110
  const postQuestions = [];
111
111
  if (result.env !== 'prod') {
112
- postQuestions.push({
113
- type: 'confirm',
114
- name: 'firebase',
115
- message: 'Would you like to upload to firebase?',
116
- default: true,
117
- });
112
+ if (!flags.firebase) {
113
+ postQuestions.push({
114
+ type: 'confirm',
115
+ name: 'firebase',
116
+ message: 'Would you like to upload to firebase?',
117
+ default: true,
118
+ });
119
+ }
118
120
  if (process.env.INSTALLR_TOKEN) {
119
121
  postQuestions.push({
120
122
  type: 'confirm',
@@ -142,7 +144,8 @@ class Build extends command_1.Command {
142
144
  const answers = await inquirer.prompt(postQuestions);
143
145
  result = Object.assign(Object.assign({}, result), answers);
144
146
  }
145
- if (result.installr || result.firebase) {
147
+ if (result.installr ||
148
+ (result.firebase && !flags.testersIos && !flags.testersAndroid)) {
146
149
  const testersAnswer = await inquirer.prompt([
147
150
  {
148
151
  type: 'expand',
@@ -295,6 +298,22 @@ Build.flags = {
295
298
  char: 'i',
296
299
  description: 'If enabled, the build will be uploaded to installR',
297
300
  }),
301
+ distribute: command_1.flags.string({
302
+ char: 'd',
303
+ description: 'Specify where to distribute app',
304
+ }),
305
+ firebase: command_1.flags.boolean({
306
+ char: 'f',
307
+ description: 'If enabled, the build will be uploaded to firebase',
308
+ }),
309
+ testersIos: command_1.flags.string({
310
+ char: 't',
311
+ description: 'Tester ids for iOS distribution',
312
+ }),
313
+ testersAndroid: command_1.flags.string({
314
+ char: 'u',
315
+ description: 'Tester ids for Android distribution',
316
+ }),
298
317
  ignore_git_reset: command_1.flags.boolean({
299
318
  char: 'g',
300
319
  description: 'Ignore git reset when building',
@@ -1 +1 @@
1
- {"version":"0.6.18","commands":{"build":{"id":"build","description":"Build react native apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/build.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Set client that you want to build app"},"target":{"name":"target","type":"option","char":"t","description":"Set the build target: android, ios or both","options":["android","ios"]},"env":{"name":"env","type":"option","char":"e","description":"Set the environment: prod, adhoc, staging","options":["staging","adhoc","prod"]},"branch":{"name":"branch","type":"option","char":"b","description":"Set the source branch used to build the app"},"version":{"name":"version","type":"option","char":"v","description":"Set the version number for this build"},"installr":{"name":"installr","type":"option","char":"i","description":"If enabled, the build will be uploaded to installR"},"ignore_git_reset":{"name":"ignore_git_reset","type":"boolean","char":"g","description":"Ignore git reset when building","allowNo":false},"ignore_cleanup":{"name":"ignore_cleanup","type":"boolean","char":"s","description":"Ignore cleanup when building","allowNo":false}},"args":[{"name":"build"}]},"check-version":{"id":"check-version","description":"Check live versions","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder check-version\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"codepush":{"id":"codepush","description":"Push changes to existing apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder codepush\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"build"}]},"google-key":{"id":"google-key","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"initialize":{"id":"initialize","description":"Initialize the environment for first run","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder initialize\ninitialize environment for first run from ./src/initialize.ts!\n"],"flags":{},"args":[]},"match-check":{"id":"match-check","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"match-nuke":{"id":"match-nuke","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-nuke\n Nuke certificates ./src/match-nuke.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]},"onesignal":{"id":"onesignal","description":"Create and upload push cerfiticate to One Signal","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder onesignal\n Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"},"auth_token":{"name":"auth_token","type":"option","description":"Auth token for OneSignal"},"android_token":{"name":"android_token","type":"option"},"android_gcm_sender_id":{"name":"android_gcm_sender_id","type":"option"}},"args":[{"name":"build"}]},"setup":{"id":"setup","description":"Setup new client","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/setup.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"setup"}]},"submit-review":{"id":"submit-review","description":"Submit ios for review","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder submit-review\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"submit-review"}]},"sync-udids":{"id":"sync-udids","description":"Sync device UDIDs from firebase","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder sync-udids\n Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]}}}
1
+ {"version":"0.6.20","commands":{"build":{"id":"build","description":"Build react native apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/build.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Set client that you want to build app"},"target":{"name":"target","type":"option","char":"t","description":"Set the build target: android, ios or both","options":["android","ios"]},"env":{"name":"env","type":"option","char":"e","description":"Set the environment: prod, adhoc, staging","options":["staging","adhoc","prod"]},"branch":{"name":"branch","type":"option","char":"b","description":"Set the source branch used to build the app"},"version":{"name":"version","type":"option","char":"v","description":"Set the version number for this build"},"installr":{"name":"installr","type":"option","char":"i","description":"If enabled, the build will be uploaded to installR"},"distribute":{"name":"distribute","type":"option","char":"d","description":"Specify where to distribute app"},"firebase":{"name":"firebase","type":"boolean","char":"f","description":"If enabled, the build will be uploaded to firebase","allowNo":false},"testersIos":{"name":"testersIos","type":"option","char":"t","description":"Tester ids for iOS distribution"},"testersAndroid":{"name":"testersAndroid","type":"option","char":"u","description":"Tester ids for Android distribution"},"ignore_git_reset":{"name":"ignore_git_reset","type":"boolean","char":"g","description":"Ignore git reset when building","allowNo":false},"ignore_cleanup":{"name":"ignore_cleanup","type":"boolean","char":"s","description":"Ignore cleanup when building","allowNo":false}},"args":[{"name":"build"}]},"check-version":{"id":"check-version","description":"Check live versions","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder check-version\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"codepush":{"id":"codepush","description":"Push changes to existing apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder codepush\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"build"}]},"google-key":{"id":"google-key","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"initialize":{"id":"initialize","description":"Initialize the environment for first run","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder initialize\ninitialize environment for first run from ./src/initialize.ts!\n"],"flags":{},"args":[]},"match-check":{"id":"match-check","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"match-nuke":{"id":"match-nuke","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-nuke\n Nuke certificates ./src/match-nuke.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]},"onesignal":{"id":"onesignal","description":"Create and upload push cerfiticate to One Signal","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder onesignal\n Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"},"auth_token":{"name":"auth_token","type":"option","description":"Auth token for OneSignal"},"android_token":{"name":"android_token","type":"option"},"android_gcm_sender_id":{"name":"android_gcm_sender_id","type":"option"}},"args":[{"name":"build"}]},"setup":{"id":"setup","description":"Setup new client","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/setup.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"setup"}]},"submit-review":{"id":"submit-review","description":"Submit ios for review","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder submit-review\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"submit-review"}]},"sync-udids":{"id":"sync-udids","description":"Sync device UDIDs from firebase","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder sync-udids\n Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rnbuilder",
3
3
  "description": "React Native builder tool",
4
- "version": "0.6.18",
4
+ "version": "0.6.20",
5
5
  "author": "Tuan Luong @r0b0t3d",
6
6
  "bin": {
7
7
  "rnbuilder": "./bin/run"