@roots/bud-compiler 6.0.0 → 6.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.
- package/README.md +43 -22
- package/lib/compiler.service.d.ts.map +1 -1
- package/lib/compiler.service.js +1 -2
- package/lib/compiler.service.js.map +1 -1
- package/package.json +4 -4
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" />
|
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-compiler</strong>
|
11
|
-
</h1>
|
9
|
+
<h1 align="center"><strong>@roots/bud-compiler</strong></h1>
|
12
10
|
|
13
11
|
<p align="center">
|
14
12
|
Compilation handler
|
15
13
|
</p>
|
16
14
|
|
15
|
+
---
|
16
|
+
|
17
17
|
## Installation
|
18
18
|
|
19
19
|
Install **@roots/bud-compiler** to your project.
|
20
20
|
|
21
|
-
|
21
|
+
Yarn:
|
22
|
+
|
23
|
+
```sh
|
22
24
|
yarn add @roots/bud-compiler --dev
|
23
25
|
```
|
24
26
|
|
25
|
-
|
27
|
+
npm:
|
28
|
+
|
29
|
+
```sh
|
30
|
+
npm install @roots/bud-compiler --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
|
-
|
41
|
+
## License
|
42
|
+
|
43
|
+
@roots/bud-compiler 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
|
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/"
|
50
|
-
<
|
51
|
-
|
52
|
-
<a href="https://
|
53
|
-
<
|
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>
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"compiler.service.d.ts","sourceRoot":"","sources":["../src/compiler.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAM,QAAQ,IAAI,QAAQ,EAAC,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAA;AAG5C,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,KAAK,EACL,gBAAgB,EAChB,YAAY,EACb,MAAM,SAAS,CAAA;AAChB,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAA;AAGlD;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,OAAQ,YAAW,QAAQ,CAAC,OAAO;IAC/D;;;;OAIG;IACH,SAAS,CAAC,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAU;IAE5D;;;;OAIG;IACH,IAAW,cAAc,IAAI,QAAQ,CAAC,cAAc,CAEnD;IACD,IAAW,cAAc,CAAC,cAAc,EAAE,QAAQ,CAAC,cAAc,EAEhE;IAED;;;;OAIG;IACI,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;IAEnD;;;;OAIG;IACI,KAAK,EAAE;QACZ,IAAI,EAAE,gBAAgB,CAAA;QACtB,MAAM,EAAE,MAAM,CAAA;KACf,CAGA;IAED;;;;OAIG;IACI,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAK;IAEnC;;;;OAIG;IACI,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAK;IA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AAK,CAAC,QAAQ,CAAC,CAAK;IAErC;;;;OAIG;IACI,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAK;IAEjC,IAAI,EAAE,OAAO,CAAQ;IACrB,SAAS,EAAE,OAAO,CAAQ;IAEjC;;;;;;;;OAQG;IAGU,OAAO;IAQpB;;;;;;OAMG;IAGU,MAAM,CACjB,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,GAC3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IA2B3C;;;;;OAKG;IAEU,MAAM;IAuBnB;;;;;;OAMG;IAGI,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,UAAU;IAKvD;;;;;OAKG;IAEI,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU;IAmB5C;;;;;OAKG;IAEI,OAAO,CAAC,KAAK,EAAE,YAAY;IAKlC;;;;;OAKG;IAEI,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK;CAMzC"}
|
package/lib/compiler.service.js
CHANGED
@@ -87,7 +87,6 @@ export class Compiler extends Service {
|
|
87
87
|
this.app.isDevelopment &&
|
88
88
|
this.compilation.hooks.done.tap(`${this.app.name}-dev-handle`, async (stats) => {
|
89
89
|
this.handleStats(stats);
|
90
|
-
return;
|
91
90
|
});
|
92
91
|
this.compilation.hooks.done.tap(`${this.app.name}-cli-done`, async () => await this.app.hooks.fire('event.compiler.close'));
|
93
92
|
new Webpack.ProgressPlugin(this.app.dashboard.progressCallback).apply(this.compilation);
|
@@ -157,7 +156,7 @@ export class Compiler extends Service {
|
|
157
156
|
*/
|
158
157
|
onClose(error) {
|
159
158
|
if (error)
|
160
|
-
this.onError(error);
|
159
|
+
return this.onError(error);
|
161
160
|
this.app.isProduction && this.app.close();
|
162
161
|
}
|
163
162
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"compiler.service.js","sourceRoot":"","sources":["../src/compiler.service.ts"],"names":[],"mappings":";AACA,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAA;AAQpC,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAE/C;;;;GAIG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO;IAArC;;QACE;;;;WAIG;QACO,oBAAe,GAA4B,OAAO,CAAA;QAqB5D;;;;WAIG;QACI,UAAK,GAGR;YACF,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;SACb,CAAA;QAED;;;;WAIG;QACI,WAAM,GAAoB,EAAE,CAAA;QAEnC;;;;WAIG;QACI,aAAQ,GAAoB,EAAE,CAAA;QAErC;;;;WAIG;QACI,WAAM,GAAyB,EAAE,CAAA;QAEjC,SAAI,GAAY,KAAK,CAAA;QACrB,cAAS,GAAY,KAAK,CAAA;
|
1
|
+
{"version":3,"file":"compiler.service.js","sourceRoot":"","sources":["../src/compiler.service.ts"],"names":[],"mappings":";AACA,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAA;AAQpC,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAE/C;;;;GAIG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO;IAArC;;QACE;;;;WAIG;QACO,oBAAe,GAA4B,OAAO,CAAA;QAqB5D;;;;WAIG;QACI,UAAK,GAGR;YACF,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;SACb,CAAA;QAED;;;;WAIG;QACI,WAAM,GAAoB,EAAE,CAAA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AC,YAAY,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;IAC3C,CAAC;IAED;;;;;OAKG;IAEI,OAAO,CAAC,KAAyB;QACtC,IAAI,CAAC,GAAG,CAAC,aAAa;YACpB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,EAAE,OAAO,CAAC,EAAC,KAAK,EAAC,CAAC,CAAA;QAE1D,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IACvB,CAAC;CACF;AA7IC;IAFC,IAAI;IACJ,IAAI;uCAOJ;AAWD;IAFC,IAAI;IACJ,IAAI;sCA4BJ;AASD;IADC,IAAI;sCAsBJ;AAWD;IAFC,IAAI;IACJ,IAAI;wCAIJ;AASD;IADC,IAAI;2CAkBJ;AASD;IADC,IAAI;uCAIJ;AASD;IADC,IAAI;uCAMJ"}
|
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.1.0",
|
5
5
|
"homepage": "https://roots.io/bud",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -50,14 +50,14 @@
|
|
50
50
|
}
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
|
-
"@roots/bud-api": "6.
|
53
|
+
"@roots/bud-api": "6.1.0",
|
54
54
|
"@skypack/package-check": "0.2.2",
|
55
55
|
"@types/lodash-es": "4.17.6",
|
56
|
-
"@types/node": "16.11.
|
56
|
+
"@types/node": "16.11.41",
|
57
57
|
"webpack": "5.73.0"
|
58
58
|
},
|
59
59
|
"dependencies": {
|
60
|
-
"@roots/bud-framework": "6.
|
60
|
+
"@roots/bud-framework": "6.1.0",
|
61
61
|
"helpful-decorators": "2.1.0",
|
62
62
|
"lodash-es": "4.17.21",
|
63
63
|
"tslib": "2.4.0"
|