Skip to content

Commit f47d70d

Browse files
author
Maxime Mangel
committed
Add documentation generation and FormEvent.Value helper
1 parent b236aa7 commit f47d70d

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.paket/Paket.Restore.targets

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@
4848

4949
<!-- Because ReadAllText is slow on osx/linux, try to find shasum and awk -->
5050
<PropertyGroup>
51-
<PaketRestoreCachedHasher Condition="'$(OS)' != 'Windows_NT' And '$(PaketRestoreCachedHasher)' == '' And Exists('/usr/bin/shasum') And Exists('/usr/bin/awk')">/usr/bin/shasum $(PaketRestoreCacheFile) | /usr/bin/awk '{ print $1 }'</PaketRestoreCachedHasher>
52-
<PaketRestoreLockFileHasher Condition="'$(OS)' != 'Windows_NT' And '$(PaketRestoreLockFileHash)' == '' And Exists('/usr/bin/shasum') And Exists('/usr/bin/awk')">/usr/bin/shasum $(PaketLockFilePath) | /usr/bin/awk '{ print $1 }'</PaketRestoreLockFileHasher>
51+
<PaketRestoreCachedHasher Condition="'$(OS)' != 'Windows_NT' And '$(PaketRestoreCachedHasher)' == '' And Exists('/usr/bin/shasum') And Exists('/usr/bin/awk')">/usr/bin/shasum $(PaketRestoreCacheFile) | /usr/bin/awk '{ print $1 }'</PaketRestoreCachedHasher>
52+
<PaketRestoreLockFileHasher Condition="'$(OS)' != 'Windows_NT' And '$(PaketRestoreLockFileHash)' == '' And Exists('/usr/bin/shasum') And Exists('/usr/bin/awk')">/usr/bin/shasum $(PaketLockFilePath) | /usr/bin/awk '{ print $1 }'</PaketRestoreLockFileHasher>
5353
</PropertyGroup>
5454

5555
<!-- If shasum and awk exist get the hashes -->
5656
<Exec StandardOutputImportance="Low" Condition=" '$(PaketRestoreCachedHasher)' != '' " Command="$(PaketRestoreCachedHasher)" ConsoleToMSBuild='true'>
57-
<Output TaskParameter="ConsoleOutput" PropertyName="PaketRestoreCachedHash" />
57+
<Output TaskParameter="ConsoleOutput" PropertyName="PaketRestoreCachedHash" />
5858
</Exec>
5959
<Exec StandardOutputImportance="Low" Condition=" '$(PaketRestoreLockFileHasher)' != '' " Command="$(PaketRestoreLockFileHasher)" ConsoleToMSBuild='true'>
60-
<Output TaskParameter="ConsoleOutput" PropertyName="PaketRestoreLockFileHash" />
60+
<Output TaskParameter="ConsoleOutput" PropertyName="PaketRestoreLockFileHash" />
6161
</Exec>
6262

6363
<PropertyGroup Condition="Exists('$(PaketRestoreCacheFile)') ">
@@ -127,6 +127,7 @@
127127
<PackageReference Include="%(PaketReferencesFileLinesInfo.PackageName)">
128128
<Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version>
129129
<PrivateAssets Condition="%(PaketReferencesFileLinesInfo.AllPrivateAssets) == 'true'">All</PrivateAssets>
130+
<ExcludeAssets Condition="%(PaketReferencesFileLinesInfo.AllPrivateAssets) == 'exclude'">runtime</ExcludeAssets>
130131
</PackageReference>
131132
</ItemGroup>
132133

@@ -183,8 +184,8 @@
183184

184185
<ConvertToAbsolutePath Condition="@(_NuspecFiles) != ''" Paths="@(_NuspecFiles)">
185186
<Output TaskParameter="AbsolutePaths" PropertyName="NuspecFileAbsolutePath" />
186-
</ConvertToAbsolutePath>
187-
187+
</ConvertToAbsolutePath>
188+
188189

189190
<!-- Call Pack -->
190191
<PackTask Condition="$(UseNewPack)"

src/Fable.React/Fable.Helpers.React.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,12 @@ let inline mountById (domElId: string) (reactEl: ReactElement): unit =
11041104
let inline mountBySelector (domElSelector: string) (reactEl: ReactElement): unit =
11051105
ReactDom.render(reactEl, Browser.document.querySelector(domElSelector))
11061106

1107+
type Fable.Import.React.FormEvent with
1108+
/// Access the value from target
1109+
/// Equivalent to `unbox<string> this.target?value`
1110+
member this.Value =
1111+
unbox<string> this.target?value
1112+
11071113
// Helpers for ReactiveComponents (see #44)
11081114
module ReactiveComponents =
11091115
type [<Pojo>] Props<'P, 'S, 'Msg> = {

src/Fable.React/Fable.React.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<Version>3.1.1</Version>
55
<TargetFrameworks>netstandard1.6;netstandard2.0</TargetFrameworks>
6+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
67
</PropertyGroup>
78
<ItemGroup>
89
<Compile Include="Fable.Import.React.fs" />

src/Fable.Recharts/Fable.Recharts.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<Version>0.1.0-beta-002</Version>
55
<TargetFramework>netstandard1.6</TargetFramework>
6+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
67
</PropertyGroup>
78
<ItemGroup>
89
<Compile Include="Fable.Recharts.fs" />

0 commit comments

Comments
 (0)