fable

6 articles

Using Create React App with Fable

Published

Tags

2019 has been a great year for me for all things F# related! I helped out with the organization of , gave a and was able to release . To wrap up the decade I'm writing this post as part of the . I had fun and I wish to continue this trend. has been receiving some traction in the community and at one-point Zaid asked me what I thought about it. My reply was, well it's not for everybody 😅. In this blog post I'm going to explore yet another alternative of creating views in Elmish, by using React as…

Building Fable on Travis CI

Published

Tags

Hi nojaf from the future, its you from the past. Today you created a build script for compiling Fable projects on Travis CI. Using a it is pretty easy to set up a Travis CI process. This blogpost is meant to capture what you knew then in case you sorta forgot. Once you logged in to , create a project by selecting a repository. Don't worry you log in with your GitHub account and hit the add button. They know you are you and you get to choose a repository you have on GitHub. If you did that then create a …

Writing a VSCode extension with Fable 2.1

Published

Tags

This post is part of the . I'm very grateful to be a part of this and I hope you will enjoy this one as much as I have enjoyed the others. Today I would like to show you how you can create from scratch using Fable. Along the way we write some code that will extend the syntax. To get started we will follow the general approach of scaffolding a new extension. Using the generator we will scaffold a new JavaScript extension. In order to add Fable we need two main pieces: a couple of npm…

React hooks preview with Fable

Published

Tags

A couple of weeks ago Facebook presented , a new way of accessing React features inside functional components. In this blogpost I would like to show that the new hooks can easily be used in combination with . Disclaimer: Hooks are an experimental proposal to React, currently available in , and the api is not final yet. Use at your own risk. A first example of a hook is . When the hook is called, we receive a variable representing the state and a function to update the state. Example: Note that accepts a default value for the…

Fantomas rejuvenated: .NET cli tool

Published

Tags

As part of the my mentor and I have been working on the .Fantomas is like or but for F#.It was originally created by Anh-Dung Phan and people have suggested that it could be a part of the. The source code of Fantomas is quite advanced so our approach is to focus first on improving the project in general. We noticed it was a bit old in terms of Visual Studio version and dependencies, so we organized the move to . The port had its challenges but in the end, we were able to release .Added…

Building Fable apps inside a Docker container

Published

Tags

Want to use Docker to develop Fable applications? What if I told you it isn't all that difficult? So the first step with Docker images is that you check whether a suiting image that fits your needs already exists.When I checked Docker Hub for any recent images with the Fable tool chain I didn't really find anything that works with Fable 1.x. I accepted the fact that I would have to create the image myself.If you check the for requirements, we'll need: At first I thought that I would need two containers. One with Mono to restore the dependencies…