@roots/bud-build 5.8.7 → 6.2.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 (77) hide show
  1. package/README.md +43 -22
  2. package/{types/Build → lib}/config/builder.d.ts +0 -0
  3. package/lib/config/builder.d.ts.map +1 -0
  4. package/lib/{cjs/Build/config → config}/builder.js +29 -14
  5. package/lib/config/builder.js.map +1 -0
  6. package/lib/config/filenameFormat.d.ts +13 -0
  7. package/lib/config/filenameFormat.d.ts.map +1 -0
  8. package/lib/config/filenameFormat.js +21 -0
  9. package/lib/config/filenameFormat.js.map +1 -0
  10. package/lib/config/index.d.ts +3 -0
  11. package/lib/config/index.d.ts.map +1 -0
  12. package/lib/config/index.js +3 -0
  13. package/lib/config/index.js.map +1 -0
  14. package/lib/handlers/items.d.ts +75 -0
  15. package/lib/handlers/items.d.ts.map +1 -0
  16. package/lib/handlers/items.js +99 -0
  17. package/lib/handlers/items.js.map +1 -0
  18. package/lib/handlers/loaders.d.ts +57 -0
  19. package/lib/handlers/loaders.d.ts.map +1 -0
  20. package/lib/handlers/loaders.js +82 -0
  21. package/lib/handlers/loaders.js.map +1 -0
  22. package/lib/handlers/rules.d.ts +85 -0
  23. package/lib/handlers/rules.d.ts.map +1 -0
  24. package/lib/{cjs → handlers}/rules.js +18 -32
  25. package/lib/handlers/rules.js.map +1 -0
  26. package/lib/index.d.ts +14 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +16 -0
  29. package/lib/index.js.map +1 -0
  30. package/{types/Item/index.d.ts → lib/item.d.ts} +3 -5
  31. package/lib/item.d.ts.map +1 -0
  32. package/lib/{cjs/Item/index.js → item.js} +12 -22
  33. package/lib/item.js.map +1 -0
  34. package/{types/Loader/index.d.ts → lib/loader.d.ts} +4 -8
  35. package/lib/loader.d.ts.map +1 -0
  36. package/lib/{cjs/Loader/index.js → loader.js} +3 -9
  37. package/lib/loader.js.map +1 -0
  38. package/{types/Rule/index.d.ts → lib/rule.d.ts} +14 -16
  39. package/lib/rule.d.ts.map +1 -0
  40. package/lib/{cjs/Rule/index.js → rule.js} +22 -32
  41. package/lib/rule.js.map +1 -0
  42. package/{types/Build/index.d.ts → lib/service.d.ts} +15 -27
  43. package/lib/service.d.ts.map +1 -0
  44. package/lib/service.js +216 -0
  45. package/lib/service.js.map +1 -0
  46. package/lib/shared/base.d.ts +14 -0
  47. package/lib/shared/base.d.ts.map +1 -0
  48. package/lib/shared/base.js +29 -0
  49. package/lib/shared/base.js.map +1 -0
  50. package/package.json +45 -38
  51. package/lib/cjs/Build/config/filenameFormat.js +0 -17
  52. package/lib/cjs/Build/config/index.js +0 -28
  53. package/lib/cjs/Build/index.js +0 -274
  54. package/lib/cjs/index.js +0 -50
  55. package/lib/cjs/items.js +0 -119
  56. package/lib/cjs/loaders.js +0 -63
  57. package/lib/cjs/shared/Base.js +0 -31
  58. package/lib/tsconfig.tsbuildinfo +0 -1
  59. package/types/Build/config/builder.d.ts.map +0 -1
  60. package/types/Build/config/filenameFormat.d.ts +0 -13
  61. package/types/Build/config/filenameFormat.d.ts.map +0 -1
  62. package/types/Build/config/index.d.ts +0 -3
  63. package/types/Build/config/index.d.ts.map +0 -1
  64. package/types/Build/index.d.ts.map +0 -1
  65. package/types/Item/index.d.ts.map +0 -1
  66. package/types/Loader/index.d.ts.map +0 -1
  67. package/types/Rule/index.d.ts.map +0 -1
  68. package/types/index.d.ts +0 -17
  69. package/types/index.d.ts.map +0 -1
  70. package/types/items.d.ts +0 -73
  71. package/types/items.d.ts.map +0 -1
  72. package/types/loaders.d.ts +0 -47
  73. package/types/loaders.d.ts.map +0 -1
  74. package/types/rules.d.ts +0 -84
  75. package/types/rules.d.ts.map +0 -1
  76. package/types/shared/Base.d.ts +0 -9
  77. package/types/shared/Base.d.ts.map +0 -1
package/README.md CHANGED
@@ -1,53 +1,74 @@
1
- <p align="center">
2
- <img src="https://cdn.roots.io/app/uploads/logo-bud.svg" height="100" alt="Bud" />
3
- </p>
1
+ <p align="center"><img src="https://cdn.roots.io/app/uploads/logo-bud.svg" height="100" alt="bud.js" /></p>
4
2
 
5
3
  <p align="center">
6
- <img alt="MIT License" src="https://img.shields.io/github/license/roots/bud?color=%23525ddc&style=flat-square" /> <img alt="npm" src="https://img.shields.io/npm/v/@roots/bud.svg?color=%23525ddc&style=flat-square" /> <img alt="Follow Roots" src="https://img.shields.io/twitter/follow/rootswp.svg?color=%23525ddc&style=flat-square" />
4
+ <img alt="MIT License" src="https://img.shields.io/github/license/roots/bud?color=%23525ddc&style=flat-square" />
5
+ <img alt="npm" src="https://img.shields.io/npm/v/@roots/bud.svg?color=%23525ddc&style=flat-square" />
6
+ <img alt="Follow Roots" src="https://img.shields.io/twitter/follow/rootswp.svg?color=%23525ddc&style=flat-square" />
7
7
  </p>
8
8
 
9
- <h1 align="center">
10
- <strong>@roots/bud-build</strong>
11
- </h1>
9
+ <h1 align="center"><strong>@roots/bud-build</strong></h1>
12
10
 
13
11
  <p align="center">
14
12
  Bud webpack config build controller
15
13
  </p>
16
14
 
15
+ ---
16
+
17
17
  ## Installation
18
18
 
19
19
  Install **@roots/bud-build** to your project.
20
20
 
21
- ```shell
21
+ Yarn:
22
+
23
+ ```sh
22
24
  yarn add @roots/bud-build --dev
23
25
  ```
24
26
 
25
- ## Documentation
27
+ npm:
28
+
29
+ ```sh
30
+ npm install @roots/bud-build --save-dev
31
+ ```
32
+
33
+ ## Usage
34
+
35
+ ## Contributing
36
+
37
+ Contributions are welcome from everyone.
38
+
39
+ We have [contribution guidelines](https://github.com/roots/guidelines/blob/master/CONTRIBUTING.md) to help you get started.
26
40
 
27
- For more information on utilizing this package [check out our dedicated docs](https://bud.js.org)
41
+ ## License
42
+
43
+ @roots/bud-build is licensed under MIT.
28
44
 
29
45
  ## Community
30
46
 
31
47
  Keep track of development and community news.
32
48
 
33
- - Join us on Roots Slack by becoming a [GitHub sponsor](https://github.com/sponsors/roots)
49
+ - Join us on Roots Slack by becoming a [GitHub
50
+ sponsor](https://github.com/sponsors/roots)
34
51
  - Participate on the [Roots Discourse](https://discourse.roots.io/)
35
52
  - Follow [@rootswp on Twitter](https://twitter.com/rootswp)
36
53
  - Read and subscribe to the [Roots Blog](https://roots.io/blog/)
37
54
  - Subscribe to the [Roots Newsletter](https://roots.io/subscribe/)
38
55
 
39
- ## Contributing
40
-
41
- Contributions are welcome from everyone.
42
-
43
- We have [contribution guidelines](https://github.com/roots/guidelines/blob/master/CONTRIBUTING.md) to help you get started.
44
-
45
56
  ## Sponsors
46
57
 
47
58
  Help support our open-source development efforts by [becoming a patron](https://www.patreon.com/rootsdev).
48
59
 
49
- <a href="https://k-m.com/"><img src="https://cdn.roots.io/app/uploads/km-digital.svg" alt="KM Digital" width="200" height="150"/></a>
50
- <a href="https://carrot.com/"><img src="https://cdn.roots.io/app/uploads/carrot.svg" alt="Carrot" width="200" height="150"/></a>
51
- <a href="https://www.c21redwood.com/"><img src="https://cdn.roots.io/app/uploads/c21redwood.svg" alt="C21 Redwood Realty" width="200" height="150"/></a>
52
- <a href="https://wordpress.com/"><img src="https://cdn.roots.io/app/uploads/wordpress.svg" alt="WordPress.com" width="200" height="150"/></a>
53
- <a href="https://pantheon.io/"><img src="https://cdn.roots.io/app/uploads/pantheon.svg" alt="Pantheon" width="200" height="150"/></a>
60
+ <a href="https://k-m.com/">
61
+ <img src="https://cdn.roots.io/app/uploads/km-digital.svg" alt="KM Digital" width="200" height="150"/>
62
+ </a>
63
+ <a href="https://carrot.com/">
64
+ <img src="https://cdn.roots.io/app/uploads/carrot.svg" alt="Carrot" width="200" height="150"/>
65
+ </a>
66
+ <a href="https://www.c21redwood.com/">
67
+ <img src="https://cdn.roots.io/app/uploads/c21redwood.svg" alt="C21 Redwood Realty" width="200" height="150"/>
68
+ </a>
69
+ <a href="https://wordpress.com/">
70
+ <img src="https://cdn.roots.io/app/uploads/wordpress.svg" alt="WordPress.com" width="200" height="150"/>
71
+ </a>
72
+ <a href="https://pantheon.io/">
73
+ <img src="https://cdn.roots.io/app/uploads/pantheon.svg" alt="Pantheon" width="200" height="150"/>
74
+ </a>
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/config/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAA;AAI7C;;;;;;;;;;;GAWG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CA8GnD"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.build = void 0;
4
- const filenameFormat_1 = require("./filenameFormat");
1
+ import { filenameFormat } from './filenameFormat.js';
5
2
  /**
6
3
  * Initializes configuration builder hooks
7
4
  *
@@ -14,11 +11,26 @@ const filenameFormat_1 = require("./filenameFormat");
14
11
  *
15
12
  * @public
16
13
  */
17
- async function build(app) {
14
+ export async function build(app) {
18
15
  app.hooks
19
16
  .on('build.bail', () => app.isProduction)
20
17
  .hooks.on('build.cache', () => app.cache.configuration)
21
18
  .hooks.on('build.context', () => app.context.projectDir)
19
+ .hooks.on('build.externalsType', 'var')
20
+ .hooks.on('build.experiments.buildHttp', undefined)
21
+ .hooks.on('build.experiments', () => ({
22
+ asyncWebAssembly: app.hooks.filter('build.experiments.asyncWebAssembly'),
23
+ backCompat: app.hooks.filter('build.experiments.backCompat'),
24
+ buildHttp: app.hooks.filter('build.experiments.buildHttp'),
25
+ cacheUnaffected: app.hooks.filter('build.experiments.cacheUnaffected'),
26
+ css: app.hooks.filter('build.experiments.css'),
27
+ futureDefaults: app.hooks.filter('build.experiments.futureDefaults'),
28
+ layers: app.hooks.filter('build.experiments.layers'),
29
+ lazyCompilation: app.hooks.filter('build.experiments.lazyCompilation'),
30
+ topLevelAwait: app.hooks.filter('build.experiments.topLevelAwait'),
31
+ outputModule: app.hooks.filter('build.experiments.outputModule'),
32
+ syncWebAssembly: app.hooks.filter('build.experiments.syncWebAssembly'),
33
+ }))
22
34
  .hooks.on('build.infrastructureLogging', () => ({
23
35
  console: app.hooks.filter('build.infrastructureLogging.console'),
24
36
  level: app.hooks.filter('build.infrastructureLogging.level'),
@@ -31,9 +43,7 @@ async function build(app) {
31
43
  }))
32
44
  .hooks.on('build.module.rules', () => [
33
45
  ...app.hooks.filter('build.module.rules.before'),
34
- {
35
- oneOf: app.hooks.filter('build.module.rules.oneOf'),
36
- },
46
+ { oneOf: app.hooks.filter('build.module.rules.oneOf') },
37
47
  ...app.hooks.filter('build.module.rules.after'),
38
48
  ])
39
49
  .hooks.on('build.module.rules.oneOf', () => Object.values(app.build.rules).map(rule => rule.toWebpack()))
@@ -42,7 +52,9 @@ async function build(app) {
42
52
  assetModuleFilename: app.hooks.filter('build.output.assetModuleFilename'),
43
53
  chunkFilename: app.hooks.filter('build.output.chunkFilename'),
44
54
  clean: app.hooks.filter('build.output.clean'),
55
+ environment: app.hooks.filter('build.output.environment'),
45
56
  filename: app.hooks.filter('build.output.filename'),
57
+ module: app.hooks.filter('build.output.module'),
46
58
  path: app.hooks.filter('build.output.path'),
47
59
  pathinfo: app.hooks.filter('build.output.pathinfo'),
48
60
  publicPath: app.hooks.filter('build.output.publicPath'),
@@ -51,9 +63,12 @@ async function build(app) {
51
63
  '@src': app.path('@src'),
52
64
  '@dist': app.path('@dist'),
53
65
  }))
54
- .hooks.on('build.output.assetModuleFilename', () => (0, filenameFormat_1.filenameFormat)(app, '[ext]'))
55
- .hooks.on('build.output.chunkFilename', () => (0, filenameFormat_1.filenameFormat)(app))
56
- .hooks.on('build.output.filename', () => (0, filenameFormat_1.filenameFormat)(app))
66
+ .hooks.on('build.output.assetModuleFilename', () => filenameFormat(app, '[ext]'))
67
+ .hooks.on('build.output.chunkFilename', () => filenameFormat(app))
68
+ .hooks.on('build.output.chunkLoading', () => 'jsonp')
69
+ .hooks.on('build.output.filename', () => filenameFormat(app))
70
+ .hooks.on('build.output.chunkFormat', () => 'array-push')
71
+ .hooks.on('build.output.module', () => undefined)
57
72
  .hooks.on('build.output.path', () => app.path('@dist'))
58
73
  .hooks.on('build.optimization', () => ({
59
74
  emitOnErrors: app.hooks.filter('build.optimization.emitOnErrors'),
@@ -65,6 +80,7 @@ async function build(app) {
65
80
  }))
66
81
  .hooks.async('build.plugins', async () => await app.extensions.make())
67
82
  .hooks.on('build.recordsPath', () => app.path(`@storage/${app.name}/modules.json`))
83
+ .hooks.on('build.optimization.emitOnErrors', () => app.isDevelopment)
68
84
  .hooks.async('build.resolve', async () => {
69
85
  const alias = await app.hooks.filterAsync('build.resolve.alias');
70
86
  const extensions = Array.from(app.hooks.filter('build.resolve.extensions'));
@@ -78,9 +94,8 @@ async function build(app) {
78
94
  app.hooks.filter('location.@modules'),
79
95
  ]));
80
96
  })
81
- .hooks.on('build.target', () => app.project.has('manifest.browserslist') &&
82
- app.project.isArray('manifest.browserslist')
97
+ .hooks.on('build.target', () => app.project.has('manifest.browserslist')
83
98
  ? `browserslist:${app.path('./package.json')}`
84
99
  : undefined);
85
100
  }
86
- exports.build = build;
101
+ //# sourceMappingURL=builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.js","sourceRoot":"","sources":["../../src/config/builder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAA;AAElD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,KAAK,CAAC,GAAQ;IAClC,GAAG,CAAC,KAAK;SACN,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC;SACxC,KAAK,CAAC,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC;SACtD,KAAK,CAAC,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC;SACvD,KAAK,CAAC,EAAE,CAAC,qBAAqB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KAAW,EAAE,EAAE;QAC1D,OAAO,KAAK,CAAC,IAAI,CACf,IAAI,GAAG,CAAC;YACN,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC;YAChB,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;YACjC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,CAAC;SACtC,CAAC,CACH,CAAA;IACH,CAAC,CAAC;SACD,KAAK,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,EAAE,CAC7B,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;QACtC,CAAC,CAAC,gBAAgB,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE;QAC9C,CAAC,CAAC,SAAS,CACd,CAAA;AACL,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Bud } from '@roots/bud-framework';
2
+ /**
3
+ * Filename
4
+ *
5
+ * @param app - Bud
6
+ * @param extension - Filename extension
7
+ *
8
+ * @returns filename format
9
+ *
10
+ * @public
11
+ */
12
+ export declare const filenameFormat: (app: Bud, extension?: string) => string;
13
+ //# sourceMappingURL=filenameFormat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filenameFormat.d.ts","sourceRoot":"","sources":["../../src/config/filenameFormat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAA;AAE7C;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,QAAS,GAAG,cAAc,MAAM,KAAG,MAU7D,CAAA"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Filename
3
+ *
4
+ * @param app - Bud
5
+ * @param extension - Filename extension
6
+ *
7
+ * @returns filename format
8
+ *
9
+ * @public
10
+ */
11
+ export const filenameFormat = (app, extension) => {
12
+ if (!extension) {
13
+ extension = app.hooks.filter('build.experiments.outputModule')
14
+ ? '.mjs'
15
+ : '.js';
16
+ }
17
+ return app.hooks.filter('feature.hash')
18
+ ? app.hooks.filter('value.hashFormat').concat(extension)
19
+ : app.hooks.filter('value.fileFormat').concat(extension);
20
+ };
21
+ //# sourceMappingURL=filenameFormat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filenameFormat.js","sourceRoot":"","sources":["../../src/config/filenameFormat.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAQ,EAAE,SAAkB,EAAU,EAAE;IACrE,IAAI,CAAC,SAAS,EAAE;QACd,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,gCAAgC,CAAC;YAC5D,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,KAAK,CAAA;KACV;IAED,OAAO,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC;QACrC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC;QACxD,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;AAC5D,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import * as builder from './builder.js';
2
+ export { builder };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,EAAC,OAAO,EAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import * as builder from './builder.js';
2
+ export { builder };
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,EAAC,OAAO,EAAC,CAAA"}
@@ -0,0 +1,75 @@
1
+ import type { Bud } from '@roots/bud-framework/bud';
2
+ import type { Item } from '@roots/bud-framework/services/build';
3
+ /**
4
+ * CSS loader
5
+ *
6
+ * @public
7
+ */
8
+ export declare const css: (app: Bud) => Promise<Item>;
9
+ /**
10
+ * CSS module loader
11
+ *
12
+ * @public
13
+ */
14
+ export declare const cssModule: (app: Bud) => Promise<Item>;
15
+ /**
16
+ * CSV loader
17
+ *
18
+ * @public
19
+ */
20
+ export declare const csv: (app: Bud) => Promise<Item>;
21
+ /**
22
+ * HTML loader
23
+ *
24
+ * @public
25
+ */
26
+ export declare const html: (app: Bud) => Promise<Item>;
27
+ /**
28
+ * Style loader
29
+ *
30
+ * @public
31
+ */
32
+ export declare const style: (app: Bud) => Promise<Item>;
33
+ /**
34
+ * Markdown loader
35
+ *
36
+ * @public
37
+ */
38
+ export declare const md: (app: Bud) => Promise<Item>;
39
+ /**
40
+ * MiniCss loader
41
+ *
42
+ * @public
43
+ */
44
+ export declare const minicss: (app: Bud) => Promise<Item>;
45
+ /**
46
+ * `minicss` in production and `style` in development
47
+ *
48
+ * @public
49
+ */
50
+ export declare const precss: ({ build, isProduction }: Bud) => Promise<Item>;
51
+ /**
52
+ * Raw loader
53
+ *
54
+ * @public
55
+ */
56
+ export declare const raw: ({ build }: Bud) => Promise<Item>;
57
+ /**
58
+ * File loader
59
+ *
60
+ * @public
61
+ */
62
+ export declare const file: (app: Bud) => Promise<Item>;
63
+ /**
64
+ * Xml loader
65
+ *
66
+ * @public
67
+ */
68
+ export declare const xml: (app: Bud) => Promise<Item>;
69
+ /**
70
+ * Yml loader
71
+ *
72
+ * @public
73
+ */
74
+ export declare const yml: (app: Bud) => Promise<Item>;
75
+ //# sourceMappingURL=items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/handlers/items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,0BAA0B,CAAA;AACjD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,qCAAqC,CAAA;AAE7D;;;;GAIG;AACH,eAAO,MAAM,GAAG,QAAe,GAAG,KAAG,QAAQ,IAAI,CAO1C,CAAA;AAEP;;;;GAIG;AACH,eAAO,MAAM,SAAS,QAAe,GAAG,KAAG,QAAQ,IAAI,CAShD,CAAA;AAEP;;;;GAIG;AACH,eAAO,MAAM,GAAG,QAAe,GAAG,KAAG,QAAQ,IAAI,CACV,CAAA;AAEvC;;;;GAIG;AACH,eAAO,MAAM,IAAI,QAAe,GAAG,KAAG,QAAQ,IAAI,CACV,CAAA;AAExC;;;;GAIG;AACH,eAAO,MAAM,KAAK,QAAe,GAAG,KAAG,QAAQ,IAAI,CACV,CAAA;AAEzC;;;;GAIG;AACH,eAAO,MAAM,EAAE,QAAe,GAAG,KAAG,QAAQ,IAAI,CACZ,CAAA;AAEpC;;;;GAIG;AACH,eAAO,MAAM,OAAO,QAAe,GAAG,KAAG,QAAQ,IAAI,CAM9C,CAAA;AAEP;;;;GAIG;AACH,eAAO,MAAM,MAAM,4BAAiC,GAAG,KAAG,QAAQ,IAAI,CACN,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,GAAG,cAAmB,GAAG,KAAG,QAAQ,IAAI,CAClB,CAAA;AAEnC;;;;GAIG;AACH,eAAO,MAAM,IAAI,QAAe,GAAG,KAAG,QAAQ,IAAI,CAQ3C,CAAA;AAEP;;;;GAIG;AACH,eAAO,MAAM,GAAG,QAAe,GAAG,KAAG,QAAQ,IAAI,CACV,CAAA;AAEvC;;;;GAIG;AACH,eAAO,MAAM,GAAG,QAAe,GAAG,KAAG,QAAQ,IAAI,CACV,CAAA"}
@@ -0,0 +1,99 @@
1
+ /**
2
+ * CSS loader
3
+ *
4
+ * @public
5
+ */
6
+ export const css = async (app) => app.build
7
+ .makeItem()
8
+ .setLoader(`css`)
9
+ .setOptions(({ hooks }) => ({
10
+ importLoaders: 1,
11
+ sourceMap: hooks.filter('build.devtool') ? true : false,
12
+ }));
13
+ /**
14
+ * CSS module loader
15
+ *
16
+ * @public
17
+ */
18
+ export const cssModule = async (app) => app.build
19
+ .makeItem()
20
+ .setLoader(`css`)
21
+ .setOptions(({ hooks }) => ({
22
+ importLoaders: 1,
23
+ localIdentName: '[name]__[local]___[hash:base64:5]',
24
+ modules: true,
25
+ sourceMap: hooks.filter('build.devtool') ? true : false,
26
+ }));
27
+ /**
28
+ * CSV loader
29
+ *
30
+ * @public
31
+ */
32
+ export const csv = async (app) => app.build.makeItem().setLoader(`csv`);
33
+ /**
34
+ * HTML loader
35
+ *
36
+ * @public
37
+ */
38
+ export const html = async (app) => app.build.makeItem().setLoader(`html`);
39
+ /**
40
+ * Style loader
41
+ *
42
+ * @public
43
+ */
44
+ export const style = async (app) => app.build.makeItem().setLoader(`style`);
45
+ /**
46
+ * Markdown loader
47
+ *
48
+ * @public
49
+ */
50
+ export const md = async (app) => app.build.makeItem({ loader: 'md' });
51
+ /**
52
+ * MiniCss loader
53
+ *
54
+ * @public
55
+ */
56
+ export const minicss = async (app) => app.build
57
+ .makeItem()
58
+ .setLoader(`minicss`)
59
+ .setOptions(app => ({
60
+ publicPath: app.hooks.filter('build.output.publicPath'),
61
+ }));
62
+ /**
63
+ * `minicss` in production and `style` in development
64
+ *
65
+ * @public
66
+ */
67
+ export const precss = async ({ build, isProduction }) => build.makeItem().setLoader(isProduction ? `minicss` : `style`);
68
+ /**
69
+ * Raw loader
70
+ *
71
+ * @public
72
+ */
73
+ export const raw = async ({ build }) => build.makeItem().setLoader(`raw`);
74
+ /**
75
+ * File loader
76
+ *
77
+ * @public
78
+ */
79
+ export const file = async (app) => app.build
80
+ .makeItem()
81
+ .setLoader(`file`)
82
+ .setOptions(app => ({
83
+ name: app.hooks.filter('feature.hash')
84
+ ? app.hooks.filter('value.hashFormat').concat('.[ext]')
85
+ : app.hooks.filter('value.fileFormat').concat('.[ext]'),
86
+ }));
87
+ /**
88
+ * Xml loader
89
+ *
90
+ * @public
91
+ */
92
+ export const xml = async (app) => app.build.makeItem().setLoader(`xml`);
93
+ /**
94
+ * Yml loader
95
+ *
96
+ * @public
97
+ */
98
+ export const yml = async (app) => app.build.makeItem().setLoader(`yml`);
99
+ //# sourceMappingURL=items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.js","sourceRoot":"","sources":["../../src/handlers/items.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,EAAE,GAAQ,EAAiB,EAAE,CACnD,GAAG,CAAC,KAAK;KACN,QAAQ,EAAE;KACV,SAAS,CAAC,KAAK,CAAC;KAChB,UAAU,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC;IACxB,aAAa,EAAE,CAAC;IAChB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;CACxD,CAAC,CAAC,CAAA;AAEP;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAE,GAAQ,EAAiB,EAAE,CACzD,GAAG,CAAC,KAAK;KACN,QAAQ,EAAE;KACV,SAAS,CAAC,KAAK,CAAC;KAChB,UAAU,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC;IACxB,aAAa,EAAE,CAAC;IAChB,cAAc,EAAE,mCAAmC;IACnD,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;CACxD,CAAC,CAAC,CAAA;AAEP;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,EAAE,GAAQ,EAAiB,EAAE,CACnD,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI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,KAAK;KACN,QAAQ,EAAE;KACV,SAAS,CAAC,MAAM,CAAC;KACjB,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC;QACpC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACvD,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CAC1D,CAAC,CAAC,CAAA;AAEP;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,EAAE,GAAQ,EAAiB,EAAE,CACnD,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,EAAE,GAAQ,EAAiB,EAAE,CACnD,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA"}
@@ -0,0 +1,57 @@
1
+ import type { Bud } from '@roots/bud-framework';
2
+ import type { Loader } from '@roots/bud-framework/services/build';
3
+ /**
4
+ * css loader
5
+ *
6
+ * @public
7
+ */
8
+ export declare const css: (app: Bud) => Promise<Loader>;
9
+ /**
10
+ * csv loader
11
+ *
12
+ * @public
13
+ */
14
+ export declare const csv: (app: Bud) => Promise<Loader>;
15
+ /**
16
+ * file loader
17
+ *
18
+ * @public
19
+ */
20
+ export declare const file: (app: Bud) => Promise<Loader>;
21
+ /**
22
+ * html-loader
23
+ *
24
+ * @public
25
+ */
26
+ export declare const html: (app: Bud) => Promise<Loader>;
27
+ /**
28
+ * remark-loader
29
+ *
30
+ * @public
31
+ */
32
+ export declare const remark: (app: Bud) => Promise<Loader>;
33
+ /**
34
+ * `mini-css-extract-plugin.loader`
35
+ *
36
+ * @public
37
+ */
38
+ export declare const minicss: (app: Bud) => Promise<Loader>;
39
+ /**
40
+ * style-loader
41
+ *
42
+ * @public
43
+ */
44
+ export declare const style: (app: Bud) => Promise<Loader>;
45
+ /**
46
+ * xml-loader
47
+ *
48
+ * @public
49
+ */
50
+ export declare const xml: (app: Bud) => Promise<Loader>;
51
+ /**
52
+ * yml-loader
53
+ *
54
+ * @public
55
+ */
56
+ export declare const yml: (app: Bud) => Promise<Loader>;
57
+ //# sourceMappingURL=loaders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loaders.d.ts","sourceRoot":"","sources":["../../src/handlers/loaders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAA;AAC7C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,qCAAqC,CAAA;AAG/D;;;;GAIG;AACH,eAAO,MAAM,GAAG,QAAe,GAAG,KAAG,QAAQ,MAAM,CAGlD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,QAAe,GAAG,KAAG,QAAQ,MAAM,CAGlD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI,QAAe,GAAG,KAAG,QAAQ,MAAM,CAGnD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI,QAAe,GAAG,KAAG,QAAQ,MAAM,CAGnD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,QAAe,GAAG,KAAG,QAAQ,MAAM,CAGrD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,QAAe,GAAG,KAAG,QAAQ,MAAM,CAEtD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,KAAK,QAAe,GAAG,KAAG,QAAQ,MAAM,CAGpD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,QAAe,GAAG,KAAG,QAAQ,MAAM,CAGlD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,QAAe,GAAG,KAAG,QAAQ,MAAM,CAGlD,CAAA"}
@@ -0,0 +1,82 @@
1
+ import MiniCssExtractPlugin from 'mini-css-extract-plugin';
2
+ /**
3
+ * css loader
4
+ *
5
+ * @public
6
+ */
7
+ export const css = async (app) => {
8
+ const loader = await app.module.resolve('css-loader');
9
+ return app.build.makeLoader().setSrc(loader);
10
+ };
11
+ /**
12
+ * csv loader
13
+ *
14
+ * @public
15
+ */
16
+ export const csv = async (app) => {
17
+ const loader = await app.module.resolve('csv-loader');
18
+ return app.build.makeLoader().setSrc(loader);
19
+ };
20
+ /**
21
+ * file loader
22
+ *
23
+ * @public
24
+ */
25
+ export const file = async (app) => {
26
+ const loader = await app.module.resolve('file-loader');
27
+ return app.build.makeLoader().setSrc(loader);
28
+ };
29
+ /**
30
+ * html-loader
31
+ *
32
+ * @public
33
+ */
34
+ export const html = async (app) => {
35
+ const loader = await app.module.resolve('html-loader');
36
+ return app.build.makeLoader().setSrc(loader);
37
+ };
38
+ /**
39
+ * remark-loader
40
+ *
41
+ * @public
42
+ */
43
+ export const remark = async (app) => {
44
+ const loader = await app.module.resolve('remark-loader');
45
+ return app.build.makeLoader().setSrc(loader);
46
+ };
47
+ /**
48
+ * `mini-css-extract-plugin.loader`
49
+ *
50
+ * @public
51
+ */
52
+ export const minicss = async (app) => {
53
+ return app.build.makeLoader().setSrc(MiniCssExtractPlugin.loader);
54
+ };
55
+ /**
56
+ * style-loader
57
+ *
58
+ * @public
59
+ */
60
+ export const style = async (app) => {
61
+ const loader = await app.module.resolve('style-loader');
62
+ return app.build.makeLoader().setSrc(loader);
63
+ };
64
+ /**
65
+ * xml-loader
66
+ *
67
+ * @public
68
+ */
69
+ export const xml = async (app) => {
70
+ const loader = await app.module.resolve('xml-loader');
71
+ return app.build.makeLoader().setSrc(loader);
72
+ };
73
+ /**
74
+ * yml-loader
75
+ *
76
+ * @public
77
+ */
78
+ export const yml = async (app) => {
79
+ const loader = await app.module.resolve('yml-loader');
80
+ return app.build.makeLoader().setSrc(loader);
81
+ };
82
+ //# sourceMappingURL=loaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loaders.js","sourceRoot":"","sources":["../../src/handlers/loaders.ts"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,MAAM,yBAAyB,CAAA;AAE1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,EAAE,GAAQ,EAAmB,EAAE;IACrD,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IACrD,OAAO,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AAC9C,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,EAAE,GAAQ,EAAmB,EAAE;IACrD,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IACrD,OAAO,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AAC9C,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,EAAE,GAAQ,EAAmB,EAAE;IACtD,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;IACtD,OAAO,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AAC9C,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,EAAE,GAAQ,EAAmB,EAAE;IACtD,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;IACtD,OAAO,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,MAAM,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