Skip to content

Commit 8b3d736

Browse files
authored
Merge pull request #1 from wridgeu/fix/feat-add-yaml
fix: add ui5.yaml to npm package content
2 parents 6c7233c + 3986fde commit 8b3d736

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,20 @@ Add the `fontawesome.icons.lib` library dependency to your `manifest.json` and f
4343
}
4444
```
4545

46-
### Method 1: Using NPM Package with UI5 middleware (Recommended)
46+
### Method 1: Using NPM Package (Recommended)
4747

4848
Install Dependencies
4949

5050
```bash
51-
npm install ui5-fontawesome-lib ui5-middleware-servestatic --save-dev
51+
npm i ui5-fontawesome-lib
52+
```
53+
54+
That should be it. The UI5 tooling will recognize the UI5 dependency (verifiable via UI5 CLI command `UI5 tree`) and take care of loading it for you.
55+
56+
#### with UI5 middleware (alternative recommendation)
57+
58+
```bash
59+
npm i ui5-fontawesome-lib && npm i -D ui5-middleware-servestatic
5260
```
5361

5462
Add the following configuration to your `ui5.yaml`:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"dist/**/*",
2424
"src/**/*",
2525
"LICENSE",
26-
"README.md"
26+
"README.md",
27+
"ui5.yaml"
2728
],
2829
"scripts": {
2930
"build": "npm run build:icons && ui5 build --clean-dest",

ui5.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
specVersion: "1.0"
1+
specVersion: "4.0"
22
metadata:
33
name: fontawesome.icons.lib
44
type: library

0 commit comments

Comments
 (0)