fix

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 30 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

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 Plugins

func Plugins(r *Runner) error

Plugins will fix plugins between releases

func Plush

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 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