Skip to content

Commit ffd3065

Browse files
committed
update docs
1 parent 34cad15 commit ffd3065

File tree

2 files changed

+30
-35
lines changed

2 files changed

+30
-35
lines changed

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,12 @@ The new DSL was designed to be succinct, typed, declarative, extensible and easy
1414

1515
See the [project home page](https://fake.build/) for tutorials and [API documentation](http://fake.build/apidocs/v5/index.html).
1616

17-
# Build the project
17+
## Build the project
1818

19-
* Quick: Download and install the [Dotnet SDK](https://www.microsoft.com/net/learn/get-started) and run `dotnet build build.proj`
20-
* Fake5: Install FAKE 5 (for example via `choco install fake -pre`) and run `fake build`
19+
* Either: Download and install the [Dotnet SDK](https://www.microsoft.com/net/learn/get-started) and run `dotnet tool restore` followed by `dotnet fake build`
20+
* Or: Install FAKE 5 (for example via `choco install fake -pre`) and run `fake build`
2121

22-
> Note: The build of the "legacy" parts (FAKE 4) will most likely fail
23-
>
24-
> - when you are on linux and do not have mono installed
25-
> - when you are on windows and do not have Visual Studio installed
26-
>
27-
> Either build only the `netcore` parts via `fake build target FullDotNetCore` or install the requirements according to the [contributing page](http://fsharp.github.com/FAKE/contributing.html)
22+
> Note: You can find more details on the [contributing page](http://fsharp.github.com/FAKE/contributing.html)
2823
2924
Make sure to have long path enabled: https://superuser.com/questions/1119883/windows-10-enable-ntfs-long-paths-policy-option-missing
3025
Otherwise the test-suite will fail (However, the compilation should work)

help/markdown/contributing.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Thank you for your interest in contributing to FAKE! This guide explains everyth
44

55
__Before diving in__, please note:
66

7-
* You are encouraged to **improve this document** by sending a pull request to the FAKE project on GitHub. If you learn something while playing with FAKE, please record your [findings here](https://github.com/fsharp/FAKE/blob/master/help/markdown/contributing.md)!
7+
* You are encouraged to **improve this document** by sending a pull request to the FAKE project on GitHub. If you learn something while playing with FAKE, please record your [findings here](https://github.com/fsharp/FAKE/blob/release/next/help/markdown/contributing.md)!
88

99
* If you'd like to discuss a feature (a good idea!) or are looking for suggestions on how to to contribute:
1010
* **Check the [Issue list](https://github.com/fsharp/FAKE/issues)** on GitHub,
1111
* **Visit the [Gitter room](https://gitter.im/fsharp/FAKE)**
1212

13-
* Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the Project shall be under the terms and conditions of the **Apache 2.0 license**. See [`/License.txt`](https://github.com/fsharp/FAKE/tree/master/License.txt) for details.
13+
* Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the Project shall be under the terms and conditions of the **Apache 2.0 license**. See [`/License.txt`](https://github.com/fsharp/FAKE/tree/release/next/License.txt) for details.
1414

1515
## Prerequisites
1616

@@ -20,7 +20,7 @@ Before building and developing FAKE, you must:
2020

2121
**Linux and Mac** users should install the .NET Core SDK and Mono per this guide, "[Cross-Platform Development with F#](http://fsharp.org/guides/mac-linux-cross-platform/)".
2222

23-
**Windows** users can install **Visual Studio 2017**. The [Community Edition](https://www.visualstudio.com/de/vs/community/)
23+
**Windows** users can install **Visual Studio**. The [Community Edition](https://www.visualstudio.com/de/vs/community/)
2424
is freely available for open-source projects.
2525

2626
<div class="alert alert-info">
@@ -39,10 +39,12 @@ For FAKE development, [Visual Studio Code](https://code.visualstudio.com/Downloa
3939

4040
### Install FAKE
4141

42-
You can quickly install FAKE using the dotnet SDK:
42+
You can quickly install and use FAKE with the dotnet SDK (we use fake-cli as local tool):
4343
<pre>
4444
<code class="lang-bash">
45-
dotnet tool install fake-cli -g
45+
cd /projects/FAKE
46+
dotnet tool restore
47+
dotnet fake --version
4648
</code>
4749
</pre>
4850

@@ -61,17 +63,17 @@ For alternative methods of installing FAKE, please see the [Getting Started guid
6163
</code>
6264
</pre>
6365

64-
4. **Checkout** the `master` branch.
66+
4. **Checkout** the `release/next` branch.
6567
<pre>
6668
<code class="lang-bash">
67-
git checkout master
69+
git checkout release/next
6870
</code>
6971
</pre>
7072

71-
5. To verify that everything works, **build** `master` via:
73+
5. To verify that everything works, **build** `release/next` via:
7274
<pre>
7375
<code class="lang-bash">
74-
fake run build.fsx
76+
dotnet fake build
7577
</code>
7678
</pre>
7779

@@ -89,7 +91,7 @@ For alternative methods of installing FAKE, please see the [Getting Started guid
8991
9. Re-run the build script to **confirm that all tests pass**.
9092
<pre>
9193
<code class="lang-bash">
92-
fake run build.fsx
94+
dotnet fake build
9395
</code>
9496
</pre>
9597

@@ -99,7 +101,7 @@ For alternative methods of installing FAKE, please see the [Getting Started guid
99101
<pre>
100102
<code class="lang-bash">
101103
git fetch upstream
102-
git rebase upstream/master
104+
git rebase upstream/release/next
103105
git push origin myfeature -f
104106
</code>
105107
</pre>
@@ -108,7 +110,7 @@ For alternative methods of installing FAKE, please see the [Getting Started guid
108110

109111
## Contributing Documentation
110112

111-
The code for all documentation can be found in the [`help` directory on GitHub](https://github.com/fsharp/FAKE/tree/master/help). If you find a bug or add a new feature, *make sure you document it*!
113+
The code for all documentation can be found in the [`help` directory on GitHub](https://github.com/fsharp/FAKE/tree/release/next/help). If you find a bug or add a new feature, *make sure you document it*!
112114

113115
### Building the Documentation
114116

@@ -118,14 +120,14 @@ It turns Markdown files `*.md` with embedded code snippets and F# script `*.fsx`
118120
To build the documentation from scratch, simply run:
119121
<pre>
120122
<code class="lang-bash">
121-
fake build target GenerateDocs
123+
dotnet fake build target GenerateDocs
122124
</code>
123125
</pre>
124126

125127
To save time, you may skip the prerequisite build steps and run the `GenerateDocs` target directly using the single target `-s` switch:
126128
<pre>
127129
<code class="lang-bash">
128-
fake build -s target GenerateDocs
130+
dotnet fake build -s target GenerateDocs
129131
</code>
130132
</pre>
131133
(Note: this assumes binaries are already built and have not been modified.)
@@ -136,7 +138,7 @@ To save time, you may skip the prerequisite build steps and run the `GenerateDoc
136138
Running the following target spins up a webserver on localhost and opens the newly built docs in a browser window:
137139
<pre>
138140
<code class="lang-bash">
139-
fake build target HostDocs
141+
dotnet fake build target HostDocs
140142
</code>
141143
</pre>
142144

@@ -165,15 +167,15 @@ e.g: Using dotnet cli
165167

166168
## Style Guidlines
167169

168-
* When working on FAKE 5 core, [Visual Studio Code](https://code.visualstudio.com/) with [Ionide](http://ionide.io/) helps a lot!
170+
* When working on FAKE 5, [Visual Studio Code](https://code.visualstudio.com/) with [Ionide](http://ionide.io/) helps a lot!
169171

170172
* Read the [F# component design guidelines](http://fsharp.org/specs/component-design-guidelines/).
171173

172174
* Read the [API Design Guidelines](#API-Design-Guidelines) below.
173175

174176
* Add documentation for your feature
175177

176-
* If you add new markdown documentation, make sure to link if from an existing site. Ideally, add it to the [menu](https://github.com/fsharp/FAKE/blob/master/help/templates/template.cshtml)
178+
* If you add new markdown documentation, make sure to link if from an existing site. Ideally, add it to the [menu](https://github.com/fsharp/FAKE/blob/release/next/help/templates/template.cshtml)
177179

178180
* If you write API documentation but no extra markdown, please consider adding it to the menu as well.
179181

@@ -207,25 +209,23 @@ e.g: Using dotnet cli
207209

208210
* Fake 4 still allows hotfixes. Please send the PR against the [hotfix_fake4 branch](https://github.com/fsharp/FAKE/tree/hotfix_fake4).
209211

210-
It would be helpful if a second PR against `master` is sent that merges the hotfix into `master` and adds the hotfix to the FAKE 5 code as well.
212+
It would be helpful if a second PR against `release/next` is sent that merges the hotfix into `release/next` and adds the hotfix to the FAKE 5 code as well.
211213

212214
## Porting Modules to FAKE 5
213215

214216
As mentioned in the ["Fake 5 learn more"](fake-fake5-learn-more.html) section, we could use your help porting modules to FAKE 5. To save you from some pitfalls, this section provides a working approach to migrating modules.
215217

216-
Tooling in netcore is not optimal yet, so some things have to be done by hand. These steps will enable pretty good IDE support:
218+
Try the following:
217219

218220
* Copy one of the existing netcore projects and edit the project file by hand (rename)
219221
* Copy the old implementation files from `src/app/FakeLib` to `/src/app/Fake.<ModuleType>.<Name>` (update project file again if required)
220-
* Reference the new files in FakeLib (again updating `FakeLib.fsproj` by hand to properly reference the stuff)
221-
* Open `Fake.sln` and go from there. Because in F# you can only reference stuff defines in files ABOVE, this is ALMOST perfect
222-
* Once stuff compiles in the (`Fake.sln`) solution the remaining changes to make the netcore project compile are usually straightforward (you basically only need to fix project references or add framework nuget packages if needed). Let us know if you struggle at this point (in the PR or a new issue).
222+
* (Optionally, there is no need for new stuff to appear in FakeLib at this point) Reference the new files in FakeLib (again updating `FakeLib.fsproj` by hand to properly reference the stuff)
223+
* Open `Fake.sln`, add the project and go from there.
224+
* Once stuff compiles in the (`Fake.sln`) solution you are usually good to go. Let us know if you struggle at this point (in the PR or a new issue).
223225
* Add the info about the new module to the `dotnetAssemblyInfos` variable in `build.fsx`. From this point on the build script will let you know if anything is missing. Again, if you have problems let us know.
224226
* Mark the old module with the `Obsolete` attribute.
227+
* Test everything with a full `dotnet fake build`
225228

226-
<div class="alert alert-info">
227-
<h5>INFO</h5> <code>src/Fake-netcore.sln</code> is currently not used (as IDEs don't support that yet). However it is used so speed up the build, <code>fake run build.fsx</code> will let you know what to do in the error message.
228-
</div>
229229
These steps will ensure:
230230

231231
* People using the NuGet package will get the warnings to update the new API
@@ -250,4 +250,4 @@ If you ever need a release/bugfix, make sure to mention that in your PR. We can
250250
Those bits should be considered for "unblocking"-purposes or testing only.
251251
</div>
252252

253-
The [release process](https://fakebuild.visualstudio.com/FSProjects/_releases2?definitionId=1&view=mine&_a=releases) is publicly available as well.
253+
The [release process](https://fakebuild.visualstudio.com/FSProjects/_releases2?definitionId=1&view=mine&_a=releases) is publicly available as well.

0 commit comments

Comments
 (0)