Documentation ¶
Index ¶
- Variables
- func AssetsCopy(buildPath string, tempBuildDir string) error
- func Benchmark(start time.Time, message string, alwaysRun ...bool)
- func CheckBenchmarkFlag(flag bool)
- func CheckVerboseFlag(flag bool)
- func Client(buildPath string, tempBuildDir string, defaultsEjectedFS embed.FS) error
- func DataSource(buildPath string, siteConfig readers.SiteConfig, tempBuildDir string) error
- func EjectCopy(buildPath string, tempBuildDir string, defaultsEjectedFS embed.FS) error
- func Gopack(buildPath string) error
- func Log(message string, alwaysRun ...bool)
- func NpmDefaults(tempBuildDir string, defaultsNodeModulesFS embed.FS) error
- func ThemesClean(tempBuildDir string) error
- func ThemesCopy(theme string, themeOptions readers.ThemeOptions) (string, error)
- func ThemesMerge(tempBuildDir string, buildDir string) error
Constants ¶
This section is empty.
Variables ¶
var Doreload bool
Doreload and other flags should probably be part of a config accessible across build. It gets set using server flags.
var SSRctx *v8go.Context
SSRctx is a v8go context for loaded with components needed to render HTML.
Functions ¶
func AssetsCopy ¶
AssetsCopy does a direct copy of any static assets.
func CheckBenchmarkFlag ¶
func CheckBenchmarkFlag(flag bool)
CheckBenchmarkFlag sets global var if --benchmark flag is passed.
func CheckVerboseFlag ¶
func CheckVerboseFlag(flag bool)
CheckVerboseFlag sets global var if --verbose flag is passed.
func DataSource ¶
func DataSource(buildPath string, siteConfig readers.SiteConfig, tempBuildDir string) error
DataSource builds json list from "content/" directory.
func NpmDefaults ¶
NpmDefaults creates the node_modules folder with core defaults if it doesn't already exist.
func ThemesClean ¶
ThemesClean removes temporary build directory used to compile themes.
func ThemesCopy ¶
func ThemesCopy(theme string, themeOptions readers.ThemeOptions) (string, error)
ThemesCopy copies nested themes into a temporary working directory.
func ThemesMerge ¶
ThemesMerge combines any nested themes with the current project.
Types ¶
This section is empty.