Documentation
¶
Index ¶
- func CodeStyle(_ context.Context, input cmdtools.CommandInput) error
- func Definition(_ context.Context, input cmdtools.CommandInput) error
- func DockerIgnore(_ context.Context, input cmdtools.CommandInput) error
- func GitSettings(_ context.Context, input cmdtools.CommandInput) error
- func Hooks(_ context.Context, input cmdtools.CommandInput) error
- func Manifest(_ context.Context, input cmdtools.CommandInput) error
- func PackageJSON(_ context.Context, input cmdtools.CommandInput) error
- func PackageJSONApp(_ context.Context, input cmdtools.CommandInput) error
- func PnpmWorkspace(_ context.Context, input cmdtools.CommandInput) error
- func PublicFolder(_ context.Context, input cmdtools.CommandInput) error
- func Schema(_ context.Context, input cmdtools.CommandInput) error
- func TurboJSON(_ context.Context, input cmdtools.CommandInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeStyle ¶
func CodeStyle(_ context.Context, input cmdtools.CommandInput) error
CodeStyle scaffolds' developer and formatting files for the project, mainly dotfiles.
IDEA: Might be good in the AppDef if we could specify what files we want to generate or exclude from this.
func Definition ¶
func Definition(_ context.Context, input cmdtools.CommandInput) error
Definition updates the app.json file with the current CLI version. This ensures the webkit_version field stays in sync with the installed CLI.
func DockerIgnore ¶
func DockerIgnore(_ context.Context, input cmdtools.CommandInput) error
DockerIgnore scaffolds .dockerignore files for every app that's defined in the app manifest.
func GitSettings ¶
func GitSettings(_ context.Context, input cmdtools.CommandInput) error
GitSettings scaffolds the repo settings and ignore files.
TODO: Stale, Pull Request Template.
func Hooks ¶ added in v0.0.13
func Hooks(_ context.Context, input cmdtools.CommandInput) error
Hooks scaffolds lefthook configuration for git hooks.
func Manifest ¶
func Manifest(_ context.Context, input cmdtools.CommandInput) error
Manifest generates a blank file manifest file if it doesn't exist yet.
func PackageJSON ¶
func PackageJSON(_ context.Context, input cmdtools.CommandInput) error
PackageJSON scaffolds a root JSON file to act as a starting point for repos.
func PackageJSONApp ¶ added in v0.0.9
func PackageJSONApp(_ context.Context, input cmdtools.CommandInput) error
PackageJSONApp manipulates each app's package.json file for apps that use NPM. Currently, adds Docker-related scripts while preserving existing scripts.
func PnpmWorkspace ¶
func PnpmWorkspace(_ context.Context, input cmdtools.CommandInput) error
PnpmWorkspace scaffolds the pnpm-workspace.yaml file with all apps that use NPM/pnpm.
func PublicFolder ¶ added in v0.0.40
func PublicFolder(_ context.Context, input cmdtools.CommandInput) error
PublicFolder creates a public folder with .gitkeep for Payload CMS apps. This ensures that Next.js builds do not fail due to missing public directory. The .gitkeep file is not tracked in the manifest as it's meant to be temporary and can be safely removed once actual files are added to the public folder.
Types ¶
This section is empty.