peeble icon indicating copy to clipboard operation
peeble copied to clipboard

Compile just one fs/fsx file

Open dredgy opened this issue 3 years ago • 4 comments

Hi, first off - love the project. I think F# is great syntax for scripting and being able to use it with ease of use of PHP is awesome. Can't wait to see where this goes.

Tiny feature request, if possible to just compile one file at a time instead of the whole project. Is just a bit quicker in workflow as I have the compiler set to run every time I save a file.

Cheers

dredgy avatar Mar 07 '21 13:03 dredgy

Yes that would be definitely doable to pass only on fsx file, especially if its standalone.

thinkbeforecoding avatar Mar 11 '21 17:03 thinkbeforecoding

Hmm, I use the feature a lot in fable. But the more I build out peeble the less I need it. So far loving it.

Now to just get the entire PHP standard library to work by using “open PHP” 😋

dredgy avatar Mar 12 '21 11:03 dredgy

Super happy that it's useful for you. I've not ported all FSharp.Core yet, this is a lot of work, but don't hesitate to contribute. I was thinking also about integrating it with Composer for instance like Fable do it with npm.

My primary use was to port my boardgame CrazyFarmers I wrote in F# to Php to port it to Board Game Arena and avoid rewriting everything, given the front was using Fable with the same code.

What kind of project do you use Peeble on ?

thinkbeforecoding avatar Mar 13 '21 09:03 thinkbeforecoding

I’m using it do develop a point of sale system for fine dining restaurant which was already partially in PHP (and a lot of JS) so I’m the opposite of you, I’m trying to come from PHP but prefer F#s syntax. My JavaScript is a little too specialised to port over to Fable without a bunch of bindings work, but the PHP is minimal, I just do t want to switch from an easily deplorable Apache server and so far all seems good. I’m a beginner with F# though so who knows where it goes.

dredgy avatar Mar 13 '21 10:03 dredgy