Skip to content

Commit f3d1f8c

Browse files
committed
Add recipe: 'add a nuget package to client' - no change from v4
1 parent d4cf9ce commit f3d1f8c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# How do I add a NuGet package to the Client?
2+
Adding packages to the Client project is a very [similar process to the Server](../add-nuget-package-to-server), with a few key differences:
3+
4+
- Any references to the `Server` directory should be `Client`
5+
6+
- Client code written in F# is converted into JavaScript using [Fable](https://fable.io/docs/index.html). Because of this, we must be careful to only reference libraries which are [Fable compatible](https://fable.io/docs/your-fable-project/use-a-fable-library.html).
7+
8+
- If the NuGet package uses any JS libraries you must install them.
9+
For simplicity, [use Femto to sync](./sync-nuget-and-npm-packages.md) - if the NuGet package is compatible - or [install via NPM](./add-npm-package-to-client.md) manually, if not.
10+
11+
There are [lots of great libraries](../../awesome-safe-components.md) available to choose from.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ nav:
8787
- Package Management:
8888
- Add an NPM package to the Client: "recipes/package-management/add-npm-package-to-client.md"
8989
- Add a NuGet package to the Server: "recipes/package-management/add-nuget-package-to-server.md"
90+
- Add a NuGet package to the Client: "recipes/package-management/add-nuget-package-to-client.md"
9091
- Migrate to Paket from NuGet: "recipes/package-management/migrate-to-paket.md"
9192
- Migrate to NuGet from Paket: "recipes/package-management/migrate-to-nuget.md"
9293
- Sync NuGet and NPM Packages: "recipes/package-management/sync-nuget-and-npm-packages.md"
@@ -152,7 +153,6 @@ nav:
152153
- Package Management:
153154
- Add an NPM package to the Client: "v4-recipes/package-management/add-npm-package-to-client.md"
154155
- Add a NuGet package to the Server: "v4-recipes/package-management/add-nuget-package-to-server.md"
155-
- Add a NuGet package to the Client: "v4-recipes/package-management/add-nuget-package-to-client.md"
156156
- Migrate to Paket from NuGet: "v4-recipes/package-management/migrate-to-paket.md"
157157
- Migrate to NuGet from Paket: "v4-recipes/package-management/migrate-to-nuget.md"
158158
- Sync NuGet and NPM Packages: "v4-recipes/package-management/sync-nuget-and-npm-packages.md"

0 commit comments

Comments
 (0)