-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathProgram.fs
24 lines (19 loc) · 882 Bytes
/
Program.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module Program
open System.IO
open Feliz.Generator
// TODO: Separate core and lab? Exclude lab?
// TODO: How to hide MuiHelpers?
// TODO: remove "Mui" prefix for ThemeProps and/or ThemeOverrides?
[<EntryPoint>]
let main argv =
async {
//do! HtmlCache.refresh
let api = ApiParser.parseApi ()
File.WriteAllText(@"..\..\..\..\Feliz.MaterialUI\Mui.fs", Render.componentDocument api.GeneratorComponentApi)
File.WriteAllText(@"..\..\..\..\Feliz.MaterialUI\Props.fs", Render.propsDocument api.GeneratorComponentApi)
File.WriteAllText(@"..\..\..\..\Feliz.MaterialUI\Classes.fs", Render.classesDocument api)
File.WriteAllText(@"..\..\..\..\Feliz.MaterialUI\ThemeProps.fs", Render.themePropsDocument api)
File.WriteAllText(@"..\..\..\..\Feliz.MaterialUI\ThemeOverrides.fs", Render.themeOverridesDocument api)
return 0
}
|> Async.RunSynchronously