Documentation
¶
Overview ¶
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Index ¶
- func ExecSveltinTpl(embedFS *embed.FS, tplConfig *config.TplConfig) []byte
- func ExecuteCommandC(root *cobra.Command, args ...string) (c *cobra.Command, err error)
- func GetAllPublicPages(fs afero.Fs, path string) []string
- func GetAllResources(fs afero.Fs, path string) []string
- func GetAllResourcesWithContentName(fs afero.Fs, path string, children bool) []*config.ResourceItem
- func GetResourceContentMap(fs afero.Fs, resources []string, path string) map[string][]string
- func GetResourceMetadataMap(fs afero.Fs, resources []string, path string) map[string][]string
- func GetResourceRouteFilename(txt string, c *config.SveltinConfig) string
- func InitAppTemplatesMap() map[string]config.AppTemplate
- func IsValidFileForContent(f fs.FileInfo) bool
- func MakeFileContent(efs *embed.FS, content builder.Content) []byte
- func NewNoPageItems(resources []string, content map[string][]string, metadata map[string][]string, ...) *config.NoPageItems
- func NewSveltinSettings(npmClientName string) config.SveltinSettings
- func NewTplConfig(tplPath string, funcs template.FuncMap, data config.TemplateData) *config.TplConfig
- func PrepareContent(name string, resources map[string]string, templateId string, ...) builder.Content
- func PublicPageFilename(name string, pageType string) string
- func ResourceExists(fs afero.Fs, name string, c *config.SveltinConfig) error
- func RunPMCommand(pmName string, pmCmd string, mode string, packages []string, silentMode bool) error
- func WriteContentToDisk(fs afero.Fs, saveAs string, fileContent []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommandC ¶
func GetResourceContentMap ¶
func GetResourceMetadataMap ¶
func GetResourceRouteFilename ¶
func GetResourceRouteFilename(txt string, c *config.SveltinConfig) string
func InitAppTemplatesMap ¶
func InitAppTemplatesMap() map[string]config.AppTemplate
func IsValidFileForContent ¶
func NewNoPageItems ¶
func NewSveltinSettings ¶ added in v0.2.0
func NewSveltinSettings(npmClientName string) config.SveltinSettings
func NewTplConfig ¶
func PrepareContent ¶
func PublicPageFilename ¶
func ResourceExists ¶
Types ¶
This section is empty.