@roots/bud-build 0.0.0

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 (306) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +120 -0
  3. package/docs/exports.md +13 -0
  4. package/docs/rules.md +32 -0
  5. package/lib/config/bail.d.ts +3 -0
  6. package/lib/config/bail.d.ts.map +1 -0
  7. package/lib/config/bail.js +2 -0
  8. package/lib/config/bail.js.map +1 -0
  9. package/lib/config/cache.d.ts +3 -0
  10. package/lib/config/cache.d.ts.map +1 -0
  11. package/lib/config/cache.js +2 -0
  12. package/lib/config/cache.js.map +1 -0
  13. package/lib/config/context.d.ts +3 -0
  14. package/lib/config/context.d.ts.map +1 -0
  15. package/lib/config/context.js +2 -0
  16. package/lib/config/context.js.map +1 -0
  17. package/lib/config/dependencies.d.ts +3 -0
  18. package/lib/config/dependencies.d.ts.map +1 -0
  19. package/lib/config/dependencies.js +5 -0
  20. package/lib/config/dependencies.js.map +1 -0
  21. package/lib/config/devtool.d.ts +3 -0
  22. package/lib/config/devtool.d.ts.map +1 -0
  23. package/lib/config/devtool.js +2 -0
  24. package/lib/config/devtool.js.map +1 -0
  25. package/lib/config/entry.d.ts +3 -0
  26. package/lib/config/entry.d.ts.map +1 -0
  27. package/lib/config/entry.js +2 -0
  28. package/lib/config/entry.js.map +1 -0
  29. package/lib/config/experiments.d.ts +3 -0
  30. package/lib/config/experiments.d.ts.map +1 -0
  31. package/lib/config/experiments.js +2 -0
  32. package/lib/config/experiments.js.map +1 -0
  33. package/lib/config/externals.d.ts +3 -0
  34. package/lib/config/externals.d.ts.map +1 -0
  35. package/lib/config/externals.js +2 -0
  36. package/lib/config/externals.js.map +1 -0
  37. package/lib/config/externalsType.d.ts +3 -0
  38. package/lib/config/externalsType.d.ts.map +1 -0
  39. package/lib/config/externalsType.js +2 -0
  40. package/lib/config/externalsType.js.map +1 -0
  41. package/lib/config/index.d.ts +35 -0
  42. package/lib/config/index.d.ts.map +1 -0
  43. package/lib/config/index.js +27 -0
  44. package/lib/config/index.js.map +1 -0
  45. package/lib/config/infrastructureLogging.d.ts +3 -0
  46. package/lib/config/infrastructureLogging.d.ts.map +1 -0
  47. package/lib/config/infrastructureLogging.js +14 -0
  48. package/lib/config/infrastructureLogging.js.map +1 -0
  49. package/lib/config/loader.d.ts +3 -0
  50. package/lib/config/loader.d.ts.map +1 -0
  51. package/lib/config/loader.js +2 -0
  52. package/lib/config/loader.js.map +1 -0
  53. package/lib/config/mode.d.ts +3 -0
  54. package/lib/config/mode.d.ts.map +1 -0
  55. package/lib/config/mode.js +2 -0
  56. package/lib/config/mode.js.map +1 -0
  57. package/lib/config/module.d.ts +3 -0
  58. package/lib/config/module.d.ts.map +1 -0
  59. package/lib/config/module.js +23 -0
  60. package/lib/config/module.js.map +1 -0
  61. package/lib/config/name.d.ts +3 -0
  62. package/lib/config/name.d.ts.map +1 -0
  63. package/lib/config/name.js +2 -0
  64. package/lib/config/name.js.map +1 -0
  65. package/lib/config/node.d.ts +3 -0
  66. package/lib/config/node.d.ts.map +1 -0
  67. package/lib/config/node.js +2 -0
  68. package/lib/config/node.js.map +1 -0
  69. package/lib/config/optimization.d.ts +3 -0
  70. package/lib/config/optimization.d.ts.map +1 -0
  71. package/lib/config/optimization.js +11 -0
  72. package/lib/config/optimization.js.map +1 -0
  73. package/lib/config/output/assetModuleFilename.d.ts +8 -0
  74. package/lib/config/output/assetModuleFilename.d.ts.map +1 -0
  75. package/lib/config/output/assetModuleFilename.js +2 -0
  76. package/lib/config/output/assetModuleFilename.js.map +1 -0
  77. package/lib/config/output/chunkFilename.d.ts +8 -0
  78. package/lib/config/output/chunkFilename.d.ts.map +1 -0
  79. package/lib/config/output/chunkFilename.js +4 -0
  80. package/lib/config/output/chunkFilename.js.map +1 -0
  81. package/lib/config/output/filename.d.ts +8 -0
  82. package/lib/config/output/filename.d.ts.map +1 -0
  83. package/lib/config/output/filename.js +3 -0
  84. package/lib/config/output/filename.js.map +1 -0
  85. package/lib/config/output/index.d.ts +3 -0
  86. package/lib/config/output/index.d.ts.map +1 -0
  87. package/lib/config/output/index.js +18 -0
  88. package/lib/config/output/index.js.map +1 -0
  89. package/lib/config/parallelism.d.ts +3 -0
  90. package/lib/config/parallelism.d.ts.map +1 -0
  91. package/lib/config/parallelism.js +3 -0
  92. package/lib/config/parallelism.js.map +1 -0
  93. package/lib/config/performance.d.ts +3 -0
  94. package/lib/config/performance.d.ts.map +1 -0
  95. package/lib/config/performance.js +2 -0
  96. package/lib/config/performance.js.map +1 -0
  97. package/lib/config/plugins.d.ts +3 -0
  98. package/lib/config/plugins.d.ts.map +1 -0
  99. package/lib/config/plugins.js +2 -0
  100. package/lib/config/plugins.js.map +1 -0
  101. package/lib/config/profile.d.ts +3 -0
  102. package/lib/config/profile.d.ts.map +1 -0
  103. package/lib/config/profile.js +2 -0
  104. package/lib/config/profile.js.map +1 -0
  105. package/lib/config/recordsPath.d.ts +3 -0
  106. package/lib/config/recordsPath.d.ts.map +1 -0
  107. package/lib/config/recordsPath.js +2 -0
  108. package/lib/config/recordsPath.js.map +1 -0
  109. package/lib/config/resolve.d.ts +3 -0
  110. package/lib/config/resolve.d.ts.map +1 -0
  111. package/lib/config/resolve.js +30 -0
  112. package/lib/config/resolve.js.map +1 -0
  113. package/lib/config/stats.d.ts +3 -0
  114. package/lib/config/stats.d.ts.map +1 -0
  115. package/lib/config/stats.js +17 -0
  116. package/lib/config/stats.js.map +1 -0
  117. package/lib/config/target.d.ts +3 -0
  118. package/lib/config/target.d.ts.map +1 -0
  119. package/lib/config/target.js +4 -0
  120. package/lib/config/target.js.map +1 -0
  121. package/lib/handlers/index.d.ts +19 -0
  122. package/lib/handlers/index.d.ts.map +1 -0
  123. package/lib/handlers/index.js +6 -0
  124. package/lib/handlers/index.js.map +1 -0
  125. package/lib/handlers/items/items.d.ts +47 -0
  126. package/lib/handlers/items/items.d.ts.map +1 -0
  127. package/lib/handlers/items/items.js +69 -0
  128. package/lib/handlers/items/items.js.map +1 -0
  129. package/lib/handlers/loaders/loaders.d.ts +12 -0
  130. package/lib/handlers/loaders/loaders.d.ts.map +1 -0
  131. package/lib/handlers/loaders/loaders.js +11 -0
  132. package/lib/handlers/loaders/loaders.js.map +1 -0
  133. package/lib/handlers/register.d.ts +14 -0
  134. package/lib/handlers/register.d.ts.map +1 -0
  135. package/lib/handlers/register.js +26 -0
  136. package/lib/handlers/register.js.map +1 -0
  137. package/lib/handlers/rules/css.d.ts +3 -0
  138. package/lib/handlers/rules/css.d.ts.map +1 -0
  139. package/lib/handlers/rules/css.js +5 -0
  140. package/lib/handlers/rules/css.js.map +1 -0
  141. package/lib/handlers/rules/css.module.d.ts +3 -0
  142. package/lib/handlers/rules/css.module.d.ts.map +1 -0
  143. package/lib/handlers/rules/css.module.js +5 -0
  144. package/lib/handlers/rules/css.module.js.map +1 -0
  145. package/lib/handlers/rules/csv.d.ts +3 -0
  146. package/lib/handlers/rules/csv.d.ts.map +1 -0
  147. package/lib/handlers/rules/csv.js +5 -0
  148. package/lib/handlers/rules/csv.js.map +1 -0
  149. package/lib/handlers/rules/font.d.ts +3 -0
  150. package/lib/handlers/rules/font.d.ts.map +1 -0
  151. package/lib/handlers/rules/font.inline.d.ts +3 -0
  152. package/lib/handlers/rules/font.inline.d.ts.map +1 -0
  153. package/lib/handlers/rules/font.inline.js +6 -0
  154. package/lib/handlers/rules/font.inline.js.map +1 -0
  155. package/lib/handlers/rules/font.js +5 -0
  156. package/lib/handlers/rules/font.js.map +1 -0
  157. package/lib/handlers/rules/html.d.ts +3 -0
  158. package/lib/handlers/rules/html.d.ts.map +1 -0
  159. package/lib/handlers/rules/html.js +5 -0
  160. package/lib/handlers/rules/html.js.map +1 -0
  161. package/lib/handlers/rules/image.d.ts +3 -0
  162. package/lib/handlers/rules/image.d.ts.map +1 -0
  163. package/lib/handlers/rules/image.inline.d.ts +3 -0
  164. package/lib/handlers/rules/image.inline.d.ts.map +1 -0
  165. package/lib/handlers/rules/image.inline.js +6 -0
  166. package/lib/handlers/rules/image.inline.js.map +1 -0
  167. package/lib/handlers/rules/image.js +5 -0
  168. package/lib/handlers/rules/image.js.map +1 -0
  169. package/lib/handlers/rules/index.d.ts +19 -0
  170. package/lib/handlers/rules/index.d.ts.map +1 -0
  171. package/lib/handlers/rules/index.js +35 -0
  172. package/lib/handlers/rules/index.js.map +1 -0
  173. package/lib/handlers/rules/js.d.ts +3 -0
  174. package/lib/handlers/rules/js.d.ts.map +1 -0
  175. package/lib/handlers/rules/js.js +5 -0
  176. package/lib/handlers/rules/js.js.map +1 -0
  177. package/lib/handlers/rules/json.d.ts +3 -0
  178. package/lib/handlers/rules/json.d.ts.map +1 -0
  179. package/lib/handlers/rules/json.js +7 -0
  180. package/lib/handlers/rules/json.js.map +1 -0
  181. package/lib/handlers/rules/svg.d.ts +3 -0
  182. package/lib/handlers/rules/svg.d.ts.map +1 -0
  183. package/lib/handlers/rules/svg.inline.d.ts +5 -0
  184. package/lib/handlers/rules/svg.inline.d.ts.map +1 -0
  185. package/lib/handlers/rules/svg.inline.js +9 -0
  186. package/lib/handlers/rules/svg.inline.js.map +1 -0
  187. package/lib/handlers/rules/svg.js +5 -0
  188. package/lib/handlers/rules/svg.js.map +1 -0
  189. package/lib/handlers/rules/toml.d.ts +3 -0
  190. package/lib/handlers/rules/toml.d.ts.map +1 -0
  191. package/lib/handlers/rules/toml.js +7 -0
  192. package/lib/handlers/rules/toml.js.map +1 -0
  193. package/lib/handlers/rules/webp.d.ts +3 -0
  194. package/lib/handlers/rules/webp.d.ts.map +1 -0
  195. package/lib/handlers/rules/webp.js +5 -0
  196. package/lib/handlers/rules/webp.js.map +1 -0
  197. package/lib/handlers/rules/xml.d.ts +3 -0
  198. package/lib/handlers/rules/xml.d.ts.map +1 -0
  199. package/lib/handlers/rules/xml.js +5 -0
  200. package/lib/handlers/rules/xml.js.map +1 -0
  201. package/lib/handlers/rules/yml.d.ts +3 -0
  202. package/lib/handlers/rules/yml.d.ts.map +1 -0
  203. package/lib/handlers/rules/yml.js +5 -0
  204. package/lib/handlers/rules/yml.js.map +1 -0
  205. package/lib/helpers/isMjs.d.ts +3 -0
  206. package/lib/helpers/isMjs.d.ts.map +1 -0
  207. package/lib/helpers/isMjs.js +2 -0
  208. package/lib/helpers/isMjs.js.map +1 -0
  209. package/lib/helpers/scriptExtension.d.ts +3 -0
  210. package/lib/helpers/scriptExtension.d.ts.map +1 -0
  211. package/lib/helpers/scriptExtension.js +5 -0
  212. package/lib/helpers/scriptExtension.js.map +1 -0
  213. package/lib/index.d.ts +12 -0
  214. package/lib/index.d.ts.map +1 -0
  215. package/lib/index.js +14 -0
  216. package/lib/index.js.map +1 -0
  217. package/lib/item/index.d.ts +84 -0
  218. package/lib/item/index.d.ts.map +1 -0
  219. package/lib/item/index.js +165 -0
  220. package/lib/item/index.js.map +1 -0
  221. package/lib/loader/index.d.ts +26 -0
  222. package/lib/loader/index.d.ts.map +1 -0
  223. package/lib/loader/index.js +28 -0
  224. package/lib/loader/index.js.map +1 -0
  225. package/lib/rule/index.d.ts +118 -0
  226. package/lib/rule/index.d.ts.map +1 -0
  227. package/lib/rule/index.js +261 -0
  228. package/lib/rule/index.js.map +1 -0
  229. package/lib/service.d.ts +84 -0
  230. package/lib/service.d.ts.map +1 -0
  231. package/lib/service.js +212 -0
  232. package/lib/service.js.map +1 -0
  233. package/lib/shared/base.d.ts +20 -0
  234. package/lib/shared/base.d.ts.map +1 -0
  235. package/lib/shared/base.js +43 -0
  236. package/lib/shared/base.js.map +1 -0
  237. package/lib/types.d.ts +52 -0
  238. package/lib/types.d.ts.map +1 -0
  239. package/lib/types.js +4 -0
  240. package/lib/types.js.map +1 -0
  241. package/package.json +97 -0
  242. package/src/config/bail.ts +4 -0
  243. package/src/config/cache.ts +4 -0
  244. package/src/config/context.ts +3 -0
  245. package/src/config/dependencies.ts +11 -0
  246. package/src/config/devtool.ts +4 -0
  247. package/src/config/entry.ts +4 -0
  248. package/src/config/experiments.ts +4 -0
  249. package/src/config/externals.ts +4 -0
  250. package/src/config/externalsType.ts +3 -0
  251. package/src/config/index.test.ts +129 -0
  252. package/src/config/index.ts +67 -0
  253. package/src/config/infrastructureLogging.ts +18 -0
  254. package/src/config/loader.ts +4 -0
  255. package/src/config/mode.ts +4 -0
  256. package/src/config/module.ts +45 -0
  257. package/src/config/name.ts +4 -0
  258. package/src/config/node.ts +4 -0
  259. package/src/config/optimization.ts +20 -0
  260. package/src/config/output/assetModuleFilename.ts +9 -0
  261. package/src/config/output/chunkFilename.ts +18 -0
  262. package/src/config/output/filename.ts +14 -0
  263. package/src/config/output/index.ts +28 -0
  264. package/src/config/parallelism.ts +6 -0
  265. package/src/config/performance.ts +4 -0
  266. package/src/config/plugins.ts +4 -0
  267. package/src/config/profile.ts +4 -0
  268. package/src/config/recordsPath.ts +7 -0
  269. package/src/config/resolve.ts +45 -0
  270. package/src/config/stats.ts +22 -0
  271. package/src/config/target.ts +9 -0
  272. package/src/handlers/index.ts +22 -0
  273. package/src/handlers/items/items.ts +93 -0
  274. package/src/handlers/loaders/loaders.ts +31 -0
  275. package/src/handlers/register.ts +47 -0
  276. package/src/handlers/rules/css.module.ts +7 -0
  277. package/src/handlers/rules/css.ts +7 -0
  278. package/src/handlers/rules/csv.test.ts +28 -0
  279. package/src/handlers/rules/csv.ts +7 -0
  280. package/src/handlers/rules/font.inline.ts +8 -0
  281. package/src/handlers/rules/font.ts +7 -0
  282. package/src/handlers/rules/html.ts +7 -0
  283. package/src/handlers/rules/image.inline.ts +8 -0
  284. package/src/handlers/rules/image.ts +7 -0
  285. package/src/handlers/rules/index.ts +35 -0
  286. package/src/handlers/rules/js.ts +7 -0
  287. package/src/handlers/rules/json.ts +10 -0
  288. package/src/handlers/rules/svg.inline.test.ts +30 -0
  289. package/src/handlers/rules/svg.inline.ts +13 -0
  290. package/src/handlers/rules/svg.ts +7 -0
  291. package/src/handlers/rules/toml.test.ts +22 -0
  292. package/src/handlers/rules/toml.ts +10 -0
  293. package/src/handlers/rules/webp.ts +7 -0
  294. package/src/handlers/rules/xml.test.ts +27 -0
  295. package/src/handlers/rules/xml.ts +7 -0
  296. package/src/handlers/rules/yml.ts +7 -0
  297. package/src/helpers/isMjs.ts +4 -0
  298. package/src/helpers/scriptExtension.ts +11 -0
  299. package/src/index.ts +17 -0
  300. package/src/item/index.ts +179 -0
  301. package/src/loader/index.ts +38 -0
  302. package/src/rule/index.test.ts +88 -0
  303. package/src/rule/index.ts +257 -0
  304. package/src/service.ts +204 -0
  305. package/src/shared/base.ts +37 -0
  306. package/src/types.ts +57 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assetModuleFilename.js","sourceRoot":"","sources":["../../../src/config/output/assetModuleFilename.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAC,MAAM,EAAE,OAAO,EAAQ,EAAE,EAAE,CAC9D,MAAM,CAAC,kCAAkC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { Bud } from '@roots/bud-framework';
2
+ interface Props {
3
+ filter: Bud[`hooks`][`filter`];
4
+ relPath: Bud[`relPath`];
5
+ }
6
+ export declare const chunkFilename: ({ filter, relPath }: Props) => string | ((pathData: import("webpack").PathData, assetInfo?: import("webpack").AssetInfo) => string);
7
+ export {};
8
+ //# sourceMappingURL=chunkFilename.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunkFilename.d.ts","sourceRoot":"","sources":["../../../src/config/output/chunkFilename.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAA;AAI7C,UAAU,KAAK;IACb,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAA;IAC9B,OAAO,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;CACxB;AAED,eAAO,MAAM,aAAa,wBAAuB,KAAK,yGAMnD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { join } from 'node:path';
2
+ import { scriptExtension } from '../../helpers/scriptExtension.js';
3
+ export const chunkFilename = ({ filter, relPath }) => filter(`build.output.chunkFilename`, join(`js`, `dynamic`, relPath(`@name.chunk`)).concat(scriptExtension(filter, `.mjs`, `.js`)));
4
+ //# sourceMappingURL=chunkFilename.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunkFilename.js","sourceRoot":"","sources":["../../../src/config/output/chunkFilename.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAA;AAI9B,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAA;AAOhE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAC,MAAM,EAAE,OAAO,EAAQ,EAAE,EAAE,CACxD,MAAM,CACJ,4BAA4B,EAC5B,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAClD,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CACvC,CACF,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { Bud } from '@roots/bud-framework';
2
+ interface Props {
3
+ filter: Bud['hooks'][`filter`];
4
+ relPath: Bud['relPath'];
5
+ }
6
+ export declare const filename: ({ filter, relPath }: Props) => string | ((pathData: import("webpack").PathData, assetInfo?: import("webpack").AssetInfo) => string);
7
+ export {};
8
+ //# sourceMappingURL=filename.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filename.d.ts","sourceRoot":"","sources":["../../../src/config/output/filename.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAA;AAI7C,UAAU,KAAK;IACb,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAA;IAC9B,OAAO,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;CACxB;AAED,eAAO,MAAM,QAAQ,wBAAuB,KAAK,yGAI9C,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { scriptExtension } from '../../helpers/scriptExtension.js';
2
+ export const filename = ({ filter, relPath }) => filter(`build.output.filename`, relPath(`js`, `@name${scriptExtension(filter, `.mjs`, `.js`)}`));
3
+ //# sourceMappingURL=filename.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filename.js","sourceRoot":"","sources":["../../../src/config/output/filename.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAA;AAOhE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAC,MAAM,EAAE,OAAO,EAAQ,EAAE,EAAE,CACnD,MAAM,CACJ,uBAAuB,EACvB,OAAO,CAAC,IAAI,EAAE,QAAQ,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,CAChE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from '../index.js';
2
+ export declare const output: Factory<`output`>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/output/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,aAAa,CAAA;AAKxC,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,QAAQ,CAqBjC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { isMjs } from '../../helpers/isMjs.js';
2
+ import { assetModuleFilename } from './assetModuleFilename.js';
3
+ import { chunkFilename } from './chunkFilename.js';
4
+ import { filename } from './filename.js';
5
+ export const output = async ({ hooks: { filter }, isProduction, path, relPath, }) => filter(`build.output`, {
6
+ assetModuleFilename: assetModuleFilename({ filter, relPath }),
7
+ chunkFilename: chunkFilename({ filter, relPath }),
8
+ clean: filter(`build.output.clean`, isProduction),
9
+ environment: filter(`build.output.environment`, undefined),
10
+ filename: filename({ filter, relPath }),
11
+ module: filter(`build.output.module`, false),
12
+ path: filter(`build.output.path`, path(`@dist`)),
13
+ pathinfo: filter(`build.output.pathinfo`),
14
+ publicPath: filter(`build.output.publicPath`, `auto`),
15
+ scriptType: filter(`build.output.scriptType`, isMjs(filter) ? `module` : false),
16
+ uniqueName: filter(`build.output.uniqueName`, `@roots/bud`),
17
+ });
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/output/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,wBAAwB,CAAA;AAE5C,OAAO,EAAC,mBAAmB,EAAC,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAEtC,MAAM,CAAC,MAAM,MAAM,GAAsB,KAAK,EAAE,EAC9C,KAAK,EAAE,EAAC,MAAM,EAAC,EACf,YAAY,EACZ,IAAI,EACJ,OAAO,GACR,EAAE,EAAE,CACH,MAAM,CAAC,cAAc,EAAE;IACrB,mBAAmB,EAAE,mBAAmB,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;IAC3D,aAAa,EAAE,aAAa,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC,oBAAoB,EAAE,YAAY,CAAC;IACjD,WAAW,EAAE,MAAM,CAAC,0BAA0B,EAAE,SAAS,CAAC;IAC1D,QAAQ,EAAE,QAAQ,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC,qBAAqB,EAAE,KAAK,CAAC;IAC5C,IAAI,EAAE,MAAM,CAAC,mBAAmB,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC,yBAAyB,EAAE,MAAM,CAAC;IACrD,UAAU,EAAE,MAAM,CAChB,yBAAyB,EACzB,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CACjC;IACD,UAAU,EAAE,MAAM,CAAC,yBAAyB,EAAE,YAAY,CAAC;CAC5D,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from './index.js';
2
+ export declare const parallelism: Factory<`parallelism`>;
3
+ //# sourceMappingURL=parallelism.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parallelism.d.ts","sourceRoot":"","sources":["../../src/config/parallelism.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,aAAa,CACyB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { cpus } from 'node:os';
2
+ export const parallelism = async ({ hooks }) => hooks.filter(`build.parallelism`, 10 * Math.max(cpus().length - 1, 1));
3
+ //# sourceMappingURL=parallelism.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parallelism.js","sourceRoot":"","sources":["../../src/config/parallelism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,SAAS,CAAA;AAI5B,MAAM,CAAC,MAAM,WAAW,GAA2B,KAAK,EAAE,EAAC,KAAK,EAAC,EAAE,EAAE,CACnE,KAAK,CAAC,MAAM,CAAC,mBAAmB,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from './index.js';
2
+ export declare const performance: Factory<`performance`>;
3
+ //# sourceMappingURL=performance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"performance.d.ts","sourceRoot":"","sources":["../../src/config/performance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,aAAa,CACI,CAAA"}
@@ -0,0 +1,2 @@
1
+ export const performance = async ({ hooks }) => hooks.filter(`build.performance`, { hints: false });
2
+ //# sourceMappingURL=performance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"performance.js","sourceRoot":"","sources":["../../src/config/performance.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAA2B,KAAK,EAAE,EAAC,KAAK,EAAC,EAAE,EAAE,CACnE,KAAK,CAAC,MAAM,CAAC,mBAAmB,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from './index.js';
2
+ export declare const plugins: Factory<`plugins`>;
3
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/config/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,SAAS,CACoC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export const plugins = async (app) => await app.hooks.filterAsync(`build.plugins`, await app.extensions.make());
2
+ //# sourceMappingURL=plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/config/plugins.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAuB,KAAK,EAAC,GAAG,EAAC,EAAE,CACrD,MAAM,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,eAAe,EAAE,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from './index.js';
2
+ export declare const profile: Factory<`profile`>;
3
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/config/profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,SAAS,CACO,CAAA"}
@@ -0,0 +1,2 @@
1
+ export const profile = async (app) => app.hooks.filter(`build.profile`, undefined);
2
+ //# sourceMappingURL=profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/config/profile.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAuB,KAAK,EAAC,GAAG,EAAC,EAAE,CACrD,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,EAAE,SAAS,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from './index.js';
2
+ export declare const recordsPath: Factory<`recordsPath`>;
3
+ //# sourceMappingURL=recordsPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordsPath.d.ts","sourceRoot":"","sources":["../../src/config/recordsPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,aAAa,CAI5C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export const recordsPath = async (bud) => bud.hooks.filter(`build.recordsPath`, bud.path(`@storage`, bud.label, `modules.json`));
2
+ //# sourceMappingURL=recordsPath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordsPath.js","sourceRoot":"","sources":["../../src/config/recordsPath.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAA2B,KAAK,EAAC,GAAG,EAAC,EAAE,CAC7D,GAAG,CAAC,KAAK,CAAC,MAAM,CACd,mBAAmB,EACnB,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,CAAC,KAAK,EAAE,cAAc,CAAC,CAChD,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from './index.js';
2
+ export declare const resolve: Factory<`resolve`>;
3
+ //# sourceMappingURL=resolve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/config/resolve.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,SAAS,CAStC,CAAA"}
@@ -0,0 +1,30 @@
1
+ export const resolve = async (bud) => {
2
+ const modules = await getModules(bud);
3
+ const value = {
4
+ alias: await getAlias(bud),
5
+ extensions: getExtensions(bud),
6
+ modules,
7
+ };
8
+ return await bud.hooks.filterAsync(`build.resolve`, value);
9
+ };
10
+ const getAlias = async (bud) => await bud.hooks.filterAsync(`build.resolve.alias`, {
11
+ '@src': bud.path(`@src`),
12
+ });
13
+ const getExtensions = (bud) => Array.from(bud.hooks.filter(`build.resolve.extensions`, new Set([
14
+ `.mjs`,
15
+ `.js`,
16
+ `.jsx`,
17
+ `.css`,
18
+ `.json`,
19
+ `.wasm`,
20
+ `.yml`,
21
+ `.yaml`,
22
+ `.xml`,
23
+ `.toml`,
24
+ `.csv`,
25
+ ])));
26
+ const getModules = async (bud) => await bud.hooks.filterAsync(`build.resolve.modules`, [
27
+ bud.hooks.filter(`location.@src`),
28
+ bud.hooks.filter(`location.@modules`),
29
+ ]);
30
+ //# sourceMappingURL=resolve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../src/config/resolve.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,OAAO,GAAuB,KAAK,EAAC,GAAG,EAAC,EAAE;IACrD,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,GAAG,CAAC,CAAA;IACrC,MAAM,KAAK,GAAG;QACZ,KAAK,EAAE,MAAM,QAAQ,CAAC,GAAG,CAAC;QAC1B,UAAU,EAAE,aAAa,CAAC,GAAG,CAAC;QAC9B,OAAO;KACR,CAAA;IAED,OAAO,MAAM,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,eAAe,EAAE,KAAK,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,MAAM,QAAQ,GAAG,KAAK,EAAE,GAAQ,EAAE,EAAE,CAClC,MAAM,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,qBAAqB,EAAE;IACjD,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;CACzB,CAAC,CAAA;AAEJ,MAAM,aAAa,GAAG,CAAC,GAAQ,EAAE,EAAE,CACjC,KAAK,CAAC,IAAI,CACR,GAAG,CAAC,KAAK,CAAC,MAAM,CACd,0BAA0B,EAC1B,IAAI,GAAG,CAAC;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;CACP,CAAC,CACH,CACF,CAAA;AAEH,MAAM,UAAU,GAAG,KAAK,EAAE,GAAQ,EAAE,EAAE,CACpC,MAAM,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,uBAAuB,EAAE;IACnD,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;IACjC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,CAAC;CACtC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from './index.js';
2
+ export declare const stats: Factory<`stats`>;
3
+ //# sourceMappingURL=stats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/config/stats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,OAAO,CAmBhC,CAAA"}
@@ -0,0 +1,17 @@
1
+ export const stats = async (app) => app.hooks.filter(`build.stats`, app.isProduction
2
+ ? {
3
+ all: false,
4
+ assets: true,
5
+ children: false,
6
+ entrypoints: true,
7
+ errors: true,
8
+ errorsCount: true,
9
+ hash: true,
10
+ outputPath: true,
11
+ modules: true,
12
+ timings: true,
13
+ warnings: true,
14
+ warningsCount: true,
15
+ }
16
+ : { preset: `none` });
17
+ //# sourceMappingURL=stats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.js","sourceRoot":"","sources":["../../src/config/stats.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAqB,KAAK,EAAC,GAAG,EAAC,EAAE,CACjD,GAAG,CAAC,KAAK,CAAC,MAAM,CACd,aAAa,EACb,GAAG,CAAC,YAAY;IACd,CAAC,CAAC;QACE,GAAG,EAAE,KAAK;QACV,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,IAAI;QACV,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,aAAa,EAAE,IAAI;KACpB;IACH,CAAC,CAAC,EAAC,MAAM,EAAE,MAAM,EAAC,CACrB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from './index.js';
2
+ export declare const target: Factory<`target`>;
3
+ //# sourceMappingURL=target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../src/config/target.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,QAAQ,CAMlC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export const target = async ({ context, hooks, root }) => hooks.filter(`build.target`, context.manifest?.browserslist
2
+ ? `browserslist:${root.path(`package.json`)}`
3
+ : `web`);
4
+ //# sourceMappingURL=target.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"target.js","sourceRoot":"","sources":["../../src/config/target.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAsB,KAAK,EAAE,EAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,EAAE,EAAE,CACxE,KAAK,CAAC,MAAM,CACV,cAAc,EACd,OAAO,CAAC,QAAQ,EAAE,YAAY;IAC5B,CAAC,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;IAC7C,CAAC,CAAC,KAAK,CACV,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { Bud } from '@roots/bud-framework';
2
+ import type { Rule } from '../rule/index.js';
3
+ import * as items from './items/items.js';
4
+ import * as loaders from './loaders/loaders.js';
5
+ import { register } from './register.js';
6
+ import { rules } from './rules/index.js';
7
+ export interface Props {
8
+ filter: Bud[`hooks`][`filter`];
9
+ makeItem: Bud[`build`][`makeItem`];
10
+ makeLoader: Bud[`build`][`makeLoader`];
11
+ makeRule: Bud[`build`][`makeRule`];
12
+ isProduction: Bud[`isProduction`];
13
+ path: Bud[`path`];
14
+ }
15
+ export interface Factory<T = Rule> {
16
+ (props: Props): T;
17
+ }
18
+ export { items, loaders, register, rules };
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAA;AAE7C,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AACtC,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAA;AAEtC,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAA;IAC9B,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAA;IAClC,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAA;IACtC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAA;IAClC,YAAY,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IACjC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAClB;AAED,MAAM,WAAW,OAAO,CAAC,CAAC,GAAG,IAAI;IAC/B,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAA;CAClB;AAED,OAAO,EAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import * as items from './items/items.js';
2
+ import * as loaders from './loaders/loaders.js';
3
+ import { register } from './register.js';
4
+ import { rules } from './rules/index.js';
5
+ export { items, loaders, register, rules };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AACtC,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAA;AAetC,OAAO,EAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAA"}
@@ -0,0 +1,47 @@
1
+ import type { Item } from '@roots/bud-framework/services/build';
2
+ import type { Factory } from '../index.js';
3
+ /**
4
+ * CSS loader
5
+ */
6
+ export declare const css: Factory<Item>;
7
+ /**
8
+ * CSS module loader
9
+ */
10
+ export declare const cssModule: Factory<Item>;
11
+ /**
12
+ * CSV loader
13
+ */
14
+ export declare const csv: Factory<Item>;
15
+ /**
16
+ * HTML loader
17
+ */
18
+ export declare const html: Factory<Item>;
19
+ /**
20
+ * Style loader
21
+ */
22
+ export declare const style: Factory<Item>;
23
+ /**
24
+ * Markdown loader
25
+ */
26
+ export declare const md: Factory<Item>;
27
+ /**
28
+ * MiniCss loader
29
+ */
30
+ export declare const minicss: Factory<Item>;
31
+ /**
32
+ * Raw loader
33
+ */
34
+ export declare const raw: Factory<Item>;
35
+ /**
36
+ * File loader
37
+ */
38
+ export declare const file: Factory<Item>;
39
+ /**
40
+ * Xml loader
41
+ */
42
+ export declare const xml: Factory<Item>;
43
+ /**
44
+ * Yml loader
45
+ */
46
+ export declare const yml: Factory<Item>;
47
+ //# sourceMappingURL=items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/handlers/items/items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,qCAAqC,CAAA;AAG7D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,aAAa,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,OAAO,CAAC,IAAI,CAUvB,CAAA;AAEP;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,IAAI,CAU7B,CAAA;AAEP;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,OAAO,CAAC,IAAI,CACe,CAAA;AAE7C;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,IAAI,CACgB,CAAA;AAE/C;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,IAAI,CACiB,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,EAAE,EAAE,OAAO,CAAC,IAAI,CACc,CAAA;AAE3C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,IAAI,CAM3B,CAAA;AAEP;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,OAAO,CAAC,IAAI,CACe,CAAA;AAE7C;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,IAAI,CACgB,CAAA;AAE/C;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,OAAO,CAAC,IAAI,CACe,CAAA;AAE7C;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,OAAO,CAAC,IAAI,CACe,CAAA"}
@@ -0,0 +1,69 @@
1
+ import isBoolean from '@roots/bud-support/lodash/isBoolean';
2
+ /**
3
+ * CSS loader
4
+ */
5
+ export const css = ({ makeItem }) => makeItem()
6
+ .setIdent(`css`)
7
+ .setLoader(`css`)
8
+ .setOptions(({ build: { rules }, hooks: { filter } }) => ({
9
+ importLoaders: rules.css.getUse().length - 2,
10
+ modules: false,
11
+ sourceMap: isBoolean(filter(`build.devtool`, false))
12
+ ? filter(`build.devtool`, false)
13
+ : true,
14
+ }));
15
+ /**
16
+ * CSS module loader
17
+ */
18
+ export const cssModule = ({ makeItem }) => makeItem()
19
+ .setIdent(`cssModule`)
20
+ .setLoader(`css`)
21
+ .setOptions(({ build: { rules }, hooks: { filter } }) => ({
22
+ importLoaders: rules.cssModule.getUse().length - 2,
23
+ modules: true,
24
+ sourceMap: isBoolean(filter(`build.devtool`, false))
25
+ ? filter(`build.devtool`, false)
26
+ : true,
27
+ }));
28
+ /**
29
+ * CSV loader
30
+ */
31
+ export const csv = ({ makeItem }) => makeItem().setLoader(`csv`).setIdent(`csv`);
32
+ /**
33
+ * HTML loader
34
+ */
35
+ export const html = ({ makeItem }) => makeItem().setLoader(`html`).setIdent(`html`);
36
+ /**
37
+ * Style loader
38
+ */
39
+ export const style = ({ makeItem }) => makeItem().setLoader(`style`).setIdent(`style`);
40
+ /**
41
+ * Markdown loader
42
+ */
43
+ export const md = ({ makeItem }) => makeItem().setIdent(`md`).setLoader(`md`);
44
+ /**
45
+ * MiniCss loader
46
+ */
47
+ export const minicss = ({ makeItem }) => makeItem()
48
+ .setLoader(`minicss`)
49
+ .setIdent(`minicss`)
50
+ .setOptions(app => ({
51
+ publicPath: app.hooks.filter(`build.output.publicPath`),
52
+ }));
53
+ /**
54
+ * Raw loader
55
+ */
56
+ export const raw = ({ makeItem }) => makeItem().setLoader(`raw`).setIdent(`raw`);
57
+ /**
58
+ * File loader
59
+ */
60
+ export const file = ({ makeItem }) => makeItem().setLoader(`file`).setIdent(`file`);
61
+ /**
62
+ * Xml loader
63
+ */
64
+ export const xml = ({ makeItem }) => makeItem().setLoader(`xml`).setIdent(`xml`);
65
+ /**
66
+ * Yml loader
67
+ */
68
+ export const yml = ({ makeItem }) => makeItem().setLoader(`yml`).setIdent(`yml`);
69
+ //# sourceMappingURL=items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/handlers/items/items.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,12 @@
1
+ import type { Loader } from '@roots/bud-framework/services/build';
2
+ import type { Factory } from '../index.js';
3
+ export declare const css: Factory<Loader>;
4
+ export declare const csv: Factory<Loader>;
5
+ export declare const file: Factory<Loader>;
6
+ export declare const html: Factory<Loader>;
7
+ export declare const remark: Factory<Loader>;
8
+ export declare const minicss: Factory<Loader>;
9
+ export declare const style: Factory<Loader>;
10
+ export declare const xml: Factory<Loader>;
11
+ export declare const yml: Factory<Loader>;
12
+ //# sourceMappingURL=loaders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loaders.d.ts","sourceRoot":"","sources":["../../../src/handlers/loaders/loaders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,qCAAqC,CAAA;AAG/D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,aAAa,CAAA;AAExC,eAAO,MAAM,GAAG,EAAE,OAAO,CAAC,MAAM,CACa,CAAA;AAE7C,eAAO,MAAM,GAAG,EAAE,OAAO,CAAC,MAAM,CACa,CAAA;AAE7C,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,MAAM,CACa,CAAA;AAE9C,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,MAAM,CACa,CAAA;AAE9C,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,MAAM,CACa,CAAA;AAEhD,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,MAAM,CACR,CAAA;AAE5B,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,MAAM,CACa,CAAA;AAE/C,eAAO,MAAM,GAAG,EAAE,OAAO,CAAC,MAAM,CACa,CAAA;AAE7C,eAAO,MAAM,GAAG,EAAE,OAAO,CAAC,MAAM,CACa,CAAA"}
@@ -0,0 +1,11 @@
1
+ import * as MiniCss from '@roots/bud-support/mini-css-extract-plugin';
2
+ export const css = ({ makeLoader }) => makeLoader(`@roots/bud-support/css-loader`);
3
+ export const csv = ({ makeLoader }) => makeLoader(`@roots/bud-support/csv-loader`);
4
+ export const file = ({ makeLoader }) => makeLoader(`@roots/bud-support/file-loader`);
5
+ export const html = ({ makeLoader }) => makeLoader(`@roots/bud-support/html-loader`);
6
+ export const remark = ({ makeLoader }) => makeLoader(`@roots/bud-support/remark-loader`);
7
+ export const minicss = ({ makeLoader }) => makeLoader(MiniCss.loader);
8
+ export const style = ({ makeLoader }) => makeLoader(`@roots/bud-support/style-loader`);
9
+ export const xml = ({ makeLoader }) => makeLoader(`@roots/bud-support/xml-loader`);
10
+ export const yml = ({ makeLoader }) => makeLoader(`@roots/bud-support/yml-loader`);
11
+ //# sourceMappingURL=loaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loaders.js","sourceRoot":"","sources":["../../../src/handlers/loaders/loaders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,4CAA4C,CAAA;AAIrE,MAAM,CAAC,MAAM,GAAG,GAAoB,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CACnD,UAAU,CAAC,+BAA+B,CAAC,CAAA;AAE7C,MAAM,CAAC,MAAM,GAAG,GAAoB,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CACnD,UAAU,CAAC,+BAA+B,CAAC,CAAA;AAE7C,MAAM,CAAC,MAAM,IAAI,GAAoB,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CACpD,UAAU,CAAC,gCAAgC,CAAC,CAAA;AAE9C,MAAM,CAAC,MAAM,IAAI,GAAoB,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CACpD,UAAU,CAAC,gCAAgC,CAAC,CAAA;AAE9C,MAAM,CAAC,MAAM,MAAM,GAAoB,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CACtD,UAAU,CAAC,kCAAkC,CAAC,CAAA;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAoB,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CACvD,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;AAE5B,MAAM,CAAC,MAAM,KAAK,GAAoB,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CACrD,UAAU,CAAC,iCAAiC,CAAC,CAAA;AAE/C,MAAM,CAAC,MAAM,GAAG,GAAoB,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CACnD,UAAU,CAAC,+BAA+B,CAAC,CAAA;AAE7C,MAAM,CAAC,MAAM,GAAG,GAAoB,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CACnD,UAAU,CAAC,+BAA+B,CAAC,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { Bud } from '@roots/bud-framework';
2
+ import type { Factory } from './index.js';
3
+ /**
4
+ * Registry factory curry function
5
+ */
6
+ export interface makeRegister {
7
+ <T, F extends CallableFunction>(props: Partial<Bud>, setRule: F): <K extends keyof T & string>([key, factory]: [K, Factory<T[K]>]) => void;
8
+ }
9
+ /**
10
+ * Register built-in {@link loaders}, {@link items} and {@link rules}
11
+ */
12
+ export declare function register(bud: Bud): Promise<void>;
13
+ export declare const makeRegister: makeRegister;
14
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/handlers/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAA;AAE7C,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAKvC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,CAAC,CAAC,EAAE,CAAC,SAAS,gBAAgB,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,CAChE,CAAC,SAAS,MAAM,CAAC,GAAG,MAAM,EAC1B,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA;CAC9C;AAED;;GAEG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,GAAG,iBAYtC;AAED,eAAO,MAAM,YAAY,EAAE,YAatB,CAAA"}
@@ -0,0 +1,26 @@
1
+ import * as items from './items/items.js';
2
+ import * as loaders from './loaders/loaders.js';
3
+ import { rules } from './rules/index.js';
4
+ /**
5
+ * Register built-in {@link loaders}, {@link items} and {@link rules}
6
+ */
7
+ export async function register(bud) {
8
+ Object.entries(loaders).map(makeRegister(bud, bud.build.setLoader));
9
+ Object.entries(items).map(makeRegister(bud, bud.build.setItem));
10
+ // this is a bit of a hack
11
+ // that sets the base stylesheet loader
12
+ // to minicss in production and style-loader in development
13
+ bud.build.items.precss = bud.isProduction
14
+ ? bud.build.items.minicss
15
+ : bud.build.items.style;
16
+ Object.entries(rules).map(makeRegister(bud, bud.build.setRule));
17
+ }
18
+ export const makeRegister = ({ build, hooks, isProduction, path }, setRule) => ([key, factory]) => setRule(key, factory({
19
+ filter: hooks.filter,
20
+ makeItem: build.makeItem,
21
+ makeLoader: build.makeLoader,
22
+ makeRule: build.makeRule,
23
+ isProduction,
24
+ path,
25
+ }));
26
+ //# sourceMappingURL=register.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.js","sourceRoot":"","sources":["../../src/handlers/register.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAA;AAWtC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,GAAQ;IACrC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAA;IACnE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;IAE/D,0BAA0B;IAC1B,uCAAuC;IACvC,2DAA2D;IAC3D,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,YAAY;QACvC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO;QACzB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAA;IAEzB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;AACjE,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GACvB,CAAC,EAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAC,EAAE,OAAO,EAAE,EAAE,CAChD,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,EAAE,CACjB,OAAO,CACL,GAAG,EACH,OAAO,CAAC;IACN,MAAM,EAAE,KAAK,CAAC,MAAM;IACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;IACxB,UAAU,EAAE,KAAK,CAAC,UAAU;IAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;IACxB,YAAY;IACZ,IAAI;CACL,CAAC,CACH,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from '../index.js';
2
+ export declare const css: Factory;
3
+ //# sourceMappingURL=css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/handlers/rules/css.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,aAAa,CAAA;AAExC,eAAO,MAAM,GAAG,EAAE,OAIY,CAAA"}
@@ -0,0 +1,5 @@
1
+ export const css = ({ filter, makeRule }) => makeRule()
2
+ .setTest(filter(`pattern.css`))
3
+ .setInclude([({ path }) => path(`@src`)])
4
+ .setUse([`precss`, `css`]);
5
+ //# sourceMappingURL=css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.js","sourceRoot":"","sources":["../../../src/handlers/rules/css.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,GAAG,GAAY,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAE,EAAE,CACjD,QAAQ,EAAE;KACP,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;KAC9B,UAAU,CAAC,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;KACtC,MAAM,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from '../index.js';
2
+ export declare const cssModule: Factory;
3
+ //# sourceMappingURL=css.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.module.d.ts","sourceRoot":"","sources":["../../../src/handlers/rules/css.module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,aAAa,CAAA;AAExC,eAAO,MAAM,SAAS,EAAE,OAIY,CAAA"}
@@ -0,0 +1,5 @@
1
+ export const cssModule = ({ filter, makeRule, path }) => makeRule()
2
+ .setTest(filter(`pattern.cssModule`))
3
+ .setInclude([() => path(`@src`)])
4
+ .setUse([`precss`, `cssModule`]);
5
+ //# sourceMappingURL=css.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.module.js","sourceRoot":"","sources":["../../../src/handlers/rules/css.module.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAY,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAC,EAAE,EAAE,CAC7D,QAAQ,EAAE;KACP,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;KACpC,UAAU,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;KAChC,MAAM,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from '../index.js';
2
+ export declare const csv: Factory;
3
+ //# sourceMappingURL=csv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csv.d.ts","sourceRoot":"","sources":["../../../src/handlers/rules/csv.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,aAAa,CAAA;AAExC,eAAO,MAAM,GAAG,EAAE,OAIE,CAAA"}
@@ -0,0 +1,5 @@
1
+ export const csv = ({ makeRule, path, filter }) => makeRule()
2
+ .setInclude([path()])
3
+ .setTest(() => filter(`pattern.csv`))
4
+ .setUse([`csv`]);
5
+ //# sourceMappingURL=csv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csv.js","sourceRoot":"","sources":["../../../src/handlers/rules/csv.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,GAAG,GAAY,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAC,EAAE,EAAE,CACvD,QAAQ,EAAE;KACP,UAAU,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;KACpB,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;KACpC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from '../index.js';
2
+ export declare const font: Factory;
3
+ //# sourceMappingURL=font.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../../src/handlers/rules/font.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,aAAa,CAAA;AAExC,eAAO,MAAM,IAAI,EAAE,OAIkB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Factory } from '../index.js';
2
+ export declare const inlineFont: Factory;
3
+ //# sourceMappingURL=font.inline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"font.inline.d.ts","sourceRoot":"","sources":["../../../src/handlers/rules/font.inline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,aAAa,CAAA;AAExC,eAAO,MAAM,UAAU,EAAE,OAKG,CAAA"}