-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.fsx
63 lines (50 loc) · 1.67 KB
/
build.fsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#r @"fake\FakeLib.dll"
open Fake
let release = @".\bin\release"
let debug = @".\bin\debug"
let pitcore = !! @"src\Pit.sln"
let pitcompiler = !! @"src\Pit.Compiler.sln"
let pitdbg = !! @"src\Pit.dbg.sln"
Target? Clean <-
fun () ->
CleanDirs [release;debug]
[@"src\scripts\pit.js";@"src\scripts\pit.core.min.js"]
|> CopyTo debug
[@"src\scripts\pit.js";@"src\scripts\pit.core.min.js"]
|> CopyTo release
Target? BuildDebug <-
fun () ->
trace "Building Debug assemblies"
MSBuildDebug debug "Clean" pitcore
|> Log "Clean Debug Build:"
MSBuildDebug debug "Clean" pitcompiler
|> Log "Clean Debug Build:"
MSBuildDebug debug "Clean" pitdbg
|> Log "Clean Debug Build:"
MSBuildDebug debug "Build" pitcore
|> Log "Debug Build:"
MSBuildDebug debug "Build" pitcompiler
|> Log "Debug Build:"
MSBuildDebug debug "Build" pitdbg
|> Log "Debug Build:"
Target? Release <-
fun () ->
trace "Building Release assemblies"
MSBuildRelease release "Clean" pitcore
|> Log "Clean Release Build:"
MSBuildRelease release "Clean" pitcompiler
|> Log "Clean Release Build:"
MSBuildRelease release "Clean" pitdbg
|> Log "Clean Release Build:"
MSBuildRelease release "Build" pitcore
|> Log "Release Build:"
MSBuildRelease release "Build" pitcompiler
|> Log "Release Build:"
MSBuildRelease release "Build" pitdbg
|> Log "Release Build:"
Target? Default <-
fun () -> trace "Finished..."
"Clean"
==> "Release" <=> "BuildDebug"
==> "Default"
Run? Default