function buildHook(devMode){
  return {
    name: 'buildHook',
    buildEnd: async () => {
      if(!devMode) return
      
      let callFunc
      if(devMode.indexOf('tap-') !== -1) callFunc = copyToTap(devMode)
      else if(devMode === 'keg') callFunc = copyToKeg(devMode)
      else return

    }
  }
}
/**
 * Copies the keg-components build to a tap or kegs directory
 * Allows working on keg-components while also running inside a tap context
 *
 * @export
 * @param {string} devMode - The mode that the keg-components is be run in
 *                           Should be the name of a tap folder || keg
 * @returns {void}
 */
Copies the keg-components build to a tap or kegs directory
Allows working on keg-components while also running inside a tap context

@export
@param {string} devMode - The mode that the keg-components is be run in
Should be the name of a tap folder || keg
@returns {void}
Copies the keg - components build to a tap or kegs directory Allows working on keg - components while also running inside a tap context @export @param { string } devMode - The mode that the keg - components is be run in Should be the name of a tap folder || keg @returns { void }
function buildHook(devMode){
  return {
    name: 'buildHook',
    buildEnd: async () => {
      if(!devMode) return
      let callFunc
      if(devMode.indexOf('tap-') !== -1) callFunc = copyToTap(devMode)
      else if(devMode === 'keg') callFunc = copyToKeg(devMode)
      else return
    }
  }
}
function buildHook ( devMode ) { return { name : 'buildHook' , buildEnd : async ( ) => { if ( ! devMode ) return let callFunc if ( devMode . indexOf ( 'tap-' ) !== - 1 ) callFunc = copyToTap ( devMode ) else if ( devMode === 'keg' ) callFunc = copyToKeg ( devMode ) else return } } }
Copies the keg-components build to a tap or kegs directory
 Allows working on keg-components while also running inside a tap context
Copies the keg - components build to a tap or kegs directory Allows working on keg - components while also running inside a tap context