balm-core 6.0.0-alpha.1 → 6.0.0-alpha.3

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/index.cjs +578 -206
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +41 -3
  5. package/dist/index.d.ts +41 -3
  6. package/dist/index.js +567 -196
  7. package/dist/index.js.map +1 -1
  8. package/package.json +38 -1
  9. package/src/balm.ts +0 -108
  10. package/src/bundler/esbuild.ts +0 -47
  11. package/src/bundler/index.ts +0 -3
  12. package/src/bundler/rollup.ts +0 -45
  13. package/src/bundler/webpack.ts +0 -124
  14. package/src/config/constants.ts +0 -12
  15. package/src/config/defaults.ts +0 -209
  16. package/src/config/index.ts +0 -112
  17. package/src/hooks/index.ts +0 -224
  18. package/src/index.ts +0 -16
  19. package/src/pipeline/file.ts +0 -69
  20. package/src/pipeline/index.ts +0 -10
  21. package/src/pipeline/pipeline.ts +0 -135
  22. package/src/pipeline/transforms/cache.ts +0 -146
  23. package/src/pipeline/transforms/htmlmin.ts +0 -18
  24. package/src/pipeline/transforms/less.ts +0 -75
  25. package/src/pipeline/transforms/postcss.ts +0 -43
  26. package/src/pipeline/transforms/rename.ts +0 -37
  27. package/src/pipeline/transforms/replace.ts +0 -30
  28. package/src/pipeline/transforms/sass.ts +0 -106
  29. package/src/pipeline/transforms/terser.ts +0 -20
  30. package/src/runner/dag.ts +0 -77
  31. package/src/runner/task.ts +0 -38
  32. package/src/shims.d.ts +0 -5
  33. package/src/tasks/cache.ts +0 -72
  34. package/src/tasks/clean.ts +0 -21
  35. package/src/tasks/copy.ts +0 -36
  36. package/src/tasks/ftp.ts +0 -90
  37. package/src/tasks/html.ts +0 -232
  38. package/src/tasks/index.ts +0 -14
  39. package/src/tasks/publish.ts +0 -71
  40. package/src/tasks/pwa.ts +0 -99
  41. package/src/tasks/remove.ts +0 -24
  42. package/src/tasks/replace.ts +0 -34
  43. package/src/tasks/script.ts +0 -28
  44. package/src/tasks/server.ts +0 -183
  45. package/src/tasks/static.ts +0 -104
  46. package/src/tasks/style.ts +0 -57
  47. package/src/tasks/zip.ts +0 -65
  48. package/src/types/index.ts +0 -202
  49. package/src/utilities/file.ts +0 -120
  50. package/src/utilities/logger.ts +0 -63
  51. package/src/utilities/utils.ts +0 -46
  52. package/src/utilities/workspace.ts +0 -38
  53. package/src/watcher/index.ts +0 -100
  54. package/tsconfig.json +0 -8
  55. package/tsup.config.ts +0 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # balm-core
2
2
 
3
+ ## 6.0.0-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f31e81: Read CLI `--version` dynamically from `package.json` and configure npm package `"files"` and metadata for publishing
8
+ - 1f31e81: Support `extras` includes/excludes in `StaticTask`, replace all occurrences in `transformReplace`, and pass config to lifecycle hooks
9
+ - Add `extras.includes` and `extras.excludes` handling in `StaticTask` alongside `assets` patterns
10
+ - Replace all string pattern occurrences via `replaceAll` in `transformReplace`
11
+ - Pass resolved `BalmConfig` to `beforeTask` and `afterTask` callbacks
12
+ - 1f31e81: Improve Webpack 4.x compatibility, loader toolchain defaults, file watcher extensions, and CLI instance resolution
13
+ - Add `scripts.defaultLoaders` controls and built-in Babel 7 / Webpack 5 loader dependencies (`@babel/core`, `babel-loader`, `css-loader`, `html-loader`, `mini-css-extract-plugin`, `postcss-loader`, `style-loader`)
14
+ - Add 4.x compatibility script/html config defaults (`includeJsResource`, `excludeUrlResource`, `useEsModule`, `urlLoaderOptions`, `babelLoaderOptions`, `htmlLoaderOptions`, `postcssLoaderOptions`, `extractAllVendors`, `vendorName`, `extractCss`)
15
+ - Restrict `deepMerge` recursion to plain objects via `isPlainObject`
16
+ - Support watched directory deduplication and script rebuilds across extended file extensions in `FileWatcher`
17
+ - Unwrap nested default exports via `unwrapBalmInstance` in `balm` core resolver
18
+
19
+ ## 6.0.0-alpha.2
20
+
21
+ ### Patch Changes
22
+
23
+ - - **balm**:
24
+ - Support `-c, --config <file>` CLI option for custom configuration file path
25
+ - Support async configuration functions returning config objects
26
+ - Support `beforeTask`, `afterTask`, and `api`/`recipes` hooks in config object
27
+ - **balm-core**:
28
+ - Export `resolveDefaultEntry` utility supporting `main/index` with `.js/.ts/.jsx/.tsx`
29
+ - Add `html.analytics` option supporting Google Analytics and custom analytics script injection
30
+ - Add `server.serveStatic` option for custom static routes and directory serving
31
+ - Support fast-glob pattern matching in `ZipTask`
32
+ - Refine `CacheTask` asset globs and protect `.webmanifest`, `sw.js`, `service-worker.js`, and `workbox-sw.js`
33
+ - Support `basename` option in `RenameTask`
34
+
3
35
  ## 6.0.0-alpha.1
4
36
 
5
37
  ### Patch Changes