zephyr-rolldown-plugin 0.0.49 → 0.0.50

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
@@ -1,7 +1,37 @@
1
- # Zephyr Rolldown Plugin (WIP)
1
+ # Zephyr Rolldown Plugin
2
+
3
+ <div align="center">
4
+
5
+ [Zephyr Cloud](https://zephyr-cloud.io) | [Zephyr Docs](https://docs.zephyr-cloud.io) | [Discord](https://zephyr-cloud.io/discord) | [Twitter](https://x.com/ZephyrCloudIO) | [LinkedIn](https://www.linkedin.com/company/zephyr-cloud/)
6
+
7
+ <hr/>
8
+ <img src="https://cdn.prod.website-files.com/669061ee3adb95b628c3acda/66981c766e352fe1f57191e2_Opengraph-zephyr.png" alt="Zephyr Logo" />
9
+ </div>
10
+
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
+
13
+ > **Note**: This plugin is currently in development (WIP - Work In Progress).
14
+
15
+ ## Installation
16
+
17
+ ```bash
18
+ # npm
19
+ npm install --save-dev zephyr-rolldown-plugin
20
+
21
+ # yarn
22
+ yarn add --dev zephyr-rolldown-plugin
23
+
24
+ # pnpm
25
+ pnpm add --dev zephyr-rolldown-plugin
26
+
27
+ # bun
28
+ bun add --dev zephyr-rolldown-plugin
29
+ ```
2
30
 
3
31
  ## Usage
4
32
 
33
+ Add the plugin to your Rolldown configuration:
34
+
5
35
  ```javascript
6
36
  // rolldown.config.mjs
7
37
  import { defineConfig } from 'rolldown';
@@ -28,7 +58,101 @@ export default defineConfig({
28
58
  });
29
59
  },
30
60
  },
31
- withZephyr(),
61
+ withZephyr(), // Add Zephyr plugin
32
62
  ],
33
63
  });
34
64
  ```
65
+
66
+ ### TypeScript Configuration
67
+
68
+ ```typescript
69
+ // rolldown.config.ts
70
+ import { defineConfig } from 'rolldown';
71
+ import { withZephyr } from 'zephyr-rolldown-plugin';
72
+
73
+ export default defineConfig({
74
+ input: 'src/main.tsx',
75
+ plugins: [
76
+ // ... other plugins
77
+ withZephyr({
78
+ // Configuration options
79
+ deploy: true,
80
+ environment: 'production',
81
+ }),
82
+ ],
83
+ });
84
+ ```
85
+
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
+ ## Features
107
+
108
+ - 🚀 Automatic deployment during build
109
+ - 📦 Asset optimization and bundling with Rolldown
110
+ - 🔧 Zero-config setup
111
+ - 📊 Build analytics and monitoring
112
+ - 🌐 Global CDN distribution
113
+ - ⚡ Fast builds with Rolldown's Rust-based bundler
114
+
115
+ ## Getting Started
116
+
117
+ 1. Install the plugin in your Rolldown project
118
+ 2. Add it to your Rolldown configuration
119
+ 3. Build your application as usual
120
+ 4. Your app will be automatically deployed to Zephyr Cloud
121
+
122
+ ## Build Scripts
123
+
124
+ Add these scripts to your `package.json`:
125
+
126
+ ```json
127
+ {
128
+ "scripts": {
129
+ "dev": "rolldown --watch",
130
+ "build": "rolldown",
131
+ "build:prod": "NODE_ENV=production rolldown"
132
+ }
133
+ }
134
+ ```
135
+
136
+ ## Requirements
137
+
138
+ - Rolldown (latest version)
139
+ - Node.js 18 or higher
140
+ - Zephyr Cloud account (sign up at [zephyr-cloud.io](https://zephyr-cloud.io))
141
+
142
+ ## Status
143
+
144
+ This plugin is currently in active development. Features and API may change as Rolldown evolves. We're working closely with the Rolldown team to ensure optimal integration.
145
+
146
+ ## Examples
147
+
148
+ Check out our [examples directory](../../examples/) for complete working examples:
149
+
150
+ - [rolldown-react](../../examples/rolldown-react/) - Basic React setup with Rolldown and Zephyr
151
+
152
+ ## Contributing
153
+
154
+ We welcome contributions! Please read our [contributing guidelines](../../CONTRIBUTING.md) for more information.
155
+
156
+ ## License
157
+
158
+ Licensed under the Apache-2.0 License. See [LICENSE](LICENSE) for more information.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-rolldown-plugin",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "Rolldown plugin for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-rolldown-plugin",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
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.49"
21
+ "zephyr-agent": "0.0.50"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/is-ci": "3.0.4",