mon-entreprise/load-parameters.js

7 lines
275 B
JavaScript
Raw Normal View History

2016-06-29 10:27:04 +00:00
/* Load all yaml files in a dir */
let requireContext = require.context('./parameters/cotisations', false, /(vieillesse|chomage|agirc|arrco|agff).yaml$/)
2016-06-29 10:27:04 +00:00
export default requireContext.keys()
.map( requireContext )
//flatten
.reduce((acc, next) => acc.concat(next), [])