package
0.0.0-20241023164445-667b75ed2b22
Repository: https://github.com/zeabur/zbpack.git
Documentation: pkg.go.dev

# Packages

Package nextjs is used to transform build output of Next.js app to the serverless build output format of Zeabur.
Package nuxtjs is used to transform build output of Nuxt.js app to the serverless build output format of Zeabur.
Package remix is used to transform build output of Remix app to the serverless build output format of Zeabur.
Package waku is used to transform build output of Waku app to the serverless build output format of Zeabur.

# Functions

DeserializePackageJSON deserializes a package.json file from source.
DetermineAppFramework determines the framework of the Node.js app.
DetermineNeedPlaywright determines whether the app needs Playwright.
DetermineNeedPuppeteer determines whether the app needs Puppeteer.
DeterminePackageManager determines the package manager of the Node.js project.
FindAppDirByGlob finds the application directory (with package.json) by the given glob pattern.
GenerateDockerfile generates the Dockerfile for Node.js projects.
GetBuildCmd gets the build command of the Node.js app.
GetBuildScript gets the build command in package.json's `scripts` of the Node.js app.
GetEntry gets the entry file of the Node.js app.
GetInstallCmd gets the installation command of the Node.js app.
GetMeta gets the metadata of the Node.js project.
GetMonorepoAppRoot gets the app root of the monorepo project in the Node.js project.
GetNodeVersion gets the Node.js version of the project.
GetStartCmd gets the start command of the Node.js app.
GetStartScript gets the start command in package.json's `scripts` of the Node.js app.
GetStaticOutputDir returns the output directory for static application.
NewIdentifier returns a new NodeJS identifier.
NewPackageJSON returns a new instance of PackageJson with some default values.
NewPacker returns a new Node.js packer.

# Constants

ConfigAppDir indicates the relative path of the app to deploy.
ConfigCacheDependencies is the key for the configuration of whether to cache dependencies.

# Structs

GetMetaOptions is the options for GetMeta.
PackageJSON is the structure of `package.json`.
PackageJSONEngine is the structure of `package.json`'s `engines` field.
TemplateContext is the context for the Node.js Dockerfile template.