Documentation ¶
Overview ¶
Package internal provide internal types and functions for building and developing awwan, not consumed by user nor the main program.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DocConvertOpts = ciigo.ConvertOptions{
Root: `_wui/doc`,
HTMLTemplate: `_wui/doc/template.gohtml`,
}
DocConvertOpts ciigo options for converting markup files.
var MemfsWui *memfs.MemFS
MemfsWui contains the embedded files under _wui for web-user interface. This variable will initialize by initMemfsWui.
Functions ¶
func Build ¶
func Build() (err error)
Build compile all TypeScript files inside _wui into JavaScript, and all markup files into HTML, and then embed them into "memfs_wui.go" and "memfs_www.go".
func Watch ¶
func Watch()
Watch any update on the .js/.html/.ts files inside the _wui directory. If the .ts files changes it will execute TypeScript compiler, esbuild, to compile the .ts into .js. If the .js or .html files changes it will update the node content and re-generate the Go embed file memfs_wui.go.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
awwan-internal
Program awwan-internal provides internal commands for developing and building awwan.
|
Program awwan-internal provides internal commands for developing and building awwan. |
www-awwan
Program www-awwan serve the awwan.org website.
|
Program www-awwan serve the awwan.org website. |