-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
docs/recipes/package-management/add-nuget-package-to-client.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# How do I add a NuGet package to the Client? | ||
Adding packages to the Client project is a very [similar process to the Server](../add-nuget-package-to-server), with a few key differences: | ||
|
||
- Any references to the `Server` directory should be `Client` | ||
|
||
- 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). | ||
|
||
- If the NuGet package uses any JS libraries you must install them. | ||
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. | ||
|
||
There are [lots of great libraries](../../awesome-safe-components.md) available to choose from. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters