Options
All
  • Public
  • Public/Protected
  • All
Menu

Package yarnpkg-builder

@yarnpkg/builder

A CLI tool designed for creating, building, and managing complex plugins.

Features

  • builder new plugin command for scaffolding new plugins
  • builder build bundle command for building complex plugins
  • supports TypeScript out-of-the-box
  • supports custom Babel configurations out-of-the-box
  • uses Webpack internally, providing treeshaking, minification, and various other optimizations out-of-the-box

Installation

yarn add -D @yarnpkg/builder typescript

Commands

Type aliases

WebpackPlugin

WebpackPlugin: function | WebpackPluginInstance

Variables

Const cli

cli: Cli<object> = new Cli({binaryLabel: `Yarn Builder`,binaryName: `builder`,binaryVersion: require(`@yarnpkg/builder/package.json`).version,})

Const execFile

execFile: __promisify__ = promisify(cp.execFile)

Functions

findPlugins

  • findPlugins(__namedParameters: object): string[]

findTsconfig

  • findTsconfig(): string & object

getBuildPlugin

  • getBuildPlugin(): any[]

Const getNormalizedName

  • getNormalizedName(name: string): string

Const identity

  • identity<T>(value: T): T

Const isDynamicLib

  • isDynamicLib(request: string): boolean

Const makeConfig

  • makeConfig(config: Configuration): Configuration

Const pkgJsonVersion

  • pkgJsonVersion(basedir: string): string

Const suggestHash

  • suggestHash(basedir: string): Promise<null | string>

Generated using TypeDoc