fix

package
v0.16.27 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var YesToAll bool

YesToAll will be used by the command to skip the questions

Functions

func AddPackageJSONScripts added in v0.14.7

func AddPackageJSONScripts(r *Runner) error

AddPackageJSONScripts rewrites the package.json file to add dev and build scripts if there are missing.

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 PackrClean

func PackrClean(r *Runner) error

PackrClean will remove any packr files

func Plush added in v0.14.7

func Plush(r *Runner) error

Plush will update foo.html templates to foo.plush.html templates

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 MiddlewareTransformer

type MiddlewareTransformer struct {
	PackagesReplacement map[string]string
	Aliases             map[string]string
}

MiddlewareTransformer moves from our old middleware package to new one

type Plugins added in v0.14.7

type Plugins struct{}

Plugins fixes the plugin configuration of the project by manipulating the plugins .toml file.

func (Plugins) CleanCache added in v0.16.4

func (pf Plugins) CleanCache(r *Runner) error

CleanCache cleans the plugins cache folder by removing it

func (Plugins) Reinstall added in v0.16.4

func (pf Plugins) Reinstall(r *Runner) error

Reinstall installs latest versions of the plugins

func (Plugins) RemoveOld added in v0.16.4

func (pf Plugins) RemoveOld(r *Runner) error

RemoveOld removes old and deprecated plugins

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