target

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package target exposes npm targets that can be imported in magefile using import syntax. For more low level usage the npm package should be preferred.

Index

Constants

This section is empty.

Variables

View Source
var NpmCmd = npm.NewCmd()

Functions

This section is empty.

Types

type Npm

type Npm mg.Namespace

func (Npm) Audit

func (Npm) Audit(ctx context.Context) error

Audit runs npm's security audit tool

func (Npm) Build

func (Npm) Build(ctx context.Context) error

Build executes build script

func (Npm) CleanBuild

func (Npm) CleanBuild(ctx context.Context)

CleanBuild executes clean-install before build script

func (Npm) CleanInstall

func (Npm) CleanInstall(ctx context.Context) error

CleanInstall does clean install on npm dependencies

func (Npm) Install

func (Npm) Install(ctx context.Context) error

Install installs npm dependencies

func (Npm) Lint

func (Npm) Lint(ctx context.Context) error

Lint executes lint script

func (Npm) Start

func (Npm) Start(ctx context.Context) error

Start executes start script

func (Npm) Test

func (Npm) Test(ctx context.Context) error

Lint executes test script

func (Npm) TypeCheck

func (Npm) TypeCheck(ctx context.Context) error

TypeCheck executes typecheck script

func (Npm) Update

func (Npm) Update(ctx context.Context) error

Update updates npm dependencies

Jump to

Keyboard shortcuts

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