rollup-plugin-zephyr 0.0.49 → 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
@@ -1 +1,129 @@
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
+ ## Features
88
+
89
+ - 🚀 Automatic deployment during build
90
+ - 📦 Asset optimization and bundling
91
+ - 🔧 Zero-config setup
92
+ - 📊 Build analytics and monitoring
93
+ - 🌐 Global CDN distribution
94
+ - ⚡ Edge caching and optimization
95
+
96
+ ## Getting Started
97
+
98
+ 1. Install the plugin in your Rollup project
99
+ 2. Add it to your Rollup configuration
100
+ 3. Build your application as usual with `rollup -c`
101
+ 4. Your app will be automatically deployed to Zephyr Cloud
102
+
103
+ ## Build Scripts
104
+
105
+ Add these scripts to your `package.json`:
106
+
107
+ ```json
108
+ {
109
+ "scripts": {
110
+ "dev": "rollup -c -w",
111
+ "build": "rollup -c",
112
+ "build:prod": "NODE_ENV=production rollup -c"
113
+ }
114
+ }
115
+ ```
116
+
117
+ ## Requirements
118
+
119
+ - Rollup 2.x or higher
120
+ - Node.js 14 or higher
121
+ - Zephyr Cloud account (sign up at [zephyr-cloud.io](https://zephyr-cloud.io))
122
+
123
+ ## Contributing
124
+
125
+ We welcome contributions! Please read our [contributing guidelines](../../CONTRIBUTING.md) for more information.
126
+
127
+ ## License
128
+
129
+ 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.49",
3
+ "version": "0.0.51",
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.49",
3
+ "version": "0.0.51",
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.49"
28
+ "zephyr-agent": "0.0.51"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/is-ci": "3.0.4",