-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build project and packages (#187)
- Loading branch information
1 parent
f7f89b4
commit db77c2a
Showing
12 changed files
with
374 additions
and
850 deletions.
There are no files selected for viewing
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
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
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
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
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,2 @@ | ||
dotnet tool restore | ||
dotnet run --project ./build/build.fsproj -- %* |
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
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,48 @@ | ||
open Fake.Core | ||
open Fake.DotNet | ||
open Fake.IO | ||
open Fake.IO.FileSystemOperators | ||
open Fake.IO.Globbing.Operators | ||
open Fake.Core.TargetOperators | ||
open BlackFox.Fake | ||
open Fake.JavaScript | ||
|
||
[<EntryPoint>] | ||
let main argv = | ||
|
||
argv | ||
|> Array.toList | ||
|> Context.FakeExecutionContext.Create false "build.fsx" | ||
|> Context.RuntimeContext.Fake | ||
|> Context.setExecutionContext | ||
|
||
/// Stores F#, Paket, FsLex & FsYacc Syntax Definition Files | ||
let syntaxDir = "grammars" | ||
/// Location of the FSharp-SyntaxTest VSCode Extension | ||
let extensionDir = "fsharp.syntaxtest" | ||
/// FSharp-SyntaxTest will load the Syntax Definition files in this dir | ||
let extensionSyntaxDir = extensionDir</>"syntaxes" | ||
|
||
Target.initEnvironment () | ||
|
||
let copyGrammar = BuildTask.create "CopyGrammar" [ ] { | ||
Trace.trace "Copying F# Syntax Definition Files\n" | ||
Directory.ensure extensionSyntaxDir | ||
Shell.cleanDir extensionSyntaxDir | ||
Shell.copyFiles extensionSyntaxDir [ | ||
syntaxDir </> "fsharp.fsi.json" | ||
syntaxDir </> "fsharp.fsl.json" | ||
syntaxDir </> "fsharp.fsx.json" | ||
syntaxDir </> "fsharp.json" | ||
syntaxDir </> "paket.dependencies.json" | ||
syntaxDir </> "paket.lock.json" | ||
] | ||
} | ||
|
||
let buildExtension = BuildTask.create "BuildExtension" [ copyGrammar ] { | ||
Trace.trace "Building VSCode Extension - FSharp-SyntaxTest" | ||
} | ||
|
||
BuildTask.runOrList () | ||
|
||
0 |
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 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net7.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="Program.fs" /> | ||
</ItemGroup> | ||
<Import Project="..\.paket\Paket.Restore.targets" /> | ||
</Project> |
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,10 @@ | ||
group netcorebuild | ||
|
||
Fake.DotNet.Cli | ||
Fake.DotNet.Paket | ||
Fake.Core.Target | ||
Fake.Core.Process | ||
Fake.Core.String | ||
Fake.IO.FileSystem | ||
Fake.JavaScript.Npm | ||
BlackFox.Fake.BuildTask |
Oops, something went wrong.