Skip to content

Commit 9ecc077

Browse files
committed
Update build script
1 parent c6b063d commit 9ecc077

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

build.fsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,34 +77,34 @@ Target.create "YarnInstall" <| fun _ ->
7777

7878
Target.create "Prepare" ignore
7979

80-
Target.create "BuildOnly" <| fun _ ->
80+
Target.create "BuildForPublish" <| fun _ ->
8181
dotnetExec "fable" $"{srcDir} --sourceMaps --run webpack --mode=production"
8282

83-
Target.create "TestBuild" <| fun _ ->
83+
Target.create "BuildForTest" <| fun _ ->
8484
dotnetExec "fable" $"{srcDir} --sourceMaps --define DEBUG --run webpack --mode=development"
8585

8686
Target.create "Build" ignore
8787

8888
Target.create "Watch" <| fun _ ->
8989
dotnetExec "fable" $"watch {srcDir} --sourceMaps --define DEBUG --run webpack -w --mode=development"
9090

91+
Target.create "TestComplete" ignore
92+
9193
"Clean"
9294
==> "YarnInstall"
9395
==> "Restore"
9496
==> "Prepare"
9597
==> "Build"
9698

9799
"Prepare"
98-
?=> "BuildOnly"
100+
?=> "BuildForTest"
101+
?=> "TestComplete"
102+
?=> "BuildForPublish"
99103
==> "Build"
100104

101105
"Prepare"
102106
?=> "Watch"
103107

104-
"Prepare"
105-
?=> "TestBuild"
106-
?=> "BuildOnly"
107-
108108
// Test targets
109109

110110
module Test =
@@ -160,7 +160,7 @@ Target.create "TestJsooGenerateBindings" <| fun _ -> Test.Jsoo.generateBindings
160160
Target.create "TestJsooBuild" <| fun _ -> Test.Jsoo.build ()
161161
Target.create "TestJsoo" ignore
162162

163-
"TestBuild"
163+
"BuildForTest"
164164
==> "TestJsooClean"
165165
==> "TestJsooGenerateBindings"
166166
==> "TestJsooBuild"
@@ -171,10 +171,9 @@ Target.create "TestOnly" ignore
171171

172172
"TestJsoo"
173173
==> "TestOnly"
174+
==> "TestComplete"
174175
==> "Test"
175176

176-
"Build" ==> "Test"
177-
178177
// Publish targets
179178

180179
module Publish =
@@ -232,15 +231,15 @@ Target.create "PublishJsoo" <| fun _ ->
232231
Publish.Jsoo.updateVersion ()
233232
Publish.Jsoo.testBuild ()
234233

235-
"BuildOnly"
234+
"BuildForPublish"
236235
==> "PublishNpm"
237236
==> "PublishJsoo"
238237
==> "PublishOnly"
239238
==> "Publish"
240239

241240
"TestJsoo" ==> "PublishJsoo"
242241

243-
"Build" ==> "Publish"
242+
"Build" ?=> "Test" ?=> "Publish"
244243

245244
Target.create "All" ignore
246245

0 commit comments

Comments
 (0)