rnbuilder 0.5.29 → 0.5.30

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.5.29 darwin-arm64 node-v16.19.0
23
+ rnbuilder/0.5.30 darwin-arm64 node-v16.19.0
24
24
  $ rnbuilder --help [COMMAND]
25
25
  USAGE
26
26
  $ rnbuilder COMMAND
@@ -53,6 +53,7 @@ OPTIONS
53
53
  -g, --ignore_git_reset Ignore git reset when building
54
54
  -h, --help show CLI help
55
55
  -i, --installr=installr If enabled, the build will be uploaded to installR
56
+ -s, --ignore_cleanup Ignore cleanup when building
56
57
  -t, --target=android|ios Set the build target: android, ios or both
57
58
  -v, --version=version Set the version number for this build
58
59
 
@@ -61,7 +62,7 @@ EXAMPLE
61
62
  hello world from ./src/build.ts!
62
63
  ```
63
64
 
64
- _See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.29/src/commands/build.ts)_
65
+ _See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.30/src/commands/build.ts)_
65
66
 
66
67
  ## `rnbuilder codepush [BUILD]`
67
68
 
@@ -80,7 +81,7 @@ EXAMPLE
80
81
  Push changes to existing apps ./src/firebase-sync-udids.ts!
81
82
  ```
82
83
 
83
- _See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.29/src/commands/codepush.ts)_
84
+ _See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.30/src/commands/codepush.ts)_
84
85
 
85
86
  ## `rnbuilder help [COMMAND]`
86
87
 
@@ -112,7 +113,7 @@ EXAMPLE
112
113
  initialize environment for first run from ./src/initialize.ts!
113
114
  ```
114
115
 
115
- _See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.29/src/commands/initialize.ts)_
116
+ _See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.30/src/commands/initialize.ts)_
116
117
 
117
118
  ## `rnbuilder match-nuke [BUILD]`
118
119
 
@@ -131,7 +132,7 @@ EXAMPLE
131
132
  Nuke certificates ./src/match-nuke.ts!
132
133
  ```
133
134
 
134
- _See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.29/src/commands/match-nuke.ts)_
135
+ _See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.30/src/commands/match-nuke.ts)_
135
136
 
136
137
  ## `rnbuilder onesignal [BUILD]`
137
138
 
@@ -150,7 +151,7 @@ EXAMPLE
150
151
  Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!
151
152
  ```
152
153
 
153
- _See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.29/src/commands/onesignal.ts)_
154
+ _See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.30/src/commands/onesignal.ts)_
154
155
 
155
156
  ## `rnbuilder setup [SETUP]`
156
157
 
@@ -168,7 +169,7 @@ EXAMPLE
168
169
  hello world from ./src/setup.ts!
169
170
  ```
170
171
 
171
- _See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.29/src/commands/setup.ts)_
172
+ _See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.30/src/commands/setup.ts)_
172
173
 
173
174
  ## `rnbuilder sync-udids [BUILD]`
174
175
 
@@ -187,5 +188,5 @@ EXAMPLE
187
188
  Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!
188
189
  ```
189
190
 
190
- _See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.29/src/commands/sync-udids.ts)_
191
+ _See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.30/src/commands/sync-udids.ts)_
191
192
  <!-- commandsstop -->
@@ -11,6 +11,7 @@ export default class Build extends Command {
11
11
  version: flags.IOptionFlag<string | undefined>;
12
12
  installr: flags.IOptionFlag<string | undefined>;
13
13
  ignore_git_reset: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
14
+ ignore_cleanup: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
14
15
  };
15
16
  static args: {
16
17
  name: string;
@@ -206,17 +206,19 @@ class Build extends command_1.Command {
206
206
  shell.exec('bundle update cocoapods');
207
207
  shell.cd('../');
208
208
  }
209
- shell.exec('yarn install');
210
209
  // Clean fastlane builds
211
210
  shell.exec('rm -rf fastlane/builds');
212
- // Clean android if any
213
- if (target.includes('android')) {
214
- shell.cd('./android');
215
- shell.exec('./gradlew clean');
216
- shell.cd('../');
217
- }
218
- if (target.includes('ios')) {
219
- shell.exec('npx pod-install');
211
+ if (!flags.ignore_cleanup) {
212
+ shell.exec('yarn install');
213
+ // Clean android if any
214
+ if (target.includes('android')) {
215
+ shell.cd('./android');
216
+ shell.exec('./gradlew clean');
217
+ shell.cd('../');
218
+ }
219
+ if (target.includes('ios')) {
220
+ shell.exec('npx pod-install');
221
+ }
220
222
  }
221
223
  if (client) {
222
224
  client.forEach((c) => {
@@ -272,5 +274,9 @@ Build.flags = {
272
274
  char: 'g',
273
275
  description: 'Ignore git reset when building',
274
276
  }),
277
+ ignore_cleanup: command_1.flags.boolean({
278
+ char: 's',
279
+ description: 'Ignore cleanup when building',
280
+ }),
275
281
  };
276
282
  Build.args = [{ name: 'build' }];
@@ -1 +1 @@
1
- {"version":"0.5.29","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}},"args":[{"name":"build"}]},"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"}]},"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-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"}},"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"}]},"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.5.30","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"}]},"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"}]},"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-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"}},"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"}]},"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.5.29",
4
+ "version": "0.5.30",
5
5
  "author": "Tuan Luong @r0b0t3d",
6
6
  "bin": {
7
7
  "rnbuilder": "./bin/run"