Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/semuserable/Semuserable.Fable.Templates
Minimal Fable templates
https://github.com/semuserable/Semuserable.Fable.Templates
Last synced: 2 months ago
JSON representation
Minimal Fable templates
- Host: GitHub
- URL: https://github.com/semuserable/Semuserable.Fable.Templates
- Owner: semuserable
- License: mit
- Created: 2020-01-09T22:03:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T20:08:08.000Z (3 months ago)
- Last Synced: 2024-03-27T15:05:40.476Z (3 months ago)
- Language: F#
- Size: 263 KB
- Stars: 21
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-fable - Semuserable.Fable.Templates - Minimal Fable templates (Templates)
README
[![NuGet Info](https://buildstats.info/nuget/semuserable.fable.templates)](https://www.nuget.org/packages/semuserable.fable.templates/)
- [What's inside](#whats-inside)
- [How to use](#how-to-use)
- [How to upgrade](#how-to-upgrade)
- [How to create](#how-to-create)# What's inside
Fable minimal templates with the most recent versions of `npm` and `dotnet` libraries. Each template contains `README.md` with instructions, but usually it's just a simple `npm install && npm start`.
- `fable-empty` contains `Fable` without `React` or `Elmish`
- `npm` libs
- [@babel/core](https://www.npmjs.com/package/@babel/core)
- [fable-compiler](https://www.npmjs.com/package/fable-compiler)
- [fable-loader](https://www.npmjs.com/package/fable-loader)
- [webpack](https://www.npmjs.com/package/webpack)
- [webpack-cli](https://www.npmjs.com/package/webpack-cli)
- [webpack-dev-server](https://www.npmjs.com/package/webpack-dev-server)
- `dotnet` libs
- [Fable.Core](https://github.com/fable-compiler/Fable/tree/master/src/Fable.Core)
- `fable-react` contains `React` bindings for `Fable` with several examples without `Elmish`
- `npm` libs
- [@babel/core](https://www.npmjs.com/package/@babel/core)
- [fable-compiler](https://www.npmjs.com/package/fable-compiler)
- [fable-loader](https://www.npmjs.com/package/fable-loader)
- [react](https://www.npmjs.com/package/react)
- [react-dom](https://www.npmjs.com/package/react-dom)
- [webpack](https://www.npmjs.com/package/webpack)
- [webpack-cli](https://www.npmjs.com/package/webpack-cli)
- [webpack-dev-server](https://www.npmjs.com/package/webpack-dev-server)
- `dotnet` libs
- [Fable.Core](https://github.com/fable-compiler/Fable/tree/master/src/Fable.Core)
- [Fable.React](https://github.com/fable-compiler/fable-react)
- `fable-react-elmish` contains `React` bindings and `Elmish` architecture for `Fable`
- `npm` libs
- [@babel/core](https://www.npmjs.com/package/@babel/core)
- [fable-compiler](https://www.npmjs.com/package/fable-compiler)
- [fable-loader](https://www.npmjs.com/package/fable-loader)
- [react](https://www.npmjs.com/package/react)
- [react-dom](https://www.npmjs.com/package/react-dom)
- [webpack](https://www.npmjs.com/package/webpack)
- [webpack-cli](https://www.npmjs.com/package/webpack-cli)
- [webpack-dev-server](https://www.npmjs.com/package/webpack-dev-server)
- `dotnet` libs
- [Fable.Core](https://github.com/fable-compiler/Fable/tree/master/src/Fable.Core)
- [Fable.Elmish](https://github.com/elmish/elmish)
- [Fable.Elmish.React](https://github.com/elmish/react)# How to use
* install templates
```code
dotnet new -i Semuserable.Fable.Templates::*
```* use templates
```code
dotnet new fable-empty
dotnet new fable-react
dotnet new fable-react-elmish
```* uninstall templates
```code
dotnet new -u Semuserable.Fable.Templates
```# How to upgrade
* uninstall existing templates
```code
dotnet new -u Semuserable.Fable.Templates
```* install new templates
```code
dotnet new -i Semuserable.Fable.Templates::*
```# How to create
All templates are located in `templates` folder. Create new folder and put new template there. Use the existing ones as an example.
* edit `templatepack.csproj` to change package details
* create a package
```
dotnet pack
```
* new package will be in `bin/debug` folder (ex. `Semuserable.Fable.Templates.1.0.0.nupkg`)