2017-01-03 17:23:04 +00:00
|
|
|
import R from 'ramda'
|
|
|
|
|
|
|
|
/* Load yaml files */
|
|
|
|
|
|
|
|
let context = require.context(
|
2017-01-09 17:17:51 +00:00
|
|
|
'../règles/rémunération-travail/cdd/simples', true,
|
2017-01-03 17:23:04 +00:00
|
|
|
/([a-zA-Z]|-|_)+.yaml$/)
|
|
|
|
|
|
|
|
|
|
|
|
let rules = R.pipe(
|
|
|
|
R.map(context),
|
|
|
|
//flatten
|
|
|
|
R.unnest,
|
|
|
|
)(context.keys())
|
|
|
|
|
|
|
|
|
|
|
|
export default rules.filter(r => r != null)
|