zephyr-rolldown-plugin 0.0.50 → 0.0.51
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,8 @@
|
|
|
10
10
|
|
|
11
11
|
A Rolldown plugin for deploying applications with Zephyr Cloud. This plugin enables seamless deployment of your Rolldown-built applications to Zephyr's global edge network.
|
|
12
12
|
|
|
13
|
+
For more information, please refer to our [documentation](https://docs.zephyr-cloud.io/recipes/rolldown-react) for rolldown.
|
|
14
|
+
|
|
13
15
|
> **Note**: This plugin is currently in development (WIP - Work In Progress).
|
|
14
16
|
|
|
15
17
|
## Installation
|
|
@@ -83,26 +85,6 @@ export default defineConfig({
|
|
|
83
85
|
});
|
|
84
86
|
```
|
|
85
87
|
|
|
86
|
-
## Configuration Options
|
|
87
|
-
|
|
88
|
-
The plugin accepts the following options:
|
|
89
|
-
|
|
90
|
-
```javascript
|
|
91
|
-
withZephyr({
|
|
92
|
-
// Enable/disable deployment (default: true in production)
|
|
93
|
-
deploy: true,
|
|
94
|
-
|
|
95
|
-
// Custom deployment environment
|
|
96
|
-
environment: 'production',
|
|
97
|
-
|
|
98
|
-
// Additional metadata
|
|
99
|
-
metadata: {
|
|
100
|
-
version: '1.0.0',
|
|
101
|
-
description: 'My Rolldown app',
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
```
|
|
105
|
-
|
|
106
88
|
## Features
|
|
107
89
|
|
|
108
90
|
- 🚀 Automatic deployment during build
|
|
@@ -27,6 +27,8 @@ function withZephyr() {
|
|
|
27
27
|
writeBundle: async (_options, bundle) => {
|
|
28
28
|
try {
|
|
29
29
|
const zephyr_engine = await zephyr_engine_defer;
|
|
30
|
+
// basehref support
|
|
31
|
+
zephyr_engine.buildProperties.baseHref = _options.dir;
|
|
30
32
|
// Start a new build
|
|
31
33
|
await zephyr_engine.start_new_build();
|
|
32
34
|
// Upload assets and finish the build
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zephyr-rolldown-plugin.js","sourceRoot":"","sources":["../../src/lib/zephyr-rolldown-plugin.ts"],"names":[],"mappings":";;AAYA,
|
|
1
|
+
{"version":3,"file":"zephyr-rolldown-plugin.js","sourceRoot":"","sources":["../../src/lib/zephyr-rolldown-plugin.ts"],"names":[],"mappings":";;AAYA,gCAkCC;AA7CD,+CAAiF;AACjF,+CAAmC;AACnC,8DAAyD;AAEzD,MAAM,cAAc,GAAG,CAAC,OAAqB,EAAU,EAAE;IACvD,IAAI,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC;IAC5D,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1D,IAAI,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,IAAA,kBAAG,GAAE,CAAC;AACf,CAAC,CAAC;AAEF,SAAgB,UAAU;IACxB,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,2BAAY,CAAC,YAAY,EAAE,CAAC;IAEjF,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE,KAAK,EAAE,OAAqB,EAAE,EAAE;YAC1C,MAAM,qBAAqB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;YACtD,mBAAmB,CAAC;gBAClB,OAAO,EAAE,QAAQ,EAAE,gEAAgE;gBACnF,OAAO,EAAE,qBAAqB;aAC/B,CAAC,CAAC;QACL,CAAC;QACD,WAAW,EAAE,KAAK,EAAE,QAAiC,EAAE,MAAoB,EAAE,EAAE;YAC7E,IAAI,CAAC;gBACH,MAAM,aAAa,GAAG,MAAM,mBAAmB,CAAC;gBAEhD,mBAAmB;gBACnB,aAAa,CAAC,eAAe,CAAC,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC;gBAEtD,oBAAoB;gBACpB,MAAM,aAAa,CAAC,eAAe,EAAE,CAAC;gBAEtC,qCAAqC;gBACrC,MAAM,aAAa,CAAC,aAAa,CAAC;oBAChC,SAAS,EAAE,IAAA,6BAAY,EAAC,MAAM,CAAC;oBAC/B,UAAU,EAAE,MAAM,IAAA,8BAAe,EAAC,aAAa,CAAC;iBACjD,CAAC,CAAC;gBAEH,MAAM,aAAa,CAAC,cAAc,EAAE,CAAC;YACvC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAA,oBAAK,EAAC,OAAO,EAAE,0BAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-rolldown-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
4
4
|
"description": "Rolldown plugin for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"is-ci": "^4.1.0",
|
|
20
20
|
"rolldown": "1.0.0-beta.3",
|
|
21
|
-
"zephyr-agent": "0.0.
|
|
21
|
+
"zephyr-agent": "0.0.51"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/is-ci": "3.0.4",
|