Skip to content

Commit

Permalink
Remove Fable cli tool, SatelliteResourceLanguages, update publish fol…
Browse files Browse the repository at this point in the history
…der output
  • Loading branch information
nojaf committed Feb 15, 2024
1 parent 0d14f39 commit 5e5952d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
"version": 1,
"isRoot": true,
"tools": {
"fable": {
"version": "4.5.0",
"commands": [
"fable"
]
},
"fantomas": {
"version": "6.3.0-alpha-003",
"version": "6.3.0-alpha-007",
"commands": [
"fantomas"
]
Expand Down
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<FantomasPreviewRepository>$(MSBuildThisFileDirectory).deps\main</FantomasPreviewRepository>
<RollForward>LatestMajor</RollForward>
<UseArtifactsOutput>true</UseArtifactsOutput>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>

<ItemGroup Condition="'$(IsLambda)' == 'true'">
Expand Down
8 changes: 2 additions & 6 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pipeline "Fantomas-Git" {
}

let publishLambda name =
$"dotnet publish --tl -c Release -o {artifactDir </> name} {serverDir}/{name}/{name}.fsproj"
$"dotnet publish --tl -c Release {serverDir}/{name}/{name}.fsproj"

let runLambda name =
$"dotnet watch run --project {serverDir </> name </> name}.fsproj --tl"
Expand Down Expand Up @@ -132,11 +132,7 @@ pipeline "Build" {
run (fun _ ->
async {
Shell.rm_rf artifactDir
!!(serverDir + "/*/bin")
++ (serverDir + "/*/obj")
++ (clientDir + "/src/bin")
++ (clientDir + "/build")
|> Seq.iter Shell.rm_rf
Shell.rm_rf (clientDir + "/build")
return 0
})
}
Expand Down
8 changes: 7 additions & 1 deletion infrastructure/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ let getAllLambdas (lastSha, lastTime) =
Environment = environment }

let mkLambdaProject (name: string) lambdas =
let archive = __SOURCE_DIRECTORY__ </> ".." </> "artifacts" </> name
let archive =
__SOURCE_DIRECTORY__
</> ".."
</> "artifacts"
</> "publish"
</> name
</> "release"

{ Name = name
FileArchive = archive
Expand Down

0 comments on commit 5e5952d

Please sign in to comment.