balm-core 6.0.0-alpha.0 → 6.0.0-alpha.2
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/CHANGELOG.md +32 -0
- package/dist/index.cjs +669 -147
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -4
- package/dist/index.d.ts +34 -4
- package/dist/index.js +663 -147
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/balm.ts +22 -18
- package/src/bundler/esbuild.ts +2 -1
- package/src/bundler/rollup.ts +16 -9
- package/src/bundler/webpack.ts +57 -14
- package/src/config/defaults.ts +4 -1
- package/src/hooks/index.ts +44 -12
- package/src/pipeline/pipeline.ts +36 -33
- package/src/pipeline/transforms/cache.ts +65 -14
- package/src/pipeline/transforms/rename.ts +2 -1
- package/src/pipeline/transforms/sass.ts +1 -1
- package/src/tasks/cache.ts +28 -2
- package/src/tasks/html.ts +220 -8
- package/src/tasks/index.ts +1 -0
- package/src/tasks/pwa.ts +38 -1
- package/src/tasks/server.ts +130 -1
- package/src/tasks/static.ts +77 -0
- package/src/tasks/zip.ts +19 -7
- package/src/types/index.ts +25 -0
- package/src/utilities/file.ts +20 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# balm-core
|
|
2
|
+
|
|
3
|
+
## 6.0.0-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- - **balm**:
|
|
8
|
+
- Support `-c, --config <file>` CLI option for custom configuration file path
|
|
9
|
+
- Support async configuration functions returning config objects
|
|
10
|
+
- Support `beforeTask`, `afterTask`, and `api`/`recipes` hooks in config object
|
|
11
|
+
- **balm-core**:
|
|
12
|
+
- Export `resolveDefaultEntry` utility supporting `main/index` with `.js/.ts/.jsx/.tsx`
|
|
13
|
+
- Add `html.analytics` option supporting Google Analytics and custom analytics script injection
|
|
14
|
+
- Add `server.serveStatic` option for custom static routes and directory serving
|
|
15
|
+
- Support fast-glob pattern matching in `ZipTask`
|
|
16
|
+
- Refine `CacheTask` asset globs and protect `.webmanifest`, `sw.js`, `service-worker.js`, and `workbox-sw.js`
|
|
17
|
+
- Support `basename` option in `RenameTask`
|
|
18
|
+
|
|
19
|
+
## 6.0.0-alpha.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- - **balm**: Allow custom CLI options like `--docs`
|
|
24
|
+
- **balm-core**:
|
|
25
|
+
- Add built-in `StaticTask` for copying static assets, icons, fonts, media, and `public/` directory
|
|
26
|
+
- Fix production path mappings in `HtmlTask` from source to target directories (`/styles/` -> `/css/`)
|
|
27
|
+
- Fix hashed entry script resolution and injection in `HtmlTask`
|
|
28
|
+
- Fix `AssetRevisioner` regex matching to avoid `.woff` vs `.woff2` extension replacement collision
|
|
29
|
+
- Prevent double hashing of Webpack bundle chunks
|
|
30
|
+
- Fix PWA task to extract and copy `workbox-sw.js`, replace version placeholders, and output `service-worker.js`
|
|
31
|
+
- Optimize task execution order so mix recipes run before `cache` and `pwa`
|
|
32
|
+
- Fix multi-glob base directory calculation in `Pipeline.src`
|