Documentation ¶
Index ¶
- Variables
- func AddPackageJSONScripts(r *Runner) error
- func DeprecrationsCheck(r *Runner) error
- func PackageJSONCheck(r *Runner) error
- func PackrClean(r *Runner) error
- func Plush(r *Runner) error
- func Run() error
- func WebpackCheck(r *Runner) error
- type Check
- type ImportConverter
- type MiddlewareTransformer
- type Plugins
- type Runner
Constants ¶
This section is empty.
Variables ¶
var YesToAll bool
YesToAll will be used by the command to skip the questions
Functions ¶
func AddPackageJSONScripts ¶ added in v0.14.7
AddPackageJSONScripts rewrites the package.json file to add dev and build scripts if there are missing.
func DeprecrationsCheck ¶
DeprecrationsCheck will either log, or fix, deprecated items in the application
func PackageJSONCheck ¶
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 WebpackCheck ¶
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 ImportConverter ¶
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
CleanCache cleans the plugins cache folder by removing it