Skip to content

Commit 3543c6a

Browse files
author
Maxime Mangel
committed
Add note about including native files
1 parent 4326713 commit 3543c6a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/docs/your-fable-project/author-a-fable-library.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ To write a library that can be used in Fable you need to fulfill a few condition
2626
</ItemGroup>
2727
```
2828

29+
If you needs native files like `.js` or `.py`, you need to include them in the `fable` folder as well.
30+
31+
Example:
32+
33+
```xml
34+
<ItemGroup>
35+
<Content Include="*.fsproj; *.fs; *.js" Exclude="**\*.fs.js" PackagePath="fable\" />
36+
</ItemGroup>
37+
```
38+
39+
:::info
40+
Note that you don't want to include Fable generated files and so we exclude them with `Exclude="**\*.fs.js"`
41+
:::
42+
2943
In order to publish the package to Nuget check [the Microsoft documentation](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-the-dotnet-cli) or alternatively you can also [use Fake](https://fake.build/dotnet-nuget.html#Creating-NuGet-packages).
3044

3145
## Make your package discoverable

0 commit comments

Comments
 (0)