@roots/bud-compiler 6.10.0 → 6.11.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.
- package/lib/compiler.service.d.ts +43 -0
- package/lib/compiler.service.d.ts.map +1 -0
- package/lib/compiler.service.js +172 -0
- package/lib/compiler.service.js.map +1 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -0
- package/package.json +5 -5
@@ -0,0 +1,43 @@
|
|
1
|
+
import { Service } from '@roots/bud-framework/service';
|
2
|
+
import type { Compiler as Contract } from '@roots/bud-framework/services';
|
3
|
+
import type { ErrorWithSourceFile } from '@roots/bud-support/open';
|
4
|
+
import type webpack from '@roots/bud-support/webpack';
|
5
|
+
import type { MultiCompiler, MultiStats, StatsError } from '@roots/bud-support/webpack';
|
6
|
+
/**
|
7
|
+
* Wepback compilation controller class
|
8
|
+
*/
|
9
|
+
export declare class Compiler extends Service implements Contract.Service {
|
10
|
+
/**
|
11
|
+
* Compiler implementation
|
12
|
+
*/
|
13
|
+
implementation: typeof webpack;
|
14
|
+
/**
|
15
|
+
* Compiler instance
|
16
|
+
*/
|
17
|
+
instance: Contract.Service[`instance`];
|
18
|
+
/**
|
19
|
+
* Compilation stats
|
20
|
+
*/
|
21
|
+
stats: Contract.Service[`stats`];
|
22
|
+
/**
|
23
|
+
* Configuration
|
24
|
+
*/
|
25
|
+
config: Contract.Service[`config`];
|
26
|
+
/**
|
27
|
+
* Initiates compilation
|
28
|
+
*/
|
29
|
+
compile(): Promise<MultiCompiler>;
|
30
|
+
/**
|
31
|
+
* Stats handler
|
32
|
+
*/
|
33
|
+
onStats(stats: MultiStats): Promise<void>;
|
34
|
+
/**
|
35
|
+
* Compiler error event
|
36
|
+
*/
|
37
|
+
onError(error: Error): Promise<void>;
|
38
|
+
/**
|
39
|
+
* Parse errors from webpack stats
|
40
|
+
*/
|
41
|
+
sourceErrors(errors: Array<StatsError>): Array<ErrorWithSourceFile | StatsError>;
|
42
|
+
}
|
43
|
+
//# sourceMappingURL=compiler.service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"compiler.service.d.ts","sourceRoot":"","sources":["../src/compiler.service.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,OAAO,EAAC,MAAM,8BAA8B,CAAA;AACpD,OAAO,KAAK,EAAC,QAAQ,IAAI,QAAQ,EAAC,MAAM,+BAA+B,CAAA;AAGvE,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,yBAAyB,CAAA;AAGhC,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAA;AACrD,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EAEV,UAAU,EACX,MAAM,4BAA4B,CAAA;AAEnC;;GAEG;AACH,qBAAa,QAAS,SAAQ,OAAQ,YAAW,QAAQ,CAAC,OAAO;IAC/D;;OAEG;IACI,cAAc,EAAE,OAAO,OAAO,CAAA;IAErC;;OAEG;IACI,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAE7C;;OAEG;IACI,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IAEvC;;OAEG;IACI,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAK;IAE9C;;OAEG;IAEU,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC;IAsC9C;;OAEG;IAEU,OAAO,CAAC,KAAK,EAAE,UAAU;IAwDtC;;OAEG;IAEU,OAAO,CAAC,KAAK,EAAE,KAAK;IAuBjC;;OAEG;IAEI,YAAY,CACjB,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,GACxB,KAAK,CAAC,mBAAmB,GAAG,UAAU,CAAC;CAwC3C"}
|
@@ -0,0 +1,172 @@
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
2
|
+
import { pathToFileURL } from 'node:url';
|
3
|
+
import * as App from '@roots/bud-dashboard/app';
|
4
|
+
import { Service } from '@roots/bud-framework/service';
|
5
|
+
import { bind } from '@roots/bud-support/decorators';
|
6
|
+
import { duration } from '@roots/bud-support/human-readable';
|
7
|
+
import React from '@roots/bud-support/react';
|
8
|
+
import stripAnsi from '@roots/bud-support/strip-ansi';
|
9
|
+
/**
|
10
|
+
* Wepback compilation controller class
|
11
|
+
*/
|
12
|
+
export class Compiler extends Service {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments);
|
15
|
+
/**
|
16
|
+
* Configuration
|
17
|
+
*/
|
18
|
+
this.config = [];
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* Initiates compilation
|
22
|
+
*/
|
23
|
+
async compile() {
|
24
|
+
this.implementation = await this.app.module.import(`webpack`);
|
25
|
+
this.logger.log(`imported webpack`, this.implementation.version);
|
26
|
+
this.config = !this.app.hasChildren
|
27
|
+
? [await this.app.build.make()]
|
28
|
+
: await Promise.all(Object.values(this.app.children).map(async (child) => {
|
29
|
+
try {
|
30
|
+
return await child.build.make();
|
31
|
+
}
|
32
|
+
catch (error) {
|
33
|
+
throw error;
|
34
|
+
}
|
35
|
+
}));
|
36
|
+
await this.app.hooks.fire(`compiler.before`, this.app);
|
37
|
+
if (this.app.isCLI() && this.app.context.args.dry) {
|
38
|
+
this.app.context.logger.timeEnd(`initialize`);
|
39
|
+
this.logger.log(`running in dry mode. exiting early.`);
|
40
|
+
return;
|
41
|
+
}
|
42
|
+
this.app.context.logger.timeEnd(`initialize`);
|
43
|
+
this.instance = this.implementation(this.config);
|
44
|
+
this.instance.hooks.done.tap(this.app.label, async (stats) => {
|
45
|
+
await this.onStats(stats);
|
46
|
+
await this.app.hooks.fire(`compiler.close`, this.app);
|
47
|
+
});
|
48
|
+
await this.app.hooks.fire(`compiler.after`, this.app);
|
49
|
+
return this.instance;
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* Stats handler
|
53
|
+
*/
|
54
|
+
async onStats(stats) {
|
55
|
+
const makeNoticeTitle = (child) => this.app.label !== child.name
|
56
|
+
? `${this.app.label} (${child.name})`
|
57
|
+
: child.name;
|
58
|
+
this.stats = stats.toJson(this.app.hooks.filter(`build.stats`));
|
59
|
+
await this.app.hooks.fire(`compiler.stats`, stats);
|
60
|
+
const statsUpdate = this.app.dashboard.update(stats);
|
61
|
+
if (stats.hasErrors()) {
|
62
|
+
process.exitCode = 1;
|
63
|
+
this.stats.children = this.stats.children?.map(child => ({
|
64
|
+
...child,
|
65
|
+
errors: this.sourceErrors(child.errors),
|
66
|
+
}));
|
67
|
+
this.stats.children
|
68
|
+
?.filter(child => child.errorsCount > 0)
|
69
|
+
.forEach(child => {
|
70
|
+
const error = child.errors?.shift();
|
71
|
+
if (!error)
|
72
|
+
return;
|
73
|
+
this.app.notifier.notify({
|
74
|
+
title: makeNoticeTitle(child),
|
75
|
+
subtitle: error.file ? `Error in ${error.name}` : error.name,
|
76
|
+
message: stripAnsi(error.message),
|
77
|
+
open: error.file ? pathToFileURL(error.file) : ``,
|
78
|
+
group: `${this.app.label}-${child.name}`,
|
79
|
+
});
|
80
|
+
this.app.notifier.openEditor(error.file);
|
81
|
+
});
|
82
|
+
}
|
83
|
+
this.stats.children
|
84
|
+
?.filter(child => child.errorsCount === 0)
|
85
|
+
.forEach(child => {
|
86
|
+
this.app.notifier.notify({
|
87
|
+
title: makeNoticeTitle(child),
|
88
|
+
subtitle: `Build successful`,
|
89
|
+
message: child.modules
|
90
|
+
? `${child.modules.length} modules compiled in ${duration(child.time)}`
|
91
|
+
: `Compiled in ${duration(child.time)}`,
|
92
|
+
group: `${this.app.label}-${child.name}`,
|
93
|
+
open: this.app.server?.publicUrl.href,
|
94
|
+
});
|
95
|
+
this.app.notifier.openBrowser(this.app.server?.publicUrl.href);
|
96
|
+
});
|
97
|
+
await statsUpdate;
|
98
|
+
}
|
99
|
+
/**
|
100
|
+
* Compiler error event
|
101
|
+
*/
|
102
|
+
async onError(error) {
|
103
|
+
process.exitCode = 1;
|
104
|
+
await this.app.hooks.fire(`compiler.error`, error);
|
105
|
+
this.app.isDevelopment &&
|
106
|
+
this.app.server.appliedMiddleware?.hot?.publish({ error });
|
107
|
+
this.app.notifier.notify({
|
108
|
+
subtitle: error.name,
|
109
|
+
message: error.message,
|
110
|
+
group: this.app.label,
|
111
|
+
});
|
112
|
+
await this.app.dashboard.renderer.once(React.createElement(App.Error, { name: "Compiler error", message: error.message, stack: error.stack }));
|
113
|
+
}
|
114
|
+
/**
|
115
|
+
* Parse errors from webpack stats
|
116
|
+
*/
|
117
|
+
sourceErrors(errors) {
|
118
|
+
if (!errors || !errors.length)
|
119
|
+
return [];
|
120
|
+
try {
|
121
|
+
const parseError = (error) => {
|
122
|
+
let file;
|
123
|
+
const modules = this.stats.children.flatMap(child => child.modules);
|
124
|
+
const moduleIdent = error.moduleId ?? error.moduleName;
|
125
|
+
const module = modules.find(module => module?.id === moduleIdent || module?.name === moduleIdent);
|
126
|
+
if (!module) {
|
127
|
+
return error;
|
128
|
+
}
|
129
|
+
if (module.nameForCondition) {
|
130
|
+
file = module.nameForCondition;
|
131
|
+
}
|
132
|
+
else if (module.name) {
|
133
|
+
file = this.app.path(`@src`, module.name);
|
134
|
+
}
|
135
|
+
if (!file) {
|
136
|
+
return error;
|
137
|
+
}
|
138
|
+
return { ...error, name: module.name ?? error.name, file };
|
139
|
+
};
|
140
|
+
return errors?.map(parseError).filter(Boolean);
|
141
|
+
}
|
142
|
+
catch (error) {
|
143
|
+
this.app.warn(`error parsing errors`, error);
|
144
|
+
return [];
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
__decorate([
|
149
|
+
bind,
|
150
|
+
__metadata("design:type", Function),
|
151
|
+
__metadata("design:paramtypes", []),
|
152
|
+
__metadata("design:returntype", Promise)
|
153
|
+
], Compiler.prototype, "compile", null);
|
154
|
+
__decorate([
|
155
|
+
bind,
|
156
|
+
__metadata("design:type", Function),
|
157
|
+
__metadata("design:paramtypes", [Function]),
|
158
|
+
__metadata("design:returntype", Promise)
|
159
|
+
], Compiler.prototype, "onStats", null);
|
160
|
+
__decorate([
|
161
|
+
bind,
|
162
|
+
__metadata("design:type", Function),
|
163
|
+
__metadata("design:paramtypes", [Error]),
|
164
|
+
__metadata("design:returntype", Promise)
|
165
|
+
], Compiler.prototype, "onError", null);
|
166
|
+
__decorate([
|
167
|
+
bind,
|
168
|
+
__metadata("design:type", Function),
|
169
|
+
__metadata("design:paramtypes", [Array]),
|
170
|
+
__metadata("design:returntype", Array)
|
171
|
+
], Compiler.prototype, "sourceErrors", null);
|
172
|
+
//# sourceMappingURL=compiler.service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"compiler.service.js","sourceRoot":"","sources":["../src/compiler.service.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAA;AAEtC,OAAO,KAAK,GAAG,MAAM,0BAA0B,CAAA;AAE/C,OAAO,EAAC,OAAO,EAAC,MAAM,8BAA8B,CAAA;AAEpD,OAAO,EAAC,IAAI,EAAC,MAAM,+BAA+B,CAAA;AAClD,OAAO,EAAC,QAAQ,EAAC,MAAM,mCAAmC,CAAA;AAK1D,OAAO,KAAK,MAAM,0BAA0B,CAAA;AAC5C,OAAO,SAAS,MAAM,+BAA+B,CAAA;AASrD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO;IAArC;;QAgBE;;WAEG;QACI,WAAM,GAA+B,EAAE,CAAA;IAiLhD,CAAC;IA/KC;;OAEG;IAEU,AAAN,KAAK,CAAC,OAAO;QAClB,IAAI,CAAC,cAAc,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;QAC7D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,kBAAkB,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;QAEhE,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW;YACjC,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;AAMY;IADZ,IAAI;;;;uCAuDJ;AAMY;IADZ,IAAI;;qCACuB,KAAK;;uCAqBhC;AAKD;IAAC,IAAI;;qCAEK,KAAK;oCACZ,KAAK;4CAuCP"}
|
package/lib/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAE9C,eAAe,QAAQ,CAAA"}
|
package/lib/index.js
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
// Copyright © Roots Software Foundation LLC
|
2
|
+
// Licensed under the MIT license.
|
3
|
+
/**
|
4
|
+
* The bud compiler interface
|
5
|
+
*
|
6
|
+
* @see https://bud.js.org
|
7
|
+
* @see https://github.com/roots/bud
|
8
|
+
*
|
9
|
+
* @packageDocumentation
|
10
|
+
*/
|
11
|
+
import { Compiler } from './compiler.service.js';
|
12
|
+
export default Compiler;
|
13
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,kCAAkC;AAElC;;;;;;;GAOG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAE9C,eAAe,QAAQ,CAAA"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@roots/bud-compiler",
|
3
3
|
"description": "Compilation handler",
|
4
|
-
"version": "6.
|
4
|
+
"version": "6.11.0",
|
5
5
|
"homepage": "https://roots.io/bud",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -58,14 +58,14 @@
|
|
58
58
|
}
|
59
59
|
},
|
60
60
|
"devDependencies": {
|
61
|
-
"@roots/bud-api": "6.
|
61
|
+
"@roots/bud-api": "6.11.0",
|
62
62
|
"@skypack/package-check": "0.2.2",
|
63
63
|
"@types/node": "18.11.18"
|
64
64
|
},
|
65
65
|
"dependencies": {
|
66
|
-
"@roots/bud-dashboard": "6.
|
67
|
-
"@roots/bud-framework": "6.
|
68
|
-
"@roots/bud-support": "6.
|
66
|
+
"@roots/bud-dashboard": "6.11.0",
|
67
|
+
"@roots/bud-framework": "6.11.0",
|
68
|
+
"@roots/bud-support": "6.11.0"
|
69
69
|
},
|
70
70
|
"volta": {
|
71
71
|
"extends": "../../../package.json"
|