@roots/bud-build 6.13.0 → 6.13.1

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 (57) hide show
  1. package/lib/config/index.d.ts +1 -1
  2. package/lib/config/infrastructureLogging.js +6 -6
  3. package/lib/config/module.js +1 -1
  4. package/lib/config/optimization.js +2 -2
  5. package/lib/config/snapshot.js +1 -1
  6. package/lib/config/stats.js +1 -1
  7. package/lib/handlers/index.d.ts +1 -1
  8. package/lib/handlers/items/items.d.ts +1 -5
  9. package/lib/handlers/items/items.js +1 -5
  10. package/lib/handlers/loaders/loaders.d.ts +0 -1
  11. package/lib/handlers/loaders/loaders.js +0 -1
  12. package/lib/handlers/register.js +2 -2
  13. package/lib/handlers/rules/csv.js +1 -1
  14. package/lib/handlers/rules/index.d.ts +9 -10
  15. package/lib/handlers/rules/index.js +9 -11
  16. package/lib/index.d.ts +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/item/index.d.ts +11 -11
  19. package/lib/item/index.js +32 -32
  20. package/lib/rule/index.d.ts +54 -54
  21. package/lib/rule/index.js +111 -110
  22. package/lib/service.d.ts +27 -27
  23. package/lib/service.js +68 -68
  24. package/lib/shared/base.d.ts +6 -6
  25. package/lib/shared/base.js +15 -15
  26. package/lib/types.d.ts +12 -15
  27. package/lib/types.js +0 -2
  28. package/package.json +7 -7
  29. package/src/config/index.test.ts +1 -1
  30. package/src/config/index.ts +1 -1
  31. package/src/config/infrastructureLogging.ts +6 -6
  32. package/src/config/module.ts +2 -2
  33. package/src/config/optimization.ts +6 -6
  34. package/src/config/output/chunkFilename.ts +2 -2
  35. package/src/config/output/index.ts +2 -1
  36. package/src/config/snapshot.ts +4 -4
  37. package/src/config/stats.ts +1 -1
  38. package/src/handlers/index.ts +2 -1
  39. package/src/handlers/items/items.ts +2 -7
  40. package/src/handlers/loaders/loaders.ts +1 -5
  41. package/src/handlers/register.ts +3 -2
  42. package/src/handlers/rules/csv.test.ts +1 -1
  43. package/src/handlers/rules/csv.ts +1 -1
  44. package/src/handlers/rules/index.ts +9 -11
  45. package/src/handlers/rules/svg.inline.test.ts +1 -1
  46. package/src/handlers/rules/toml.test.ts +1 -1
  47. package/src/index.ts +1 -2
  48. package/src/item/index.ts +29 -28
  49. package/src/rule/index.test.ts +1 -1
  50. package/src/rule/index.ts +95 -94
  51. package/src/service.ts +69 -67
  52. package/src/shared/base.ts +12 -11
  53. package/src/types.ts +12 -18
  54. package/lib/handlers/rules/xml.d.ts +0 -2
  55. package/lib/handlers/rules/xml.js +0 -4
  56. package/src/handlers/rules/xml.test.ts +0 -30
  57. package/src/handlers/rules/xml.ts +0 -7
@@ -1,5 +1,5 @@
1
1
  import type { Bud } from '@roots/bud-framework';
2
- import type { Configuration } from '@roots/bud-support/webpack';
2
+ import type { Configuration } from '@roots/bud-framework/config';
3
3
  import { bail } from './bail.js';
4
4
  import { cache } from './cache.js';
5
5
  import { context } from './context.js';
@@ -2,18 +2,18 @@ import logger from '@roots/bud-support/utilities/logger';
2
2
  export const infrastructureLogging = async (bud) => bud.hooks.filter(`build.infrastructureLogging`, {
3
3
  console: bud.hooks.filter(`build.infrastructureLogging.console`, {
4
4
  ...console,
5
- log: (...args) => {
6
- logger.scope(`webpack`).log(...args);
7
- },
8
- warn: (...args) => {
9
- logger.scope(`webpack`).info(...args);
10
- },
11
5
  error: (...args) => {
12
6
  logger.scope(`webpack`).error(...args);
13
7
  },
14
8
  info: (...args) => {
15
9
  logger.scope(`webpack`).info(...args);
16
10
  },
11
+ log: (...args) => {
12
+ logger.scope(`webpack`).log(...args);
13
+ },
14
+ warn: (...args) => {
15
+ logger.scope(`webpack`).info(...args);
16
+ },
17
17
  }),
18
18
  level: bud.hooks.filter(`build.infrastructureLogging.level`, `log`),
19
19
  });
@@ -6,9 +6,9 @@ export const module = async ({ build: { rules }, hooks: { filter }, path, }) =>
6
6
  const getRules = ({ filter, path, rules }) => [
7
7
  ...filter(`build.module.rules.before`, [
8
8
  {
9
- test: filter(`pattern.js`),
10
9
  include: [path(`@src`)],
11
10
  parser: { requireEnsure: false },
11
+ test: filter(`pattern.js`),
12
12
  },
13
13
  ]),
14
14
  {
@@ -6,15 +6,15 @@ export const optimization = async ({ hooks: { filter }, isDevelopment, isProduct
6
6
  minimizer: filter(`build.optimization.minimizer`, []),
7
7
  moduleIds: filter(`build.optimization.moduleIds`, `named`),
8
8
  nodeEnv: filter(`build.optimization.nodeEnv`, mode),
9
- removeEmptyChunks: filter(`build.optimization.removeEmptyChunks`, isProduction),
9
+ providedExports: filter(`build.optimization.providedExports`, isProduction),
10
10
  /**
11
11
  * Will be new default in webpack 6
12
12
  * @see {@link https://webpack.js.org/configuration/optimization/#optimizationremoveavailablemodules}
13
13
  */
14
14
  removeAvailableModules: filter(`build.optimization.removeAvailableModules`, false),
15
+ removeEmptyChunks: filter(`build.optimization.removeEmptyChunks`, isProduction),
15
16
  runtimeChunk: filter(`build.optimization.runtimeChunk`, `single`),
16
17
  sideEffects: filter(`build.optimization.sideEffects`, isProduction),
17
18
  splitChunks: filter(`build.optimization.splitChunks`, false),
18
- providedExports: filter(`build.optimization.providedExports`, isProduction),
19
19
  usedExports: filter(`build.optimization.usedExports`, isProduction),
20
20
  });
@@ -1,9 +1,9 @@
1
1
  export const snapshot = async ({ env, hooks, path }) => hooks.filter(`build.snapshot`, {
2
+ buildDependencies: hooks.filter(`build.snapshot.buildDependencies`, env.isTrue(`CI`) ? { hash: true } : { timestamp: true }),
2
3
  immutablePaths: hooks.filter(`build.snapshot.immutablePaths`, []),
3
4
  managedPaths: hooks.filter(`build.snapshot.managedPaths`, [
4
5
  ...new Set([path(`@modules`)]),
5
6
  ]),
6
- buildDependencies: hooks.filter(`build.snapshot.buildDependencies`, env.isTrue(`CI`) ? { hash: true } : { timestamp: true }),
7
7
  module: hooks.filter(`build.snapshot.module`, env.isTrue(`CI`) ? { hash: true } : { timestamp: true }),
8
8
  resolve: hooks.filter(`build.snapshot.resolve`, env.isTrue(`CI`) ? { hash: true } : { timestamp: true }),
9
9
  resolveBuildDependencies: hooks.filter(`build.snapshot.resolveBuildDependencies`, env.isTrue(`CI`) ? { hash: true } : { timestamp: true }),
@@ -7,8 +7,8 @@ export const stats = async (app) => app.hooks.filter(`build.stats`, app.isProduc
7
7
  errors: true,
8
8
  errorsCount: true,
9
9
  hash: true,
10
- outputPath: true,
11
10
  modules: true,
11
+ outputPath: true,
12
12
  timings: true,
13
13
  warnings: true,
14
14
  warningsCount: true,
@@ -6,10 +6,10 @@ import { register } from './register.js';
6
6
  import { rules } from './rules/index.js';
7
7
  export interface Props {
8
8
  filter: Bud[`hooks`][`filter`];
9
+ isProduction: Bud[`isProduction`];
9
10
  makeItem: Bud[`build`][`makeItem`];
10
11
  makeLoader: Bud[`build`][`makeLoader`];
11
12
  makeRule: Bud[`build`][`makeRule`];
12
- isProduction: Bud[`isProduction`];
13
13
  path: Bud[`path`];
14
14
  resolve: Bud[`module`][`resolve`];
15
15
  }
@@ -33,13 +33,9 @@ export declare const minicss: Factory<Item>;
33
33
  */
34
34
  export declare const raw: Factory<Item>;
35
35
  /**
36
- * File loader
36
+ * file-loader
37
37
  */
38
38
  export declare const file: Factory<Item>;
39
- /**
40
- * Xml loader
41
- */
42
- export declare const xml: Factory<Item>;
43
39
  /**
44
40
  * Yml loader
45
41
  */
@@ -55,13 +55,9 @@ export const minicss = async ({ makeItem }) => makeItem()
55
55
  */
56
56
  export const raw = async ({ makeItem }) => makeItem().setLoader(`raw`).setIdent(`raw`);
57
57
  /**
58
- * File loader
58
+ * file-loader
59
59
  */
60
60
  export const file = async ({ makeItem }) => makeItem().setLoader(`file`).setIdent(`file`);
61
- /**
62
- * Xml loader
63
- */
64
- export const xml = async ({ makeItem }) => makeItem().setLoader(`xml`).setIdent(`xml`);
65
61
  /**
66
62
  * Yml loader
67
63
  */
@@ -7,5 +7,4 @@ export declare const html: Factory<Loader>;
7
7
  export declare const remark: Factory<Loader>;
8
8
  export declare const minicss: Factory<Loader>;
9
9
  export declare const style: Factory<Loader>;
10
- export declare const xml: Factory<Loader>;
11
10
  export declare const yml: Factory<Loader>;
@@ -6,5 +6,4 @@ export const html = async ({ makeLoader, resolve }) => makeLoader(await resolve(
6
6
  export const remark = async ({ makeLoader, resolve }) => makeLoader(await resolve(`@roots/bud-support/remark-loader`, import.meta.url));
7
7
  export const minicss = async ({ makeLoader, resolve }) => makeLoader(MiniCss.loader);
8
8
  export const style = async ({ makeLoader, resolve }) => makeLoader(await resolve(`@roots/bud-support/style-loader`, import.meta.url));
9
- export const xml = async ({ makeLoader, resolve }) => makeLoader(await resolve(`@roots/bud-support/xml-loader`, import.meta.url));
10
9
  export const yml = async ({ makeLoader, resolve }) => makeLoader(await resolve(`@roots/bud-support/yml-loader`, import.meta.url));
@@ -17,12 +17,12 @@ export async function register(bud) {
17
17
  : bud.build.items.style;
18
18
  Object.entries(rules).map(makeRegister(bud, bud.build.setRule));
19
19
  }
20
- export const makeRegister = ({ build, hooks, isProduction, path, module: { resolve } }, setRule) => async ([key, factory]) => setRule(key, await factory({
20
+ export const makeRegister = ({ build, hooks, isProduction, module: { resolve }, path }, setRule) => async ([key, factory]) => setRule(key, await factory({
21
21
  filter: hooks.filter,
22
+ isProduction,
22
23
  makeItem: build.makeItem,
23
24
  makeLoader: build.makeLoader,
24
25
  makeRule: build.makeRule,
25
- isProduction,
26
26
  path,
27
27
  resolve,
28
28
  }));
@@ -1,4 +1,4 @@
1
- export const csv = async ({ makeRule, path, filter }) => makeRule()
1
+ export const csv = async ({ filter, makeRule, path }) => makeRule()
2
2
  .setInclude([path()])
3
3
  .setTest(() => filter(`pattern.csv`))
4
4
  .setUse([`csv`]);
@@ -1,18 +1,17 @@
1
1
  export declare const rules: {
2
- toml: import("../index.js").Factory<import("../../rule/index.js").Rule>;
3
- xml: import("../index.js").Factory<import("../../rule/index.js").Rule>;
2
+ css: import("../index.js").Factory<import("../../rule/index.js").Rule>;
3
+ cssModule: import("../index.js").Factory<import("../../rule/index.js").Rule>;
4
4
  csv: import("../index.js").Factory<import("../../rule/index.js").Rule>;
5
- yml: import("../index.js").Factory<import("../../rule/index.js").Rule>;
6
- html: import("../index.js").Factory<import("../../rule/index.js").Rule>;
7
- json: import("../index.js").Factory<import("../../rule/index.js").Rule>;
8
5
  font: import("../index.js").Factory<import("../../rule/index.js").Rule>;
9
- svg: import("../index.js").Factory<import("../../rule/index.js").Rule>;
10
- webp: import("../index.js").Factory<import("../../rule/index.js").Rule>;
6
+ html: import("../index.js").Factory<import("../../rule/index.js").Rule>;
11
7
  image: import("../index.js").Factory<import("../../rule/index.js").Rule>;
12
8
  inlineFont: import("../index.js").Factory<import("../../rule/index.js").Rule>;
13
- inlineSvg: import("../index.js").Factory<import("../../rule/index.js").Rule>;
14
9
  inlineImage: import("../index.js").Factory<import("../../rule/index.js").Rule>;
15
- cssModule: import("../index.js").Factory<import("../../rule/index.js").Rule>;
16
- css: import("../index.js").Factory<import("../../rule/index.js").Rule>;
10
+ inlineSvg: import("../index.js").Factory<import("../../rule/index.js").Rule>;
17
11
  js: import("../index.js").Factory<import("../../rule/index.js").Rule>;
12
+ json: import("../index.js").Factory<import("../../rule/index.js").Rule>;
13
+ svg: import("../index.js").Factory<import("../../rule/index.js").Rule>;
14
+ toml: import("../index.js").Factory<import("../../rule/index.js").Rule>;
15
+ webp: import("../index.js").Factory<import("../../rule/index.js").Rule>;
16
+ yml: import("../index.js").Factory<import("../../rule/index.js").Rule>;
18
17
  };
@@ -12,23 +12,21 @@ import { inlineSvg } from './svg.inline.js';
12
12
  import { svg } from './svg.js';
13
13
  import { toml } from './toml.js';
14
14
  import { webp } from './webp.js';
15
- import { xml } from './xml.js';
16
15
  import { yml } from './yml.js';
17
16
  export const rules = {
18
- toml,
19
- xml,
17
+ css,
18
+ cssModule,
20
19
  csv,
21
- yml,
22
- html,
23
- json,
24
20
  font,
25
- svg,
26
- webp,
21
+ html,
27
22
  image,
28
23
  inlineFont,
29
- inlineSvg,
30
24
  inlineImage,
31
- cssModule,
32
- css,
25
+ inlineSvg,
33
26
  js,
27
+ json,
28
+ svg,
29
+ toml,
30
+ webp,
31
+ yml,
34
32
  };
package/lib/index.d.ts CHANGED
@@ -4,10 +4,10 @@
4
4
  * @see https://bud.js.org
5
5
  * @see https://github.com/roots/bud
6
6
  */
7
- import './types.js';
8
7
  import { Item } from './item/index.js';
9
8
  import { Loader } from './loader/index.js';
10
9
  import { Rule } from './rule/index.js';
11
10
  import { Build } from './service.js';
11
+ import './types.js';
12
12
  export default Build;
13
13
  export { Item, Loader, Rule };
package/lib/index.js CHANGED
@@ -6,10 +6,10 @@
6
6
  * @see https://bud.js.org
7
7
  * @see https://github.com/roots/bud
8
8
  */
9
- import './types.js';
10
9
  import { Item } from './item/index.js';
11
10
  import { Loader } from './loader/index.js';
12
11
  import { Rule } from './rule/index.js';
13
12
  import { Build } from './service.js';
13
+ import './types.js';
14
14
  export default Build;
15
15
  export { Item, Loader, Rule };
@@ -15,7 +15,7 @@ declare class Item extends Base implements Build.Item {
15
15
  /**
16
16
  * Loader
17
17
  */
18
- loader: Loader | `${keyof Loaders & string}`;
18
+ loader: `${keyof Loaders & string}` | Loader;
19
19
  /**
20
20
  * Loader options
21
21
  */
@@ -25,31 +25,31 @@ declare class Item extends Base implements Build.Item {
25
25
  */
26
26
  constructor(_app: () => Bud, constructorParams?: {
27
27
  ident?: string;
28
- loader?: Loader | `${keyof Loaders & string}`;
28
+ loader?: `${keyof Loaders & string}` | Loader;
29
29
  options?: Item['options'];
30
30
  });
31
31
  getIdent(): Build.Item['ident'];
32
- setIdent(ident: Build.Item['ident']): this;
33
32
  /**
34
33
  * Get rule set item loader
35
34
  */
36
35
  getLoader(): Loader;
37
- /**
38
- * Set rule set item loader
39
- */
40
- setLoader(loader: Loader | `${keyof Loaders & string}`): this;
41
36
  /**
42
37
  * Get rule set item options
43
38
  */
44
39
  getOptions(): Item['options'];
45
- /**
46
- * Set rule set item options
47
- */
48
- setOptions(options: Item['options']): this;
49
40
  /**
50
41
  * Merge rule set item options
51
42
  */
52
43
  mergeOptions(options: Build.Item.Options): this;
44
+ setIdent(ident: Build.Item['ident']): this;
45
+ /**
46
+ * Set rule set item loader
47
+ */
48
+ setLoader(loader: `${keyof Loaders & string}` | Loader): this;
49
+ /**
50
+ * Set rule set item options
51
+ */
52
+ setOptions(options: Item['options']): this;
53
53
  /**
54
54
  * Produce rule set item object for Webpack
55
55
  */
package/lib/item/index.js CHANGED
@@ -40,10 +40,6 @@ class Item extends Base {
40
40
  getIdent() {
41
41
  return this.ident;
42
42
  }
43
- setIdent(ident) {
44
- this.ident = ident;
45
- return this;
46
- }
47
43
  /**
48
44
  * Get rule set item loader
49
45
  */
@@ -52,28 +48,12 @@ class Item extends Base {
52
48
  ? this.loader
53
49
  : this.app.build.loaders[this.loader];
54
50
  }
55
- /**
56
- * Set rule set item loader
57
- */
58
- setLoader(loader) {
59
- this.loader = loader;
60
- if (!this.ident)
61
- this.setIdent(basename(isString(loader) ? loader : loader.getSrc()));
62
- return this;
63
- }
64
51
  /**
65
52
  * Get rule set item options
66
53
  */
67
54
  getOptions() {
68
55
  return this.unwrap(this.options);
69
56
  }
70
- /**
71
- * Set rule set item options
72
- */
73
- setOptions(options) {
74
- this.options = options;
75
- return this;
76
- }
77
57
  /**
78
58
  * Merge rule set item options
79
59
  */
@@ -84,6 +64,26 @@ class Item extends Base {
84
64
  });
85
65
  return this;
86
66
  }
67
+ setIdent(ident) {
68
+ this.ident = ident;
69
+ return this;
70
+ }
71
+ /**
72
+ * Set rule set item loader
73
+ */
74
+ setLoader(loader) {
75
+ this.loader = loader;
76
+ if (!this.ident)
77
+ this.setIdent(basename(isString(loader) ? loader : loader.getSrc()));
78
+ return this;
79
+ }
80
+ /**
81
+ * Set rule set item options
82
+ */
83
+ setOptions(options) {
84
+ this.options = options;
85
+ return this;
86
+ }
87
87
  /**
88
88
  * Produce rule set item object for Webpack
89
89
  */
@@ -115,39 +115,39 @@ __decorate([
115
115
  __decorate([
116
116
  bind,
117
117
  __metadata("design:type", Function),
118
- __metadata("design:paramtypes", [Object]),
119
- __metadata("design:returntype", Object)
120
- ], Item.prototype, "setIdent", null);
118
+ __metadata("design:paramtypes", []),
119
+ __metadata("design:returntype", Loader)
120
+ ], Item.prototype, "getLoader", null);
121
121
  __decorate([
122
122
  bind,
123
123
  __metadata("design:type", Function),
124
124
  __metadata("design:paramtypes", []),
125
- __metadata("design:returntype", Loader)
126
- ], Item.prototype, "getLoader", null);
125
+ __metadata("design:returntype", Object)
126
+ ], Item.prototype, "getOptions", null);
127
127
  __decorate([
128
128
  bind,
129
129
  __metadata("design:type", Function),
130
130
  __metadata("design:paramtypes", [Object]),
131
131
  __metadata("design:returntype", Object)
132
- ], Item.prototype, "setLoader", null);
132
+ ], Item.prototype, "mergeOptions", null);
133
133
  __decorate([
134
134
  bind,
135
135
  __metadata("design:type", Function),
136
- __metadata("design:paramtypes", []),
136
+ __metadata("design:paramtypes", [Object]),
137
137
  __metadata("design:returntype", Object)
138
- ], Item.prototype, "getOptions", null);
138
+ ], Item.prototype, "setIdent", null);
139
139
  __decorate([
140
140
  bind,
141
141
  __metadata("design:type", Function),
142
142
  __metadata("design:paramtypes", [Object]),
143
- __metadata("design:returntype", void 0)
144
- ], Item.prototype, "setOptions", null);
143
+ __metadata("design:returntype", Object)
144
+ ], Item.prototype, "setLoader", null);
145
145
  __decorate([
146
146
  bind,
147
147
  __metadata("design:type", Function),
148
148
  __metadata("design:paramtypes", [Object]),
149
- __metadata("design:returntype", Object)
150
- ], Item.prototype, "mergeOptions", null);
149
+ __metadata("design:returntype", void 0)
150
+ ], Item.prototype, "setOptions", null);
151
151
  __decorate([
152
152
  bind,
153
153
  __metadata("design:type", Function),
@@ -1,125 +1,125 @@
1
1
  import type { Bud } from '@roots/bud-framework';
2
- import type { Options, Output, Parser, Rule as Interface } from '@roots/bud-framework/services/build/rule';
3
- import type { RuleSetRule } from '@roots/bud-support/webpack';
2
+ import type { RuleSetRule } from '@roots/bud-framework/config';
3
+ import type { Rule as Interface, Options, Output, Parser } from '@roots/bud-framework/services/build/rule';
4
4
  import Base from '../shared/base.js';
5
5
  /**
6
6
  * RuleSetRule
7
7
  */
8
8
  declare class Rule extends Base implements Interface {
9
9
  /**
10
- * RuleSetRule resolve
11
- */
12
- resolve?: Options[`resolve`];
13
- /**
14
- * RuleSetRule test
10
+ * RuleSetRule exclude
15
11
  */
16
- test: Options[`test`];
12
+ exclude?: Options[`exclude`];
17
13
  /**
18
- * RuleSetRule use
14
+ * RuleSetRule generator
19
15
  */
20
- use?: Options[`use`];
16
+ generator?: Options[`generator`];
21
17
  /**
22
18
  * RuleSetRule include
23
19
  */
24
20
  include?: Options[`include`];
25
21
  /**
26
- * RuleSetRule exclude
22
+ * RuleSetRule parser
27
23
  */
28
- exclude?: Options[`exclude`];
24
+ parser?: Options[`parser`];
29
25
  /**
30
- * RuleSetRule type
26
+ * RuleSetRule resolve
31
27
  */
32
- type?: Options[`type`];
28
+ resolve?: Options[`resolve`];
33
29
  /**
34
30
  * RuleSetRule resourceQuery
35
31
  */
36
32
  resourceQuery?: Options[`resourceQuery`];
37
33
  /**
38
- * RuleSetRule parser
34
+ * RuleSetRule test
39
35
  */
40
- parser?: Options[`parser`];
36
+ test: Options[`test`];
41
37
  /**
42
- * RuleSetRule generator
38
+ * RuleSetRule type
43
39
  */
44
- generator?: Options[`generator`];
40
+ type?: Options[`type`];
45
41
  /**
46
- * Class constructor
42
+ * RuleSetRule use
47
43
  */
48
- constructor(_app: () => Bud, options?: Options);
44
+ use?: Options[`use`];
49
45
  /**
50
- * Set resolve value
46
+ * Class constructor
51
47
  */
52
- getResolve(): Output[`resolve`];
48
+ constructor(_app: () => Bud, options?: Options);
53
49
  /**
54
- * Set resolve value
50
+ * Get `exclude` value
55
51
  */
56
- setResolve(resolve: Options[`resolve`]): this;
52
+ getExclude(): Array<RegExp | string>;
57
53
  /**
58
- * Get `test` value
54
+ * Get generator value
59
55
  */
60
- getTest(): Output['test'];
56
+ getGenerator(): {
57
+ [index: string]: any;
58
+ };
61
59
  /**
62
- * Set `test` value
60
+ * Get `include` value
63
61
  */
64
- setTest(test: Options['test']): this;
62
+ getInclude(): Array<RegExp | string>;
65
63
  /**
66
64
  * Get `parser` value
67
65
  */
68
66
  getParser(): Output['parser'];
69
67
  /**
70
- * Set `parser` value
68
+ * Set resolve value
71
69
  */
72
- setParser(parser: Interface['parser']): this;
70
+ getResolve(): Output[`resolve`];
71
+ /**
72
+ * Get `include` value
73
+ */
74
+ getResourceQuery(): Output[`resourceQuery`];
75
+ /**
76
+ * Get `test` value
77
+ */
78
+ getTest(): Output['test'];
79
+ /**
80
+ * Get `type` value
81
+ */
82
+ getType(): string;
73
83
  /**
74
84
  * Get `use` value
75
85
  */
76
86
  getUse(): Options[`use`];
77
87
  /**
78
- * Set `use` value
88
+ * Set exclude value
79
89
  */
80
- setUse(use: Options[`use`] | ((use: Options[`use`]) => Options[`use`])): this;
90
+ setExclude(excludes: ((excludes: Options['exclude']) => Options['exclude']) | Options['exclude']): this;
81
91
  /**
82
- * Get `include` value
92
+ * Set generator value
83
93
  */
84
- getInclude(): Array<string | RegExp>;
94
+ setGenerator(generator: Options['generator']): this;
85
95
  /**
86
96
  * Set `include` value
87
97
  */
88
98
  setInclude(includes: Options['include']): this;
89
99
  /**
90
- * Get `include` value
91
- */
92
- getResourceQuery(): Output[`resourceQuery`];
93
- /**
94
- * Set `include` value
100
+ * Set `parser` value
95
101
  */
96
- setResourceQuery(query: Options['resourceQuery']): this;
102
+ setParser(parser: Interface['parser']): this;
97
103
  /**
98
- * Get `exclude` value
104
+ * Set resolve value
99
105
  */
100
- getExclude(): Array<string | RegExp>;
106
+ setResolve(resolve: Options[`resolve`]): this;
101
107
  /**
102
- * Set exclude value
108
+ * Set `include` value
103
109
  */
104
- setExclude(excludes: Options['exclude'] | ((excludes: Options['exclude']) => Options['exclude'])): this;
110
+ setResourceQuery(query: Options['resourceQuery']): this;
105
111
  /**
106
- * Get `type` value
112
+ * Set `test` value
107
113
  */
108
- getType(): string;
114
+ setTest(test: Options['test']): this;
109
115
  /**
110
116
  * Set type value
111
117
  */
112
118
  setType(type: Options[`type`]): this;
113
119
  /**
114
- * Get generator value
115
- */
116
- getGenerator(): {
117
- [index: string]: any;
118
- };
119
- /**
120
- * Set generator value
120
+ * Set `use` value
121
121
  */
122
- setGenerator(generator: Options['generator']): this;
122
+ setUse(use: ((use: Options[`use`]) => Options[`use`]) | Options[`use`]): this;
123
123
  /**
124
124
  * Produce final Base output
125
125
  */