zephyr-modernjs-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
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
A Modern.js plugin for deploying applications with Zephyr Cloud. This plugin integrates seamlessly with Modern.js framework to enable application federation and deployment capabilities.
|
|
12
12
|
|
|
13
|
+
## Get Started
|
|
14
|
+
|
|
15
|
+
The fastest way to get started is to use `create-zephyr-apps` to generate a new Modern.js application with Zephyr integration:
|
|
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/modernjs) for Modern.js and Zephyr integration.
|
|
22
|
+
|
|
13
23
|
## Installation
|
|
14
24
|
|
|
15
25
|
```bash
|
|
@@ -115,22 +125,6 @@ plugins: [
|
|
|
115
125
|
];
|
|
116
126
|
```
|
|
117
127
|
|
|
118
|
-
## Configuration Options
|
|
119
|
-
|
|
120
|
-
```typescript
|
|
121
|
-
withZephyr({
|
|
122
|
-
// Deployment options
|
|
123
|
-
deploy: true,
|
|
124
|
-
environment: 'production',
|
|
125
|
-
|
|
126
|
-
// Additional metadata
|
|
127
|
-
metadata: {
|
|
128
|
-
version: '1.0.0',
|
|
129
|
-
description: 'My Modern.js app',
|
|
130
|
-
},
|
|
131
|
-
});
|
|
132
|
-
```
|
|
133
|
-
|
|
134
128
|
## Features
|
|
135
129
|
|
|
136
130
|
- 🚀 Seamless deployment during Modern.js build
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ZephyrPluginOptions } from 'zephyr-edge-contract';
|
|
2
1
|
import type { AppTools, CliPluginFuture } from '@modern-js/app-tools';
|
|
2
|
+
import type { ZephyrPluginOptions } from 'zephyr-edge-contract';
|
|
3
3
|
export declare const withZephyr: (zephyrOptions?: ZephyrPluginOptions) => CliPluginFuture<AppTools<"rspack" | "webpack">>;
|
|
@@ -70,13 +70,13 @@ function zephyrFixPublicPath() {
|
|
|
70
70
|
setup(api) {
|
|
71
71
|
api.modifyWebpackConfig(async (config, { isServer }) => {
|
|
72
72
|
if (!isServer) {
|
|
73
|
-
|
|
73
|
+
zephyr_agent_1.ze_log.misc('Modifying publicPath for Dev Server');
|
|
74
74
|
config.output = { ...config.output, publicPath: 'auto' };
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
api.modifyRspackConfig(async (config, { isServer }) => {
|
|
78
78
|
if (!isServer) {
|
|
79
|
-
|
|
79
|
+
zephyr_agent_1.ze_log.misc('Modifying publicPath for Dev Server');
|
|
80
80
|
config.output = { ...config.output, publicPath: 'auto' };
|
|
81
81
|
}
|
|
82
82
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/modernjs-plugin/with-zephyr.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/modernjs-plugin/with-zephyr.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAsC;AAGtC,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAC5C,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,aAAa,CAAC;AAEjD,MAAM,UAAU,GAAG,CACxB,aAAmC,EACc,EAAE,CAAC,CAAC;IACrD,IAAI,EAAE,UAAU;IAChB,GAAG,EAAE,CAAC,4CAA4C,CAAC;IAEnD,KAAK,CAAC,KAAK,CAAC,GAAG;QACb,GAAG,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;YAC9C,MAAM,cAAc,GAAG,GAAG,CAAC,aAAa,EAAE,CAAC,WAAW,CAA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AC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;gBAC3D,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,GAAG,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;gBACpD,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACd,qBAAM,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;oBACnD,MAAM,CAAC,MAAM,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;gBAC3D,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-modernjs-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"description": "Modernjs plugin for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@modern-js/app-tools": "^2.66.0",
|
|
20
20
|
"is-ci": "^4.1.0",
|
|
21
21
|
"tslib": "^2.8.1",
|
|
22
|
-
"zephyr-
|
|
23
|
-
"zephyr-
|
|
24
|
-
"zephyr-
|
|
22
|
+
"zephyr-agent": "0.0.52",
|
|
23
|
+
"zephyr-edge-contract": "0.0.52",
|
|
24
|
+
"zephyr-xpack-internal": "0.0.52"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/is-ci": "3.0.4",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"ts-jest": "^29.2.6"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"zephyr-rspack-plugin": "0.0.
|
|
35
|
-
"zephyr-webpack-plugin": "0.0.
|
|
34
|
+
"zephyr-rspack-plugin": "0.0.52",
|
|
35
|
+
"zephyr-webpack-plugin": "0.0.52"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"zephyr-rspack-plugin": {
|