Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BuildBundleCommand<Context>

Type parameters

  • Context: BaseContext

Hierarchy

  • Command
    • BuildBundleCommand

Properties

noGitHash

noGitHash: boolean = Option.Boolean(`--no-git-hash`, false, {description: `Don't include the git hash of the current commit in bundle version`,})

noMinify

noMinify: boolean = Option.Boolean(`--no-minify`, false, {description: `Build a bundle for development, without optimizations (minifying, mangling, treeshaking)`,})

plugins

plugins: string[] = Option.Array(`--plugin`, [], {description: `An array of plugins that should be included besides the ones specified in the profile`,})

profile

profile: string = Option.String(`--profile`, `standard`, {description: `Only include plugins that are part of the the specified profile`,})

sourceMap

sourceMap: boolean = Option.Boolean(`--source-map`, false, {description: `Includes a source map in the bundle`,})

Static paths

paths: string[][] = [[`build`, `bundle`],]

Static usage

usage: Usage = Command.Usage({description: `build the local bundle`,details: `This command builds the local bundle - the Yarn binary file that is installed in projects.For more details about the build process, please consult the \`@yarnpkg/builder\` README: https://github.com/yarnpkg/berry/blob/HEAD/packages/yarnpkg-builder/README.md.`,examples: [[`Build the local bundle`,`$0 build bundle`,], [`Build the local development bundle`,`$0 build bundle --no-minify`,]],})

Methods

execute

  • execute(): Promise<0 | 1>

Generated using TypeDoc