@roots/bud-build 5.0.0-next.7 → 5.1.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 (73) hide show
  1. package/README.md +8 -28
  2. package/lib/cjs/Build/config.js +205 -113
  3. package/lib/cjs/Build/index.js +158 -49
  4. package/lib/cjs/Build/items.js +109 -97
  5. package/lib/cjs/Build/loaders.js +57 -55
  6. package/lib/cjs/Build/rules.js +150 -90
  7. package/lib/cjs/Item/index.js +26 -26
  8. package/lib/cjs/Item/item.dependencies.js +0 -1
  9. package/lib/cjs/Item/item.interface.js +2 -3
  10. package/lib/cjs/Loader/index.js +34 -10
  11. package/lib/cjs/Rule/index.js +180 -82
  12. package/lib/cjs/index.js +31 -14
  13. package/lib/cjs/shared/Base.js +0 -1
  14. package/lib/tsconfig.tsbuildinfo +1 -1
  15. package/package.json +20 -33
  16. package/types/Build/config.d.ts +8 -1
  17. package/types/Build/config.d.ts.map +1 -1
  18. package/types/Build/index.d.ts +51 -13
  19. package/types/Build/index.d.ts.map +1 -1
  20. package/types/Build/items.d.ts +73 -43
  21. package/types/Build/items.d.ts.map +1 -1
  22. package/types/Build/loaders.d.ts +54 -41
  23. package/types/Build/loaders.d.ts.map +1 -1
  24. package/types/Build/rules.d.ts +61 -22
  25. package/types/Build/rules.d.ts.map +1 -1
  26. package/types/Item/index.d.ts +9 -17
  27. package/types/Item/index.d.ts.map +1 -1
  28. package/types/Item/item.interface.d.ts +1 -1
  29. package/types/Item/item.interface.d.ts.map +1 -1
  30. package/types/Loader/index.d.ts +13 -10
  31. package/types/Loader/index.d.ts.map +1 -1
  32. package/types/Rule/index.d.ts +122 -24
  33. package/types/Rule/index.d.ts.map +1 -1
  34. package/types/index.d.ts +5 -6
  35. package/types/index.d.ts.map +1 -1
  36. package/types/shared/Base.d.ts.map +1 -1
  37. package/lib/cjs/Build/config.js.map +0 -1
  38. package/lib/cjs/Build/index.js.map +0 -1
  39. package/lib/cjs/Build/items.js.map +0 -1
  40. package/lib/cjs/Build/loaders.js.map +0 -1
  41. package/lib/cjs/Build/rules.js.map +0 -1
  42. package/lib/cjs/Item/index.js.map +0 -1
  43. package/lib/cjs/Item/item.dependencies.js.map +0 -1
  44. package/lib/cjs/Item/item.interface.js.map +0 -1
  45. package/lib/cjs/Loader/index.js.map +0 -1
  46. package/lib/cjs/Rule/index.js.map +0 -1
  47. package/lib/cjs/index.js.map +0 -1
  48. package/lib/cjs/shared/Base.js.map +0 -1
  49. package/lib/esm/Build/config.js +0 -166
  50. package/lib/esm/Build/config.js.map +0 -1
  51. package/lib/esm/Build/index.js +0 -66
  52. package/lib/esm/Build/index.js.map +0 -1
  53. package/lib/esm/Build/items.js +0 -90
  54. package/lib/esm/Build/items.js.map +0 -1
  55. package/lib/esm/Build/loaders.js +0 -43
  56. package/lib/esm/Build/loaders.js.map +0 -1
  57. package/lib/esm/Build/rules.js +0 -103
  58. package/lib/esm/Build/rules.js.map +0 -1
  59. package/lib/esm/Item/index.js +0 -88
  60. package/lib/esm/Item/index.js.map +0 -1
  61. package/lib/esm/Item/item.dependencies.js +0 -4
  62. package/lib/esm/Item/item.dependencies.js.map +0 -1
  63. package/lib/esm/Item/item.interface.js +0 -2
  64. package/lib/esm/Item/item.interface.js.map +0 -1
  65. package/lib/esm/Loader/index.js +0 -49
  66. package/lib/esm/Loader/index.js.map +0 -1
  67. package/lib/esm/Rule/index.js +0 -155
  68. package/lib/esm/Rule/index.js.map +0 -1
  69. package/lib/esm/index.js +0 -27
  70. package/lib/esm/index.js.map +0 -1
  71. package/lib/esm/shared/Base.js +0 -8
  72. package/lib/esm/shared/Base.js.map +0 -1
  73. package/lib/tsconfig-esm.tsbuildinfo +0 -1
@@ -1,90 +0,0 @@
1
- import Item from '../Item';
2
- /**
3
- * .asset handler factory
4
- */
5
- export const asset = () => new Item({
6
- loader: ({ build }) => build.loaders.file,
7
- options: ({ store }) => ({
8
- name: `assets/${store.isTrue('hash')
9
- ? store.get('hashFormat')
10
- : store.get('fileFormat')}.[ext]`,
11
- }),
12
- });
13
- /**
14
- * .css handler factory
15
- */
16
- export const css = () => new Item({
17
- loader: ({ build }) => build.loaders.css,
18
- options: ({ hooks }) => ({
19
- sourceMap: hooks.filter('build/devtool') ? true : false,
20
- importLoaders: 1,
21
- }),
22
- });
23
- /**
24
- * .csv handler factory
25
- */
26
- export const csv = () => new Item({
27
- loader: ({ build }) => build.loaders.csv,
28
- });
29
- /**
30
- * .html handler factory
31
- */
32
- export const html = () => new Item({
33
- loader: ({ build }) => build.loaders.html,
34
- });
35
- /**
36
- * Factory {@link Item} for style
37
- */
38
- export const style = () => new Item({
39
- loader: ({ build }) => build.loaders.style,
40
- });
41
- /**
42
- * Factory {@link Item} for markdown
43
- */
44
- export const md = () => new Item({
45
- loader: ({ build }) => build.loaders.md,
46
- });
47
- /**
48
- * Factory {@link Item} for minicss-extract-plugin
49
- */
50
- export const minicss = () => new Item({
51
- loader: ({ build }) => build.loaders.minicss,
52
- options: ({ path }) => ({}),
53
- });
54
- /**
55
- * Factory {@link Item} for raw
56
- */
57
- export const raw = () => new Item({
58
- loader: ({ build }) => build.loaders.raw,
59
- });
60
- /**
61
- * Factory {@link Item} for file
62
- */
63
- export const file = () => new Item({
64
- loader: ({ build }) => build.loaders.file,
65
- options: ({ store }) => ({
66
- name: `${store.isTrue('hash')
67
- ? store.get('hashFormat')
68
- : store.get('fileFormat')}.[ext]`,
69
- }),
70
- });
71
- /**
72
- * Factory {@link Item} resolve-url
73
- */
74
- export const resolveUrl = () => new Item({
75
- loader: ({ build }) => build.loaders['resolveUrl'],
76
- options: ({ path, hooks }) => {
77
- var _a;
78
- return ({
79
- root: path('src'),
80
- sourceMap: (_a = hooks.filter('build/devtool')) !== null && _a !== void 0 ? _a : false,
81
- });
82
- },
83
- });
84
- /**
85
- * Factory {@link Item} for xml
86
- */
87
- export const xml = () => new Item({
88
- loader: ({ build }) => build.loaders.xml,
89
- });
90
- //# sourceMappingURL=items.js.map
@@ -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AC,MAAM,CAAC,MAAM,CAAC;YAClB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC;YACzB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAC5B,QAAQ;KACT,CAAC;CACH,CAAC,CAAA;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE,CAC7B,IAAI,IAAI,CAAC;IACP,MAAM,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;IAChD,OAAO,EAAE,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE,EAAE;;QAAC,OAAA,CAAC;YAC3B,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;YACjB,SAAS,EAAE,MAAA,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,mCAAI,KAAK;SAClD,CAAC,CAAA;KAAA;CACH,CAAC,CAAA;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,EAAE,CACtB,IAAI,IAAI,CAAC;IACP,MAAM,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG;CACvC,CAAC,CAAA"}
@@ -1,43 +0,0 @@
1
- import MiniCssExtractPlugin from 'mini-css-extract-plugin';
2
- import Loader from '../Loader';
3
- /**
4
- * Returns {@link Loader} for `css-loader`
5
- */
6
- export const css = () => new Loader(require.resolve('css-loader'));
7
- /**
8
- * Returns {@link Loader} for `csv-loader`
9
- */
10
- export const csv = () => new Loader(require.resolve('csv-loader'));
11
- /**
12
- * Returns {@link Loader} for `file-loader`
13
- */
14
- export const file = () => new Loader(require.resolve('file-loader'));
15
- /**
16
- * Returns {@link Loader} for `html-loader`
17
- */
18
- export const html = () => new Loader(require.resolve('html-loader'));
19
- /**
20
- * Returns {@link Loader} for `remark-loader`
21
- */
22
- export const md = () => new Loader(require.resolve('remark-loader'));
23
- /**
24
- * Returns {@link Loader} for `mini-css-extract-plugin.loader`
25
- */
26
- export const minicss = () => new Loader(MiniCssExtractPlugin.loader);
27
- /**
28
- * Returns {@link Loader} for `resolve-url-loader`
29
- */
30
- export const resolveUrl = () => new Loader(require.resolve('resolve-url-loader'));
31
- /**
32
- * Returns {@link Loader} for `style-loader`
33
- */
34
- export const style = () => new Loader(require.resolve('style-loader'));
35
- /**
36
- * Returns {@link Loader} for `url-loader`
37
- */
38
- export const url = () => new Loader(require.resolve('url-loader'));
39
- /**
40
- * Returns {@link Loader} for `xml-loader`
41
- */
42
- export const xml = () => new Loader(require.resolve('xml-loader'));
43
- //# sourceMappingURL=loaders.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loaders.js","sourceRoot":"","sources":["../../../src/Build/loaders.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,yBAAyB,CAAA;AAE1D,OAAO,MAAM,MAAM,WAAW,CAAA;AAE9B;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAiB,GAAG,EAAE,CACpC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAiB,GAAG,EAAE,CACpC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAiB,GAAG,EAAE,CACrC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAA;AAE5C;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAiB,GAAG,EAAE,CACrC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAA;AAE5C;;GAEG;AACH,MAAM,CAAC,MAAM,EAAE,GAAiB,GAAG,EAAE,CACnC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAA;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAiB,GAAG,EAAE,CACxC,IAAI,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAiB,GAAG,EAAE,CAC3C,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAiB,GAAG,EAAE,CACtC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAA;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAiB,GAAG,EAAE,CACpC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAiB,GAAG,EAAE,CACpC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA"}
@@ -1,103 +0,0 @@
1
- import { json5 as json5Parser, toml as tomlParser, yaml as yamlParser, } from '@roots/bud-support';
2
- import Rule from '../Rule';
3
- /**
4
- * Returns {@link Rule} for `asset/resource`
5
- */
6
- export const image = () => new Rule({
7
- test: ({ store }) => store.get('patterns.image'),
8
- exclude: ({ store }) => store.get('patterns.modules'),
9
- type: 'asset/resource',
10
- generator: {
11
- filename: 'assets/[hash][ext][query]',
12
- },
13
- });
14
- /**
15
- * Returns {@link Rule} for `.woff`/`.otf` handling
16
- */
17
- export const font = () => new Rule({
18
- test: ({ store }) => store.get('patterns.font'),
19
- exclude: ({ store }) => store.get('patterns.modules'),
20
- use: ({ build }) => [build.items['resolveUrl']],
21
- });
22
- /**
23
- * Returns {@link Rule} for `.svg` handling
24
- */
25
- export const svg = () => new Rule({
26
- test: ({ store }) => store.get('patterns.svg'),
27
- exclude: ({ store }) => store.get('patterns.modules'),
28
- type: 'asset/resource',
29
- generator: {
30
- filename: 'assets/[hash][ext][query]',
31
- },
32
- });
33
- /**
34
- * Returns {@link Rule} for `.html` handling
35
- */
36
- export const html = () => new Rule({
37
- test: ({ store }) => store.get('patterns.html'),
38
- use: ({ build }) => [build.items.html],
39
- });
40
- /**
41
- * Returns {@link Rule} for `.csv` handling
42
- */
43
- export const csv = () => new Rule({
44
- test: ({ store }) => store.get('patterns.csv'),
45
- use: ({ build }) => [build.items.csv],
46
- });
47
- /**
48
- * Returns {@link Rule} for `.xml` handling
49
- */
50
- export const xml = () => new Rule({
51
- test: ({ store }) => store.get('patterns.xml'),
52
- use: ({ build }) => [build.items.xml],
53
- });
54
- /**
55
- * Returns {@link Rule} for `.toml` handling
56
- */
57
- export const toml = () => new Rule({
58
- test: ({ store }) => store.get('patterns.toml'),
59
- type: () => 'json',
60
- parser: () => ({
61
- parse: tomlParser.parse,
62
- }),
63
- });
64
- /**
65
- * Returns {@link Rule} for `.yml` / `.yaml` handling
66
- */
67
- export const yml = () => new Rule({
68
- test: ({ store }) => store.get('patterns.yml'),
69
- type: 'json',
70
- parser: () => ({
71
- parse: yamlParser.parse,
72
- }),
73
- });
74
- /**
75
- * Returns {@link Rule} for `.jsonc` handling
76
- */
77
- export const json5 = () => new Rule({
78
- test: ({ store }) => store.get('patterns.json5'),
79
- type: 'json',
80
- parser: () => ({
81
- parse: json5Parser.parse,
82
- }),
83
- });
84
- /**
85
- * Returns {@link Rule} for `.css` handling
86
- */
87
- export const css = () => new Rule({
88
- test: ({ store }) => store.get('patterns.css'),
89
- exclude: ({ store }) => store.get('patterns.modules'),
90
- use: ({ isProduction, build }) => [
91
- isProduction ? build.items.minicss : build.items.style,
92
- build.items.css,
93
- ],
94
- });
95
- /**
96
- * Returns {@link Rule} for `.js` handling
97
- */
98
- export const js = () => new Rule({
99
- test: ({ store }) => store.get('patterns.js'),
100
- exclude: ({ store }) => store.get('patterns.modules'),
101
- use: [],
102
- });
103
- //# sourceMappingURL=rules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../src/Build/rules.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,WAAW,EACpB,IAAI,IAAI,UAAU,EAClB,IAAI,IAAI,UAAU,GACnB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,IAAI,MAAM,SAAS,CAAA;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE,CACxB,IAAI,IAAI,CAAC;IACP,IAAI,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC9C,OAAO,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC;IACnD,IAAI,EAAE,gBAAgB;IACtB,SAAS,EAAE;QACT,QAAQ,EAAE,2BAA2B;KACtC;CACF,CAAC,CAAA;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,EAAE,CACvB,IAAI,IAAI,CAAC;IACP,IAAI,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC;IAC7C,OAAO,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC;IACnD,GAAG,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;CAC9C,CAAC,CAAA;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,EAAE,CACtB,IAAI,IAAI,CAAC;IACP,IAAI,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc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CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK;QACtD,KAAK,CAAC,KAAK,CAAC,GAAG;KAChB;CACF,CAAC,CAAA;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,EAAE,GAAe,GAAG,EAAE,CACjC,IAAI,IAAI,CAAC;IACP,IAAI,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC;IAC3C,OAAO,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC;IACnD,GAAG,EAAE,EAAE;CACR,CAAC,CAAA"}
@@ -1,88 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { bind, isFunction } from './item.dependencies';
3
- import { Item, } from './item.interface';
4
- /**
5
- * Item class
6
- *
7
- * @public
8
- */
9
- export default class default_1 extends Item.Abstract {
10
- /**
11
- * Class constructor
12
- *
13
- * @param options - {@link Item.Options}
14
- */
15
- constructor({ loader, options, }) {
16
- super();
17
- this.setLoader(loader);
18
- options && this.setOptions(options);
19
- }
20
- /**
21
- * {@inheritDoc @roots/bud-framework#Item.Abstract.getLoader}
22
- *
23
- * @public
24
- * @decorator `@bind`
25
- */
26
- getLoader(app) {
27
- return this.loader(app);
28
- }
29
- /**
30
- * {@inheritDoc @roots/bud-framework#Item.Abstract.setLoader}
31
- *
32
- * @public
33
- * @decorator `@bind`
34
- */
35
- setLoader(loader) {
36
- this.loader = isFunction(loader) ? loader : () => loader;
37
- }
38
- /**
39
- * {@inheritDoc @roots/bud-framework#Item.Abstract.seOptions}
40
- *
41
- * @public
42
- * @decorator `@bind`
43
- */
44
- setOptions(options) {
45
- this.options = isFunction(options) ? options : () => options;
46
- }
47
- /**
48
- * {@inheritDoc @roots/bud-framework#Item.Abstract.mergeOptions}
49
- *
50
- * @public
51
- * @decorator `@bind`
52
- */
53
- mergeOptions(options, app) {
54
- options = Object.assign(Object.assign({}, this.options(app)), options);
55
- this.setOptions((app) => options);
56
- }
57
- /**
58
- * {@inheritDoc @roots/bud-framework#Item.Abstract.make}
59
- *
60
- * @public
61
- * @decorator `@bind`
62
- */
63
- make(app) {
64
- const output = {
65
- loader: this.loader(app).make(app),
66
- };
67
- if (this.options) {
68
- output.options = this.options(app);
69
- }
70
- return output;
71
- }
72
- }
73
- __decorate([
74
- bind
75
- ], default_1.prototype, "getLoader", null);
76
- __decorate([
77
- bind
78
- ], default_1.prototype, "setLoader", null);
79
- __decorate([
80
- bind
81
- ], default_1.prototype, "setOptions", null);
82
- __decorate([
83
- bind
84
- ], default_1.prototype, "mergeOptions", null);
85
- __decorate([
86
- bind
87
- ], default_1.prototype, "make", null);
88
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Item/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAGL,IAAI,GAGL,MAAM,kBAAkB,CAAA;AAEzB;;;;GAIG;AACH,MAAM,CAAC,OAAO,gBACZ,SAAQ,IAAI,CAAC,QAAQ;IAiBrB;;;;OAIG;IACH,YAAmB,EACjB,MAAM,EACN,OAAO,GACiB;QACxB,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QACtB,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IACrC,CAAC;IAED;;;;;OAKG;IAEI,SAAS,CAAC,GAAc;QAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IACzB,CAAC;IAED;;;;;OAKG;IAEI,SAAS,CACd,MAA4C;QAE5C,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAA;IAC1D,CAAC;IAED;;;;;OAKG;IAEI,UAAU,CAAC,OAAyC;QACzD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAA;IAC9D,CAAC;IAED;;;;;OAKG;IAEI,YAAY,CAAC,OAAqB,EAAE,GAAc;QACvD,OAAO,mCACF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GACjB,OAAO,CACX,CAAA;QAED,IAAI,CAAC,UAAU,CAAC,CAAC,GAAc,EAAE,EAAE,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC;IAED;;;;;OAKG;IAEI,IAAI,CAAC,GAAc;QACxB,MAAM,MAAM,GAAgB;YAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SACnC,CAAA;QAED,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;SACnC;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AA9DC;IADC,IAAI;0CAGJ;AASD;IADC,IAAI;0CAKJ;AASD;IADC,IAAI;2CAGJ;AASD;IADC,IAAI;6CAQJ;AASD;IADC,IAAI;qCAWJ"}
@@ -1,4 +0,0 @@
1
- import { bind, lodash } from '@roots/bud-support';
2
- export const { isFunction } = lodash;
3
- export { bind };
4
- //# sourceMappingURL=item.dependencies.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item.dependencies.js","sourceRoot":"","sources":["../../../src/Item/item.dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,oBAAoB,CAAA;AAE/C,MAAM,CAAC,MAAM,EAAC,UAAU,EAAC,GAAG,MAAM,CAAA;AAClC,OAAO,EAAC,IAAI,EAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export { Framework, Item, Loader, } from '@roots/bud-framework';
2
- //# sourceMappingURL=item.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item.interface.js","sourceRoot":"","sources":["../../../src/Item/item.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,IAAI,EACJ,MAAM,GAEP,MAAM,sBAAsB,CAAA"}
@@ -1,49 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Loader, } from '@roots/bud-framework';
3
- import { bind, lodash } from '@roots/bud-support';
4
- const { isFunction } = lodash;
5
- /**
6
- * Framework Loader
7
- *
8
- * @public
9
- */
10
- export default class default_1 extends Loader.Abstract {
11
- /**
12
- * Class constructor
13
- *
14
- * @param src - Either a factory returning a string or a literal string
15
- *
16
- * @public
17
- */
18
- constructor(src) {
19
- super();
20
- this.src = this.normalizeInput(src);
21
- }
22
- /**
23
- * {@link @roots/bud-framework#Factory | Factory} producing the final loader path
24
- *
25
- * @param app - {@link @roots/bud-framework#Framework}
26
- * @returns final loader path
27
- *
28
- * @public
29
- * @decorator `@bind`
30
- */
31
- make(app) {
32
- return this.src(app);
33
- }
34
- /**
35
- * Ensure that a userInput is assigned to the class as a {@link @roots/bud-framework#Factory | Factory}
36
- *
37
- * @param input - input value
38
- * @returns normalized value from user input
39
- *
40
- * @public
41
- */
42
- normalizeInput(input) {
43
- return isFunction(input) ? input : () => input;
44
- }
45
- }
46
- __decorate([
47
- bind
48
- ], default_1.prototype, "make", null);
49
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Loader/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAGL,MAAM,GAEP,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,oBAAoB,CAAA;AAC/C,MAAM,EAAC,UAAU,EAAC,GAAG,MAAM,CAAA;AAE3B;;;;GAIG;AACH,MAAM,CAAC,OAAO,gBACZ,SAAQ,MAAM,CAAC,QAAQ;IAQvB;;;;;;OAMG;IACH,YAAmB,GAA+B;QAChD,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,cAAc,CAAS,GAAG,CAAC,CAAA;IAC7C,CAAC;IAED;;;;;;;;OAQG;IAEI,IAAI,CAAC,GAAc;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACtB,CAAC;IAED;;;;;;;OAOG;IACI,cAAc,CACnB,KAA4B;QAE5B,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,CAAA;IAChD,CAAC;CACF;AAjBC;IADC,IAAI;qCAGJ"}
@@ -1,155 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Rule as Base, } from '@roots/bud-framework';
3
- import { bind, lodash } from '@roots/bud-support';
4
- const { isFunction } = lodash;
5
- /**
6
- * Framework Rule
7
- *
8
- * @public
9
- */
10
- export default class Rule extends Base.Abstract {
11
- /**
12
- * Class constructor
13
- *
14
- * @public
15
- */
16
- constructor({ test, use = null, exclude = null, type = null, parser = null, generator = null, }) {
17
- super();
18
- this.test = isFunction(test) ? test : () => test;
19
- if (use) {
20
- this.use = isFunction(use) ? use : () => use;
21
- }
22
- if (exclude) {
23
- this.exclude = isFunction(exclude)
24
- ? exclude
25
- : () => exclude;
26
- }
27
- if (type) {
28
- this.type = isFunction(type) ? type : () => type;
29
- }
30
- if (parser) {
31
- this.parser = isFunction(parser) ? parser : () => parser;
32
- }
33
- if (generator) {
34
- this.generator = isFunction(generator)
35
- ? generator
36
- : () => generator;
37
- }
38
- }
39
- /**
40
- *
41
- * @param app - {@link @roots/bud-framework#Framework | Framework}
42
- * @returns
43
- *
44
- * @public
45
- * @decorator `@bind`
46
- */
47
- getTest(app) {
48
- return this.test ? this.test(app) : null;
49
- }
50
- setTest(test) {
51
- this.test = isFunction(test) ? test : () => test;
52
- }
53
- getParser(app) {
54
- return this.parser ? this.parser(app) : null;
55
- }
56
- setParser(parser) {
57
- this.parser = isFunction(parser) ? parser : () => parser;
58
- }
59
- getUse(app) {
60
- return this.use ? this.use(app) : null;
61
- }
62
- setUse(use) {
63
- this.use = isFunction(use) ? use : () => use;
64
- }
65
- getExclude(app) {
66
- return this.exclude ? this.exclude(app) : null;
67
- }
68
- setExclude(exclude) {
69
- this.exclude = isFunction(exclude) ? exclude : () => exclude;
70
- }
71
- getType(app) {
72
- return this.type ? this.type(app) : null;
73
- }
74
- setType(type) {
75
- this.type = isFunction(type) ? type : () => type;
76
- }
77
- getGenerator(app) {
78
- return this.generator ? this.generator(app) : null;
79
- }
80
- setGenerator(generator) {
81
- this.generator = isFunction(generator)
82
- ? generator
83
- : () => generator;
84
- }
85
- /**
86
- * Produce final Base output
87
- *
88
- * @param app - {@link @roots/bud-framework#Framework}
89
- * @returns finalized rule
90
- *
91
- * @public
92
- * @decorator `@bind`
93
- */
94
- make(app) {
95
- const output = {
96
- test: this.test(app),
97
- };
98
- if (this.use) {
99
- output.use = this.use(app).map(item => item.make(app));
100
- }
101
- if (this.exclude) {
102
- output.exclude = this.exclude(app);
103
- }
104
- if (this.type) {
105
- output.type = this.type(app);
106
- }
107
- if (this.parser) {
108
- output.parser = this.parser(app);
109
- }
110
- if (this.generator) {
111
- output.generator = this.generator(app);
112
- }
113
- return output;
114
- }
115
- }
116
- __decorate([
117
- bind
118
- ], Rule.prototype, "getTest", null);
119
- __decorate([
120
- bind
121
- ], Rule.prototype, "setTest", null);
122
- __decorate([
123
- bind
124
- ], Rule.prototype, "getParser", null);
125
- __decorate([
126
- bind
127
- ], Rule.prototype, "setParser", null);
128
- __decorate([
129
- bind
130
- ], Rule.prototype, "getUse", null);
131
- __decorate([
132
- bind
133
- ], Rule.prototype, "setUse", null);
134
- __decorate([
135
- bind
136
- ], Rule.prototype, "getExclude", null);
137
- __decorate([
138
- bind
139
- ], Rule.prototype, "setExclude", null);
140
- __decorate([
141
- bind
142
- ], Rule.prototype, "getType", null);
143
- __decorate([
144
- bind
145
- ], Rule.prototype, "setType", null);
146
- __decorate([
147
- bind
148
- ], Rule.prototype, "getGenerator", null);
149
- __decorate([
150
- bind
151
- ], Rule.prototype, "setGenerator", null);
152
- __decorate([
153
- bind
154
- ], Rule.prototype, "make", null);
155
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Rule/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAKL,IAAI,IAAI,IAAI,GACb,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,oBAAoB,CAAA;AAE/C,MAAM,EAAC,UAAU,EAAC,GAAG,MAAM,CAAA;AAE3B;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,IACnB,SAAQ,IAAI,CAAC,QAAQ;IA6CrB;;;;OAIG;IACH,YAAmB,EACjB,IAAI,EACJ,GAAG,GAAG,IAAI,EACV,OAAO,GAAG,IAAI,EACd,IAAI,GAAG,IAAI,EACX,MAAM,GAAG,IAAI,EACb,SAAS,GAAG,IAAI,GACH;QACb,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAA;QAEhD,IAAI,GAAG,EAAE;YACP,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAA;SAC7C;QAED,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;gBAChC,CAAC,CAAC,OAAO;gBACT,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAA;SAClB;QAED,IAAI,IAAI,EA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AAC,IAAI,CAAC,GAAG,CAAC;SACrB,CAAA;QAED,IAAI,IAAI,CAAC,GAAG,EAAE;YACZ,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;SACvD;QAED,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;SACnC;QAED,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;SAC7B;QAED,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;SACjC;QAED,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;SACvC;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAxGC;IADC,IAAI;mCAGJ;AAGD;IADC,IAAI;mCAKJ;AAGD;IADC,IAAI;qCAGJ;AAGD;IADC,IAAI;qCAKJ;AAGD;IADC,IAAI;kCAGJ;AAGD;IADC,IAAI;kCAKJ;AAGD;IADC,IAAI;sCAGJ;AAGD;IADC,IAAI;sCAGJ;AAGD;IADC,IAAI;mCAGJ;AAGD;IADC,IAAI;mCAGJ;AAGD;IADC,IAAI;wCAGJ;AAGD;IADC,IAAI;wCAKJ;AAYD;IADC,IAAI;gCA2BJ"}
package/lib/esm/index.js DELETED
@@ -1,27 +0,0 @@
1
- // Copyright (c) Roots Foundation, LLC. All rights reserved.
2
- // Licensed under the MIT license.
3
- /**
4
- * Compiler configuration builder
5
- *
6
- * @see https://roots.io/bud
7
- * @see https://github.com/roots/bud
8
- *
9
- * @remarks
10
- * - 💁 Composable - Build exceptional applications with a modular, configurable build system
11
- *
12
- * - 💪 Modern - Modern framework written in TypeScript with an expressive API
13
- *
14
- * - 🌱 Easy - Low bundle size and fast build times
15
- *
16
- * @core @packageDocumentation @betaDocumentation
17
- */
18
- import { Build } from './Build';
19
- import * as items from './Build/items';
20
- import * as loaders from './Build/loaders';
21
- import * as rules from './Build/rules';
22
- import Item from './Item';
23
- import Loader from './Loader';
24
- import Rule from './Rule';
25
- export { Build, Item, Loader, Rule };
26
- export { items, loaders, rules };
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,kCAAkC;AAElC;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAC7B,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AACtC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AACtC,OAAO,IAAI,MAAM,QAAQ,CAAA;AACzB,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,IAAI,MAAM,QAAQ,CAAA;AAEzB,OAAO,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,CAAA;AAClC,OAAO,EAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- import { lodash } from '@roots/bud-support';
2
- const { isFunction } = lodash;
3
- export class Base {
4
- normalizeInput(input) {
5
- return isFunction(input) ? input : () => input;
6
- }
7
- }
8
- //# sourceMappingURL=Base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../src/shared/Base.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAA;AAEzC,MAAM,EAAC,UAAU,EAAC,GAAG,MAAM,CAAA;AAE3B,MAAM,OAAO,IAAI;IACR,cAAc,CACnB,KAAkC;QAElC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,CAAA;IAChD,CAAC;CACF"}