zephyr-repack-plugin 0.0.50 → 0.0.52
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 +10 -0
- package/dist/README.md +10 -0
- package/dist/lib/with-zephyr.js +5 -5
- package/dist/lib/with-zephyr.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
A React Native plugin for deploying cross-platform applications built with [React Native](https://reactnative.dev), [Rspack](https://rspack.dev) and [Re.Pack](https://re-pack.dev). This plugin enables Over-The-Air updates capabilities for federated applications and seamless deployment to Zephyr Cloud.
|
|
12
12
|
|
|
13
|
+
## Get Started
|
|
14
|
+
|
|
15
|
+
The fastest way to get started is to use `create-zephyr-apps` to generate a new React Native application with Zephyr integration and choose from React Native example:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx create-zephyr-apps@latest
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For more information, please refer to our [documentation](https://docs.zephyr-cloud.io/recipes/repack-mf) for Repack and also a comprehensive guide to work with Re.Pack [here](https://docs.zephyr-cloud.io/recipes/react-native).
|
|
22
|
+
|
|
13
23
|
## Installation
|
|
14
24
|
|
|
15
25
|
Installing the `zephyr-repack-plugin` for your cross-platform application:
|
package/dist/README.md
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
A React Native plugin for deploying cross-platform applications built with [React Native](https://reactnative.dev), [Rspack](https://rspack.dev) and [Re.Pack](https://re-pack.dev). This plugin enables Over-The-Air updates capabilities for federated applications and seamless deployment to Zephyr Cloud.
|
|
12
12
|
|
|
13
|
+
## Get Started
|
|
14
|
+
|
|
15
|
+
The fastest way to get started is to use `create-zephyr-apps` to generate a new React Native application with Zephyr integration and choose from React Native example:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx create-zephyr-apps@latest
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For more information, please refer to our [documentation](https://docs.zephyr-cloud.io/recipes/repack-mf) for Repack and also a comprehensive guide to work with Re.Pack [here](https://docs.zephyr-cloud.io/recipes/react-native).
|
|
22
|
+
|
|
13
23
|
## Installation
|
|
14
24
|
|
|
15
25
|
Installing the `zephyr-repack-plugin` for your cross-platform application:
|
package/dist/lib/with-zephyr.js
CHANGED
|
@@ -20,7 +20,7 @@ function withZephyr(zephyrPluginOptions) {
|
|
|
20
20
|
...zephyrPluginOptions,
|
|
21
21
|
target: config.platform,
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
zephyr_agent_1.ze_log.init('updatedZephyrConfig: ', updatedZephyrConfig);
|
|
24
24
|
// Return the final processed configuration
|
|
25
25
|
return _zephyr_configuration(userConfig, updatedZephyrConfig);
|
|
26
26
|
};
|
|
@@ -35,21 +35,21 @@ _zephyrOptions) {
|
|
|
35
35
|
builder: 'repack',
|
|
36
36
|
context: config.context,
|
|
37
37
|
});
|
|
38
|
-
|
|
38
|
+
zephyr_agent_1.ze_log.init('Configuring with Zephyr... \n config: ', config);
|
|
39
39
|
if (!_zephyrOptions?.target) {
|
|
40
40
|
throw new zephyr_agent_1.ZephyrError(zephyr_agent_1.ZeErrors.ERR_MISSING_PLATFORM);
|
|
41
41
|
}
|
|
42
42
|
zephyr_engine.env.target = _zephyrOptions?.target;
|
|
43
43
|
const dependency_pairs = (0, zephyr_xpack_internal_1.extractFederatedDependencyPairs)(config);
|
|
44
|
-
|
|
44
|
+
zephyr_agent_1.ze_log.init('Resolving and building towards target by zephyr_engine.env.target: ', zephyr_engine.env.target);
|
|
45
45
|
const resolved_dependency_pairs = await zephyr_engine.resolve_remote_dependencies(dependency_pairs);
|
|
46
46
|
(0, zephyr_xpack_internal_1.mutWebpackFederatedRemotesConfig)(zephyr_engine, config, resolved_dependency_pairs);
|
|
47
|
-
|
|
47
|
+
zephyr_agent_1.ze_log.remotes('dependency resolution completed successfully...or at least trying to...');
|
|
48
48
|
const mf_configs = (0, zephyr_xpack_internal_1.makeCopyOfModuleFederationOptions)(config);
|
|
49
49
|
// const app_config = await zephyr_engine.application_configuration;
|
|
50
50
|
// Verify Module Federation configuration's naming
|
|
51
51
|
await (0, ze_util_verification_1.verify_mf_fastly_config)(mf_configs, zephyr_engine);
|
|
52
|
-
|
|
52
|
+
zephyr_agent_1.ze_log.app('Application uid created...');
|
|
53
53
|
config.plugins?.push(new ze_repack_plugin_1.ZeRepackPlugin({
|
|
54
54
|
zephyr_engine,
|
|
55
55
|
mfConfig: (0, zephyr_xpack_internal_1.makeCopyOfModuleFederationOptions)(config),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/lib/with-zephyr.ts"],"names":[],"mappings":";;AAWA,gCA8BC;AAxCD,+CAAkF;AAClF,iEAI+B;AAE/B,uEAAuE;AACvE,yDAAoF;AAEpF,SAAgB,UAAU,CAAC,mBAA+C;IAOxE,2DAA2D;IAC3D,OAAO,CAAC,QAA2C,EAAE,EAAE;QACrD,qFAAqF;QACrF,OAAO,CAAC,MAAiB,EAAE,EAAE;YAC3B,kCAAkC;YAElC,0DAA0D;YAC1D,MAAM,UAAU,GAAG,QAAQ,CAAC;gBAC1B,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB,CAAC,CAAC;YAEH,MAAM,mBAAmB,GAAG;gBAC1B,GAAG,mBAAmB;gBACtB,MAAM,EAAE,MAAM,CAAC,QAAQ;aACK,CAAC;YAE/B,
|
|
1
|
+
{"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/lib/with-zephyr.ts"],"names":[],"mappings":";;AAWA,gCA8BC;AAxCD,+CAAkF;AAClF,iEAI+B;AAE/B,uEAAuE;AACvE,yDAAoF;AAEpF,SAAgB,UAAU,CAAC,mBAA+C;IAOxE,2DAA2D;IAC3D,OAAO,CAAC,QAA2C,EAAE,EA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AAC;QACpE,IAAA,wDAAgC,EAAC,aAAa,EAAE,MAAM,EAAE,yBAAyB,CAAC,CAAC;QAEnF,qBAAM,CAAC,OAAO,CACZ,yEAAyE,CAC1E,CAAC;QAEF,MAAM,UAAU,GAAG,IAAA,yDAAiC,EAAC,MAAM,CAAC,CAAC;QAC7D,oEAAoE;QACpE,kDAAkD;QAClD,MAAM,IAAA,8CAAuB,EAAC,UAAU,EAAE,aAAa,CAAC,CAAC;QAEzD,qBAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QACzC,MAAM,CAAC,OAAO,EAAE,IAAI,CAClB,IAAI,iCAAc,CAAC;YACjB,aAAa;YACb,QAAQ,EAAE,IAAA,yDAAiC,EAAC,MAAM,CAAC;YACnD,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,MAAM;SACjC,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,oBAAK,EAAC,OAAO,EAAE,0BAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-repack-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"description": "Repack plugin for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"main": "dist/index.js",
|
|
17
17
|
"typings": "dist/index.d.ts",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"zephyr-
|
|
20
|
-
"zephyr-
|
|
19
|
+
"zephyr-agent": "0.0.52",
|
|
20
|
+
"zephyr-xpack-internal": "0.0.52"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@rspack/core": "1.2.8",
|