diff --git a/README.md b/README.md index 2d37d2b..90fec06 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,11 @@ See the official [@nfdi4plants/web-components docs](https://nfdi4plants.github.i - Tests can be found in `tests`. 1. Make changes to library and add unit tests. -2. Run `.\build.cmd releasenotes semver:xxx`, where `xxx` can be minor, major or patch. +2. Run `.\build.cmd releasenotes semver:xxx`, where `xxx` can be minor, major or patch. (This will also update the version in `package.json` inside the template project.) 3. Run `.\build.cmd release`. This will: - Run tests - Build the library - - Create a nuget package and copy it to the client test folder. + - Create a nuget packages for both the library and the template and copy the library-.nupkg to the client test folder. 4. Update nuget reference for library to new version. - In `client\loaders\_lib.fsx`. - 👀 It might be necessary to clear nuget cache if the version was not changed for it to update. diff --git a/build/PackageTasks.fs b/build/PackageTasks.fs index 1cfd876..f209345 100644 --- a/build/PackageTasks.fs +++ b/build/PackageTasks.fs @@ -15,7 +15,7 @@ open System.IO /// copy the fresh nuget packages to fornax test client dependency folder let copy_nupkg() = // copy the fresh nuget packages to fornax test client dependency folder - let files = Directory.GetFiles(pkgDir, "*.nupkg") + let files = Directory.GetFiles(pkgDir, "*.nupkg") |> Array.filter (fun x -> x.Contains "Nfdi4Plants.Fornax.Template" |> not) Trace.trace "Copy .nupkg files to test client dependency folder" files |> Array.iter (fun x -> let fileName = Path.GetFileName(x) diff --git a/src/Nfdi4Plants.Fornax.Template/Nfdi4Plants.Fornax.Template.fsproj b/src/Nfdi4Plants.Fornax.Template/Nfdi4Plants.Fornax.Template.fsproj index 3d83cb5..d7f4311 100644 --- a/src/Nfdi4Plants.Fornax.Template/Nfdi4Plants.Fornax.Template.fsproj +++ b/src/Nfdi4Plants.Fornax.Template/Nfdi4Plants.Fornax.Template.fsproj @@ -6,11 +6,12 @@ true net5.0 true - + true false content $(NoWarn);NU5128 + true Nfdi4Plants.Fornax.Template