rnbuilder 0.5.27 → 0.5.28
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 +7 -7
- package/lib/commands/build.js +0 -1
- package/lib/utils/env.js +3 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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.
|
|
23
|
+
rnbuilder/0.5.28 darwin-arm64 node-v16.19.0
|
|
24
24
|
$ rnbuilder --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ rnbuilder COMMAND
|
|
@@ -60,7 +60,7 @@ EXAMPLE
|
|
|
60
60
|
hello world from ./src/build.ts!
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
_See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.
|
|
63
|
+
_See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.28/src/commands/build.ts)_
|
|
64
64
|
|
|
65
65
|
## `rnbuilder codepush [BUILD]`
|
|
66
66
|
|
|
@@ -79,7 +79,7 @@ EXAMPLE
|
|
|
79
79
|
Push changes to existing apps ./src/firebase-sync-udids.ts!
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
_See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.
|
|
82
|
+
_See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.28/src/commands/codepush.ts)_
|
|
83
83
|
|
|
84
84
|
## `rnbuilder help [COMMAND]`
|
|
85
85
|
|
|
@@ -111,7 +111,7 @@ EXAMPLE
|
|
|
111
111
|
initialize environment for first run from ./src/initialize.ts!
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
_See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.
|
|
114
|
+
_See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.28/src/commands/initialize.ts)_
|
|
115
115
|
|
|
116
116
|
## `rnbuilder match-nuke [BUILD]`
|
|
117
117
|
|
|
@@ -130,7 +130,7 @@ EXAMPLE
|
|
|
130
130
|
Nuke certificates ./src/match-nuke.ts!
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
-
_See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.
|
|
133
|
+
_See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.28/src/commands/match-nuke.ts)_
|
|
134
134
|
|
|
135
135
|
## `rnbuilder setup [SETUP]`
|
|
136
136
|
|
|
@@ -148,7 +148,7 @@ EXAMPLE
|
|
|
148
148
|
hello world from ./src/setup.ts!
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
-
_See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.
|
|
151
|
+
_See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.28/src/commands/setup.ts)_
|
|
152
152
|
|
|
153
153
|
## `rnbuilder sync-udids [BUILD]`
|
|
154
154
|
|
|
@@ -167,5 +167,5 @@ EXAMPLE
|
|
|
167
167
|
Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
-
_See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.
|
|
170
|
+
_See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.5.28/src/commands/sync-udids.ts)_
|
|
171
171
|
<!-- commandsstop -->
|
package/lib/commands/build.js
CHANGED
|
@@ -197,7 +197,6 @@ class Build extends command_1.Command {
|
|
|
197
197
|
const { client, target } = params, otherParams = tslib_1.__rest(params, ["client", "target"]);
|
|
198
198
|
const jsonFile = this.getJsonFile(otherParams.env);
|
|
199
199
|
const parameters = common_1.buildKeyValuePairs(Object.assign(Object.assign({}, otherParams), { json_file: jsonFile }));
|
|
200
|
-
console.log({ ignore_git_reset: flags.ignore_git_reset });
|
|
201
200
|
if (!flags.ignore_git_reset) {
|
|
202
201
|
shell.exec(`git reset --hard && git checkout ${params.branch} && git pull`);
|
|
203
202
|
shell.cd('fastlane');
|
package/lib/utils/env.js
CHANGED
|
@@ -48,7 +48,8 @@ exports.saveEnvValues = (newValues, destFilePath) => {
|
|
|
48
48
|
* @param {string} value Value to update/insert
|
|
49
49
|
*/
|
|
50
50
|
exports.setEnvValue = (key, value, envVars) => {
|
|
51
|
-
envVars[key] = Object.assign(Object.assign({}, envVars[key]), {
|
|
51
|
+
envVars[key] = Object.assign(Object.assign({}, envVars[key]), { key,
|
|
52
|
+
value });
|
|
52
53
|
};
|
|
53
54
|
exports.updateServiceDomain = (envVars, domain) => {
|
|
54
55
|
const result = {};
|
|
@@ -56,7 +57,7 @@ exports.updateServiceDomain = (envVars, domain) => {
|
|
|
56
57
|
var _a;
|
|
57
58
|
let data = envVars[key];
|
|
58
59
|
if ((_a = data.value) === null || _a === void 0 ? void 0 : _a.includes('[domain]')) {
|
|
59
|
-
data = Object.assign(Object.assign({}, data), { value: data.value.replace('[domain]', domain) });
|
|
60
|
+
data = Object.assign(Object.assign({}, data), { key, value: data.value.replace('[domain]', domain) });
|
|
60
61
|
}
|
|
61
62
|
result[key] = data;
|
|
62
63
|
});
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.5.
|
|
1
|
+
{"version":"0.5.28","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"}]},"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"}]}}}
|