cmd

package
v0.7.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package cmd provides commands to manage plenti sites.

Index

Constants

This section is empty.

Variables

View Source
var BenchmarkFlag bool

BenchmarkFlag provides users with build speed statistics to help identify bottlenecks.

View Source
var BuildFlag bool

BuildFlag can be set to false to skip building the site when starting local server

View Source
var Building bool

Building keeps track of whether the build is in process or not

View Source
var BundleFlag bool

BundleFlag uses esbuild to bundle the single page application (SPA) into a single file, improving the first page load time.

View Source
var CommitFlag string

CommitFlag targets a specific commit hash when running the "git clone" operation.

View Source
var ConfigFileFlag string

ConfigFileFlag allows you to point to a nonstandard sitewide configuration file for the build (instead of plenti.json).

View Source
var EjectAll bool

EjectAll is a flag that allows users to eject all the core files to their local project.

View Source
var EndpointFlag bool

EndpointFlag disables the route for a content source by omitting the corresponding svelte template.

View Source
var LocalFlag bool

LocalFlag can be set to false to emulate a remote environment

View Source
var MinifyFlag bool

MinifyFlag condenses the JavaScript output so it runs faster in the browser.

View Source
var OutputDirFlag string

OutputDirFlag allows users to override name of default build directory (public)

View Source
var PortFlag int

PortFlag allows users to override default port (3000) for local server

View Source
var SSLFlag bool

SSLFlag can be set to true to serve localhost over HTTPS with SSL/TLS encryption

View Source
var SingleTypeFlag bool

SingleTypeFlag create a one time file at the top level of content.

View Source
var VerboseFlag bool

VerboseFlag provides users with additional logging information.

View Source
var Version = "undefined"

Version gets replaced by git tag referenced in -ldflags on build.

Functions

func Build

func Build() error

Build creates the compiled app that gets deployed.

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func FileServerWith404 added in v0.6.1

func FileServerWith404(root http.FileSystem, localUrl string) http.Handler

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL