Comments (3)
It's tricky because we can say there are two approaches: the "raw" one which would be something like:
dotnet tool install fable
dotnet fable src
And the template/sample clone approach. For the second approach there are several options in the next page in the docs. In these cases there's usually already a .config/dotnet-tools.json
including Fable so you just need to do dotnet tool restore
and this is often done in the build script of the template/sample (btw I just noticed the Fable.Template wasn't doing that so I pushed a new version to fix it). In fact, running dotnet tool install fable
will throw an error like the following if there's a version mismatch:
Cannot add package. Manifest file already contains version 3.2.8 of the package fable. Uninstall/install or edit manifest file .config\dotnet-tools.json to specify the new version 3.2.9.
BTW, I wouldn't add the dotnet tool install fable
in the Setup page, as these are system requirements and we recommend to install Fable locally (per project) not globally (per system).
from fable-compiler.github.io.
95% of the documentation has been written when Fable was in version 2.
When releasing Fable 3 we probably forget the "obvious command for us".
I think we should add it to the Start a new project page. What do you think ?
Example:
dotnet new --install Fable.Template
dotnet tool install fable
dotnet new fable
from fable-compiler.github.io.
Thanks for your quick replies.
For me a global installation is ok. But I am just a fable beginner. 🤷♂️ I thought there could be an alternative start from scratch
to the start from template
section. (that is downloading 6000 files from npm to run "Hello, World!" )
@MangelMaxime I was actually just trying to test this https://twitter.com/mangelmaxime/status/1415016383167991817
from fable-compiler.github.io.
Related Issues (20)
- Get Started button isn't working property -> redirects to {host}/index.html HOT 3
- New website is not rendered correctly in mobile view HOT 3
- Configure a CI to check the validity of the links included in the resource.md file HOT 3
- Built with Fable HOT 2
- Move Libraries outside of Resources page HOT 1
- Website link to bulma-timepicker is broken (https://fable.io/resources.html) HOT 1
- Feature matrix for languages HOT 5
- Incorrect information about limitation for React Fast Refresh on "Elmish Components with Elmish 4 and UseElmish" HOT 1
- Write Dart related pages
- Write Rust 'Build and run' page
- Write Rust 'Features' page
- Write Python 'Compatibility' page
- Rework JavaScript 'Compatibility' page
- Write Rust 'Compatibility' page
- Typescript features documentations ends abruptly with un-styled, uncommented code. HOT 1
- Rework the index page now that Fable 4 supports multiple languages
- Considering better documentation tooling HOT 38
- Consider using a github action to automate site deployments HOT 5
- Issue with "start new project" documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fable-compiler.github.io.