updater

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version is the current Buffalo version. It is set here by the cmd package. This is due to circular dependencies

Functions

func DepEnsure

func DepEnsure(r *Runner) error

DepEnsure runs `dep ensure -v` to make sure that any newly changed imports are added to dep.

func DeprecrationsCheck

func DeprecrationsCheck(r *Runner) error

DeprecrationsCheck will either log, or fix, deprecated items in the application

func PackageJSONCheck

func PackageJSONCheck(r *Runner) error

PackageJSONCheck will compare the current default Buffalo package.json against the applications package.json. If they are different you have the option to overwrite the existing package.json file with the new one.

func Run

func Run() error

Run all compatible checks

func WebpackCheck

func WebpackCheck(r *Runner) error

WebpackCheck will compare the current default Buffalo webpack.config.js against the applications webpack.config.js. If they are different you have the option to overwrite the existing webpack.config.js file with the new one.

Types

type Check

type Check func(*Runner) error

Check interface for runnable checker functions

type ImportConverter

type ImportConverter struct {
	Data map[string]string
}

ImportConverter will changes imports from a -> b

func (ImportConverter) Process

func (c ImportConverter) Process(r *Runner) error

Process will walk all the .go files in an application, excluding ./vendor. It will then attempt to convert any old import paths to any new import paths used by this version Buffalo.

type Runner

type Runner struct {
	App      meta.App
	Warnings []string
}

Runner will run all compatible checks

Jump to

Keyboard shortcuts

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