You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/bug_report.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ body:
15
15
attributes:
16
16
label: "Checklist"
17
17
options:
18
-
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/template-placeholder/releases/latest)"
18
+
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/vaadin-package-json-optimizer/releases/latest)"
19
19
required: true
20
-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
20
+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/vaadin-package-json-optimizer/issues) or [closed](https://github.com/xdev-software/vaadin-package-json-optimizer/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
21
21
required: true
22
22
- label: "I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise."
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/enhancement.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ body:
13
13
attributes:
14
14
label: "Checklist"
15
15
options:
16
-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
16
+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/vaadin-package-json-optimizer/issues) or [closed](https://github.com/xdev-software/vaadin-package-json-optimizer/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
17
17
required: true
18
18
- label: "I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise."
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/question.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ body:
12
12
attributes:
13
13
label: "Checklist"
14
14
options:
15
-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
15
+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/vaadin-package-json-optimizer/issues) or [closed](https://github.com/xdev-software/vaadin-package-json-optimizer/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
16
16
required: true
17
17
- label: "I have taken the time to fill in all the required details. I understand that the question will be dismissed otherwise."
* Consider doing a [test-deployment](https://github.com/xdev-software/template-placeholder/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
40
+
* Consider doing a [test-deployment](https://github.com/xdev-software/vaadin-package-json-optimizer/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
41
41
* Check the [changelog](CHANGELOG.md)
42
42
43
43
If the ``develop`` is ready for release, create a pull request to the ``master``-Branch and merge the changes
Patches `package.json` and replaces unused packages with an empty package.
7
+
8
+
This also prevents the installation of the corresponding transitive dependencies and lowers the overall attack surface.
9
+
10
+
As of Vaadin 24.8 this results in the following:
11
+
* at least 280 fewer packages (-55%): ~500 → ~210
12
+
* 80MB fewer required storage space (-40%): ~210MB → ~130MB
13
+
* overall faster build/`npm install` by processing/downloading less packages
14
+
15
+
Please note that this is currently intended as a stopgap measure until Vaadin implements [improvements upstream](https://github.com/vaadin/flow/issues/22207).
16
+
17
+
<details><summary>Currently these npm package groups are overwritten with an empty package</summary>
18
+
19
+
*`glob`'s and `rollup-plugin-visualizer`'s CLI packages
20
+
* Vaadin never uses their CLI and only library methods
21
+
* Incorrectly declared dependencies of `transform-ast`
22
+
* All Vaadin Pro components and their corresponding packages
23
+
* Unused dependencies of `workbox`
24
+
25
+
Full details are available in the [source code](./vaadin-package-json-optimizer/src/main/java/software/xdev/vaadin/vpjo/VPJOptimizer.java).
26
+
27
+
</details>
28
+
29
+
## Usage
30
+
31
+
`package.json` needs to be modified BEFORE the Vaadin installs all dependencies using `npm install`.
32
+
33
+
This needs to happen in 2 places:
34
+
1. When building the frontend with the build-frontend goal
For more information have a look at the [demo's `pom.xml`](./vaadin-package-json-optimizer-demo/pom.xml).
6
95
7
96
## Installation
8
-
[Installation guide for the latest release](https://github.com/xdev-software/template-placeholder/releases/latest#Installation)
97
+
[Installation guide for the latest release](https://github.com/xdev-software/vaadin-package-json-optimizer/releases/latest#Installation)
9
98
10
99
## Support
11
100
If you need support as soon as possible and you can't wait for any pull request, feel free to use [our support](https://xdev.software/en/services/support).
@@ -14,4 +103,4 @@ If you need support as soon as possible and you can't wait for any pull request,
14
103
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.
15
104
16
105
## Dependencies and Licenses
17
-
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/template-placeholder/dependencies)
106
+
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/vaadin-package-json-optimizer/dependencies)
0 commit comments