-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab42348
commit 9648c11
Showing
164 changed files
with
28,001 additions
and
132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
src/** | ||
tests/** | ||
tests_external/** | ||
!src/Fable.Build/** |
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,55 @@ | ||
module Build.Test.CompilerJs | ||
|
||
open Build.FableLibrary | ||
open System.IO | ||
open System | ||
open BlackFox.CommandLine | ||
open Build.Utils | ||
open Build | ||
open SimpleExec | ||
open Fake.IO | ||
|
||
|
||
let private mainTestProject = | ||
Path.Resolve("tests", "Js", "Main", "Fable.Tests.fsproj") | ||
|
||
let private fableCompilerJsDir = Path.Resolve("src", "fable-compiler-js") | ||
let private buildDir = Path.Combine(fableCompilerJsDir, "temp") | ||
let private distDir = Path.Combine(fableCompilerJsDir, "dist") | ||
|
||
module private FableLib = | ||
|
||
let source = Path.Resolve("temp", "fable-library") | ||
let destination = Path.Combine(fableCompilerJsDir, "fable-library") | ||
|
||
module private FableMetadata = | ||
|
||
let source = Path.Resolve("src", "fable-metadata", "lib") | ||
let destination = Path.Combine(fableCompilerJsDir, "fable-metadata") | ||
|
||
let handle (args: string list) = | ||
// BuildFableLibraryJavaScript().Run() | ||
|
||
// Standalone.build () | ||
|
||
// Clean up temp folders | ||
Directory.clean buildDir | ||
Directory.clean distDir | ||
// Clean up destination folders and make sure they exist | ||
Directory.clean FableLib.destination | ||
Directory.clean FableMetadata.destination | ||
|
||
Command.Fable( | ||
CmdLine.empty | ||
|> CmdLine.appendRaw "src" | ||
|> CmdLine.appendPrefix "--outDir" buildDir | ||
|> CmdLine.appendPrefix "--exclude" "Fable.Core", | ||
workingDirectory = fableCompilerJsDir | ||
) | ||
|
||
Command.Run("npx", "vite build", workingDirectory = fableCompilerJsDir) | ||
|
||
Shell.copyRecursive FableLib.source FableLib.destination true |> ignore | ||
|
||
Shell.copyRecursive FableMetadata.source FableMetadata.destination true | ||
|> ignore |
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
Oops, something went wrong.