@aziontech/bundler 1.1.3 → 1.1.4
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 +48 -68
- package/dist/{index-dMuB6SYF.js → index-CgialJ1S.js} +342 -324
- package/dist/index.js +33 -28
- package/dist/utils-B43tliMf.js +377 -0
- package/package.json +3 -4
- package/dist/utils-DkUMNTN3.js +0 -329
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ Azion Bundler is a powerful tool designed to build and adapt projects for edge c
|
|
|
23
23
|
- [`presets`](#presets)
|
|
24
24
|
- [`store`](#store)
|
|
25
25
|
- [`manifest`](#manifest)
|
|
26
|
+
- [`telemetry`](#telemetry)
|
|
26
27
|
- [Configuration](#configuration)
|
|
27
28
|
- [Build Process Flow](#build-process-flow)
|
|
28
29
|
- [Documentation](#documentation)
|
|
@@ -120,12 +121,16 @@ Builds your project for edge deployment.
|
|
|
120
121
|
azbundler build [options]
|
|
121
122
|
|
|
122
123
|
Options:
|
|
123
|
-
-e, --entry <
|
|
124
|
-
-p, --preset <type>
|
|
125
|
-
--polyfills
|
|
126
|
-
-w, --worker
|
|
127
|
-
-d, --dev
|
|
128
|
-
-x, --experimental
|
|
124
|
+
-e, --entry <entries...> Code entrypoint (default: ./main.js or ./main.ts)
|
|
125
|
+
-p, --preset <type> Preset of build target (e.g., vue, next, javascript)
|
|
126
|
+
--polyfills [boolean] Use node polyfills in build (default: true)
|
|
127
|
+
-w, --worker [boolean] Indicates that the constructed code inserts its own worker expression (default: false)
|
|
128
|
+
-d, --dev Build in development mode (default: false)
|
|
129
|
+
-x, --experimental Enable experimental features (default: false)
|
|
130
|
+
--skip-framework-build Skip framework build step (default: false)
|
|
131
|
+
--only-generate-config Build only generate azion.config (default: false)
|
|
132
|
+
--telemetry [format] Enable telemetry output (console, json, html or both; defaults to both)
|
|
133
|
+
--alias-env Rewrite env var names to a per-project prefix to avoid cross-project naming collisions (default: false)
|
|
129
134
|
```
|
|
130
135
|
|
|
131
136
|
### `dev`
|
|
@@ -141,6 +146,8 @@ Arguments:
|
|
|
141
146
|
Options:
|
|
142
147
|
-p, --port <port> Specify the port (default: "3333")
|
|
143
148
|
-x, --experimental Enable experimental features (default: false)
|
|
149
|
+
--skip-framework-build Skip framework build step (default: false)
|
|
150
|
+
--function-name <name> Specify the function name
|
|
144
151
|
```
|
|
145
152
|
|
|
146
153
|
### `config`
|
|
@@ -151,22 +158,26 @@ Manages Azion configuration settings with CRUD operations.
|
|
|
151
158
|
azbundler config <command> [options]
|
|
152
159
|
|
|
153
160
|
Commands:
|
|
154
|
-
create
|
|
155
|
-
read
|
|
156
|
-
update
|
|
157
|
-
delete
|
|
161
|
+
create Create a new configuration property
|
|
162
|
+
read Read configuration properties
|
|
163
|
+
update Update existing configuration properties
|
|
164
|
+
delete Delete configuration properties
|
|
165
|
+
replace Replace a placeholder value across the configuration
|
|
158
166
|
|
|
159
167
|
Options:
|
|
160
|
-
-k, --key <key
|
|
161
|
-
-v, --value <value
|
|
162
|
-
-a, --all
|
|
168
|
+
-k, --key <key...> Property key (e.g., build.preset or applications[0].name)
|
|
169
|
+
-v, --value <value...> Value to be set (for create/update/replace commands)
|
|
170
|
+
-a, --all Read or delete entire configuration (for read/delete commands)
|
|
171
|
+
-r, --replacements <replacements> JSON string of key-value pairs for replacement
|
|
163
172
|
|
|
164
173
|
Examples:
|
|
165
174
|
$ azbundler config create -k "build.preset" -v "typescript"
|
|
166
|
-
$ azbundler config read -
|
|
167
|
-
$ azbundler config
|
|
168
|
-
$ azbundler config
|
|
169
|
-
$ azbundler config
|
|
175
|
+
$ azbundler config read -a
|
|
176
|
+
$ azbundler config read -k "build.preset"
|
|
177
|
+
$ azbundler config update -k "build.preset" -v "vue"
|
|
178
|
+
$ azbundler config delete -a
|
|
179
|
+
$ azbundler config delete -k "build.preset"
|
|
180
|
+
$ azbundler config replace -k '$EDGE_FUNCTION_NAME' -v "my-func"
|
|
170
181
|
```
|
|
171
182
|
|
|
172
183
|
### `presets`
|
|
@@ -226,6 +237,21 @@ Examples:
|
|
|
226
237
|
$ azbundler manifest -e azion.config.js -o .edge
|
|
227
238
|
```
|
|
228
239
|
|
|
240
|
+
### `telemetry`
|
|
241
|
+
|
|
242
|
+
Opens the telemetry HTML report in the default browser.
|
|
243
|
+
|
|
244
|
+
```shell
|
|
245
|
+
azbundler telemetry [options]
|
|
246
|
+
|
|
247
|
+
Options:
|
|
248
|
+
-p, --path <path> Custom path to the telemetry HTML file
|
|
249
|
+
|
|
250
|
+
Examples:
|
|
251
|
+
$ azbundler telemetry
|
|
252
|
+
$ azbundler telemetry --path ./custom-report.html
|
|
253
|
+
```
|
|
254
|
+
|
|
229
255
|
## Configuration
|
|
230
256
|
|
|
231
257
|
The configuration file (`azion.config.js` or `azion.config.ts`) offers a robust configuration system for Bundler. With Azion Bundler, you can extend configurations and leverage pre-configured framework presets for immediate use. The tool empowers users to create their own automations and extensions, making it highly customizable for specific project needs.
|
|
@@ -344,9 +370,10 @@ export default defineConfig({
|
|
|
344
370
|
|
|
345
371
|
## Documentation
|
|
346
372
|
|
|
347
|
-
- [Handler Patterns](docs/handler-patterns.md)
|
|
348
|
-
- [Node.js APIs](docs/nodejs-apis.md)
|
|
349
|
-
- [Nextjs](docs/nextjs.md)
|
|
373
|
+
- [Handler Patterns](https://github.com/aziontech/bundler/blob/main/packages/bundler/docs/handler-patterns.md)
|
|
374
|
+
- [Node.js APIs](https://github.com/aziontech/bundler/blob/main/packages/bundler/docs/nodejs-apis.md)
|
|
375
|
+
- [Nextjs](https://github.com/aziontech/bundler/blob/main/packages/bundler/docs/nextjs.md)
|
|
376
|
+
- [Environment Variable Prefixing](https://github.com/aziontech/bundler/blob/main/packages/bundler/docs/env-var-prefixing.md)
|
|
350
377
|
- [Rust/Wasm example](https://github.com/aziontech/bundler-examples/tree/main/examples/rust-wasm-yew-ssr/)
|
|
351
378
|
- [Emscripten/Wasm example](https://github.com/aziontech/bundler-examples/tree/main/examples/emscripten-wasm/)
|
|
352
379
|
- [Env vars example](https://github.com/aziontech/bundler-examples/tree/main/examples/javascript/simple-js-env-vars)
|
|
@@ -355,54 +382,7 @@ export default defineConfig({
|
|
|
355
382
|
|
|
356
383
|
## Supported Features
|
|
357
384
|
|
|
358
|
-
E2E tests run daily in the [Bundler Examples](https://github.com/aziontech/bundler-examples/tree/main/examples) to ensure that the presets and frameworks continue to work correctly.
|
|
359
|
-
|
|
360
|
-
Table:
|
|
361
|
-
| Test | Status |
|
|
362
|
-
| ------------------------------------ | ------ |
|
|
363
|
-
| Next 14 2 15 Middleware | ✅ |
|
|
364
|
-
| Next 13 5 6 I18n | ✅ |
|
|
365
|
-
| Next 12 3 4 I18n | ✅ |
|
|
366
|
-
| Hexo Static | ✅ |
|
|
367
|
-
| Next 13 5 6 Middleware | ✅ |
|
|
368
|
-
| Next 12 3 4 Middleware | ✅ |
|
|
369
|
-
| Next Node Pages 12 3 1 | ✅ |
|
|
370
|
-
| Next 13 5 6 Config | ✅ |
|
|
371
|
-
| Next 12 3 4 Config | ✅ |
|
|
372
|
-
| Html | ✅ |
|
|
373
|
-
| Next Static | ✅ |
|
|
374
|
-
| Gatsby Static | ✅ |
|
|
375
|
-
| Next Node Pages 12 3 1 Fs | ✅ |
|
|
376
|
-
| Sveltekit Static | ✅ |
|
|
377
|
-
| Vue Vite Static | ✅ |
|
|
378
|
-
| Qwik Static | ✅ |
|
|
379
|
-
| Opennext Ssr | ✅ |
|
|
380
|
-
| Sveltekit Ssr | ✅ |
|
|
381
|
-
| Next 12 Static | ✅ |
|
|
382
|
-
| Hugo | ✅ |
|
|
383
|
-
| Astro Static | ✅ |
|
|
384
|
-
| Simple Js Env Vars | ✅ |
|
|
385
|
-
| Eleventy Static | ✅ |
|
|
386
|
-
| Simple Js Network List | ✅ |
|
|
387
|
-
| Angular Static | ✅ |
|
|
388
|
-
| React Static | ✅ |
|
|
389
|
-
| Svelte Static | ✅ |
|
|
390
|
-
| Stencil Static | ⚠️ |
|
|
391
|
-
| Vitepress Static | ✅ |
|
|
392
|
-
| Preact Static | ✅ |
|
|
393
|
-
| Vuepress Static | ✅ |
|
|
394
|
-
| Nuxt Static | ✅ |
|
|
395
|
-
| Docusaurus Static | ✅ |
|
|
396
|
-
| Simple Js Firewall Event | ✅ |
|
|
397
|
-
| Nuxt Ssr | ✅ |
|
|
398
|
-
| Simple Js Network List With Firewall | ✅ |
|
|
399
|
-
| Jekyll Static | ✅ |
|
|
400
|
-
| Simple Js Esm Worker | ✅ |
|
|
401
|
-
| Simple Js Esm Node | ✅ |
|
|
402
|
-
| Simple Js Esm | ✅ |
|
|
403
|
-
| Simple Ts Esm | ✅ |
|
|
404
|
-
|
|
405
|
-
Last test run date: 07/05/26 04:19:39 AM
|
|
385
|
+
E2E tests run daily in the [Bundler Examples](https://github.com/aziontech/bundler-examples/tree/main/examples) to ensure that the presets and frameworks continue to work correctly. Failures are reported to the team on Slack instead of being tracked here.
|
|
406
386
|
|
|
407
387
|
## Contributing
|
|
408
388
|
|