GitHub - AngelMunoz/Sutil.Generator: Generates Sutil bindings for https://shoela...
source link: https://github.com/AngelMunoz/Sutil.Generator
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Sutil.Generator
This is a Shoelace and Fast wrapper generator for Sutil heavily inspider in react-generator
Generate Sutil.Shoelace
or Sutil.Fast
project
To generate the Sutil.Shoelace
or Sutil.Fast
project you will need to have node installed in your machine.
- We download the
@shoelace-style/shoelace
package which contains ametadata.json
file that allows us to automate the generation of the F# source code.In the case of Fast we read each component's metadata file to do the file generation
- Once the package is downloaded the project proceeds to generate one file for each component listed in the metadata file
To kick off these events run
./build.ps1 fast
Normally you would do this to either
- Draft a new release
- Use Sutil.Shoelace or Sutil.Fast to improve the docs website
Future Ideas
- Propose a json schema to different libraries There's already a Custom Elements Manifest
- Support Custom Elements Manifest to generate libraries agnostically
- Decouple Shoelace to the generator
- Decouple Sutil from the generation phase (e.g allow this generator to create Feliz components or other DSL Flavor / Library)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK