Skip to content

Commit b30a120

Browse files
authored
Merge pull request #317 from SAFE-Stack/v5-docs-add-newget-package-to-client
Add recipe: 'add a nuget package to client' - no change from v4
2 parents 04315e9 + f3d1f8c commit b30a120

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
@@ -88,6 +88,7 @@ nav:
8888
- Package Management:
8989
- Add an NPM package to the Client: "recipes/package-management/add-npm-package-to-client.md"
9090
- Add a NuGet package to the Server: "recipes/package-management/add-nuget-package-to-server.md"
91+
- Add a NuGet package to the Client: "recipes/package-management/add-nuget-package-to-client.md"
9192
- Migrate to Paket from NuGet: "recipes/package-management/migrate-to-paket.md"
9293
- Migrate to NuGet from Paket: "recipes/package-management/migrate-to-nuget.md"
9394
- Sync NuGet and NPM Packages: "recipes/package-management/sync-nuget-and-npm-packages.md"
@@ -153,7 +154,6 @@ nav:
153154
- Package Management:
154155
- Add an NPM package to the Client: "v4-recipes/package-management/add-npm-package-to-client.md"
155156
- Add a NuGet package to the Server: "v4-recipes/package-management/add-nuget-package-to-server.md"
156-
- Add a NuGet package to the Client: "v4-recipes/package-management/add-nuget-package-to-client.md"
157157
- Migrate to Paket from NuGet: "v4-recipes/package-management/migrate-to-paket.md"
158158
- Migrate to NuGet from Paket: "v4-recipes/package-management/migrate-to-nuget.md"
159159
- Sync NuGet and NPM Packages: "v4-recipes/package-management/sync-nuget-and-npm-packages.md"

0 commit comments

Comments
 (0)