trails icon indicating copy to clipboard operation
trails copied to clipboard

Footprints to controller false doesn't disable controllers

Open jaumard opened this issue 9 years ago • 3 comments

Issue Description

There a merge problem on this, if you set config.footprints.controllers:false is doesn't work because on trailpack-footprints the default footprints options are :

controllers: {
    method: '*',
    ignore: [
      'FootprintController'
    ]
  },

Once config are merge the results is only the trailpack config :( any way to fix this ?

Environment

  • node version: all
  • trails version: all
  • operating system: all

jaumard avatar Jul 05 '16 16:07 jaumard

As temp workaround config/footprints.js

const controllerNames = Object.keys(require('../api/controllers'))
module.exports = {
  controllers: {ignore: controllerNames},
  ...
}

swarthy avatar Aug 02 '16 17:08 swarthy

@tjwebb it's something that can be fix for v2 ??

jaumard avatar Nov 18 '16 06:11 jaumard

@tjwebb don't think it's fix right ?

jaumard avatar May 25 '17 10:05 jaumard