rollup-plugin-zephyr 0.0.48 → 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 +1,149 @@
1
- # rollup-plugin-zephyr
1
+ # Rollup Plugin Zephyr
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 Rollup plugin for deploying applications with Zephyr Cloud. This plugin enables seamless deployment of your Rollup-built applications to Zephyr's global edge network.
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ # npm
17
+ npm install --save-dev rollup-plugin-zephyr
18
+
19
+ # yarn
20
+ yarn add --dev rollup-plugin-zephyr
21
+
22
+ # pnpm
23
+ pnpm add --dev rollup-plugin-zephyr
24
+
25
+ # bun
26
+ bun add --dev rollup-plugin-zephyr
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ Add the plugin to your Rollup configuration:
32
+
33
+ ```javascript
34
+ // rollup.config.js
35
+ import { zephyrPlugin } from 'rollup-plugin-zephyr';
36
+
37
+ export default {
38
+ input: 'src/main.js',
39
+ output: {
40
+ dir: 'dist',
41
+ format: 'es',
42
+ },
43
+ plugins: [
44
+ // ... other plugins
45
+ zephyrPlugin(),
46
+ ],
47
+ };
48
+ ```
49
+
50
+ ### With ES Modules
51
+
52
+ ```javascript
53
+ // rollup.config.mjs
54
+ import { zephyrPlugin } from 'rollup-plugin-zephyr';
55
+
56
+ export default {
57
+ input: 'src/main.js',
58
+ output: {
59
+ dir: 'dist',
60
+ format: 'es',
61
+ },
62
+ plugins: [
63
+ zephyrPlugin({
64
+ // Configuration options
65
+ }),
66
+ ],
67
+ };
68
+ ```
69
+
70
+ ### TypeScript Configuration
71
+
72
+ ```typescript
73
+ // rollup.config.ts
74
+ import { defineConfig } from 'rollup';
75
+ import { zephyrPlugin } from 'rollup-plugin-zephyr';
76
+
77
+ export default defineConfig({
78
+ input: 'src/main.ts',
79
+ output: {
80
+ dir: 'dist',
81
+ format: 'es',
82
+ },
83
+ plugins: [zephyrPlugin()],
84
+ });
85
+ ```
86
+
87
+ ## Configuration
88
+
89
+ The plugin accepts the following options:
90
+
91
+ ```javascript
92
+ zephyrPlugin({
93
+ // Enable/disable deployment (default: true in production)
94
+ deploy: true,
95
+
96
+ // Custom deployment environment
97
+ environment: 'production',
98
+
99
+ // Additional metadata
100
+ metadata: {
101
+ version: '1.0.0',
102
+ description: 'My awesome app',
103
+ },
104
+ });
105
+ ```
106
+
107
+ ## Features
108
+
109
+ - 🚀 Automatic deployment during build
110
+ - 📦 Asset optimization and bundling
111
+ - 🔧 Zero-config setup
112
+ - 📊 Build analytics and monitoring
113
+ - 🌐 Global CDN distribution
114
+ - ⚡ Edge caching and optimization
115
+
116
+ ## Getting Started
117
+
118
+ 1. Install the plugin in your Rollup project
119
+ 2. Add it to your Rollup configuration
120
+ 3. Build your application as usual with `rollup -c`
121
+ 4. Your app will be automatically deployed to Zephyr Cloud
122
+
123
+ ## Build Scripts
124
+
125
+ Add these scripts to your `package.json`:
126
+
127
+ ```json
128
+ {
129
+ "scripts": {
130
+ "dev": "rollup -c -w",
131
+ "build": "rollup -c",
132
+ "build:prod": "NODE_ENV=production rollup -c"
133
+ }
134
+ }
135
+ ```
136
+
137
+ ## Requirements
138
+
139
+ - Rollup 2.x or higher
140
+ - Node.js 14 or higher
141
+ - Zephyr Cloud account (sign up at [zephyr-cloud.io](https://zephyr-cloud.io))
142
+
143
+ ## Contributing
144
+
145
+ We welcome contributions! Please read our [contributing guidelines](../../CONTRIBUTING.md) for more information.
146
+
147
+ ## License
148
+
149
+ 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": "rollup-plugin-zephyr",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "Rollup plugin for Zephyr",
5
5
  "keywords": [
6
6
  "rollup",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-zephyr",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "Rollup plugin for Zephyr",
5
5
  "keywords": [
6
6
  "rollup",
@@ -25,7 +25,7 @@
25
25
  "is-ci": "^4.1.0",
26
26
  "rollup": "^4.36.0",
27
27
  "tslib": "^2.8.1",
28
- "zephyr-agent": "0.0.48"
28
+ "zephyr-agent": "0.0.50"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/is-ci": "3.0.4",