github.com/wawandco/ox@v0.13.6-0.20230809142027-913b3d837f2a/plugins/base/dev/developer.go (about) 1 package dev 2 3 import "context" 4 5 type ( 6 // Developer is a tool that will be invoked for development 7 // purposes. Things like webpack with --watch and refresh. 8 Developer interface { 9 Name() string 10 Develop(context.Context, string) error 11 } 12 13 // BeforeDeveloper is an interface that will allow to identify those plugins that 14 // need to run before the dev commands is run. 15 BeforeDeveloper interface { 16 Name() string 17 BeforeDevelop(context.Context, string) error 18 } 19 )