Simple fs -> js solution?
See original GitHub issueDescription
Recently I wrote some VSTS-Build-Tasks with typescript (https://github.com/matthid/Paket.TeamBuildCredentials/blob/master/SetPaketCredentialProvider.dev/setCredentialManager.ts). The primary reason to use typescript was that it was so easy to get started:
Basically npm install <> && tsc file.js
is everything you need to do in order to get out of the “javascript misery”.
The problem especially for build-tasks is that it feels like using fable is more overhead than just writing the task in javascript/typescript.
My question now is: Can we already do the same for fable and I just missed it? What is currently the most minimal way to write such a build task in f#?
Feel free to point me to some existing samples/documentation maybe I have just missed them.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
fable-splitter 2.1 (currently in beta, so you need to install it with
npm i fable-splitter@next fable-compiler@next
but the stable version will be released soon) it’s close to this. You can just donpx fable-splitter src -o build
. Please check the README for more information.Note that .fsx scripts are not supported at the moment because there’s no standard solution yet to add package references, so for now it’s easier to use .fsproj. But we can revisit it when .fsx can contain nuget/paket references and we get them resolved by the F# compiler or Dotnet.ProjInfo.
Had to give it a good cleaning before I showed it to anyone 😸
https://github.com/TheAngryByrd/fantasy
can try it with