2016-06-29 10:27:04 +00:00
|
|
|
/* Load all yaml files in a dir */
|
2016-07-27 15:00:55 +00:00
|
|
|
let requireContext = require.context(
|
|
|
|
'./parameters/prélèvements-sociaux-activité/cotisations', false,
|
2016-07-28 14:01:25 +00:00
|
|
|
/.yaml$/)
|
2016-06-29 10:27:04 +00:00
|
|
|
export default requireContext.keys()
|
|
|
|
.map( requireContext )
|
|
|
|
//flatten
|
|
|
|
.reduce((acc, next) => acc.concat(next), [])
|