« get me outta code hell

sorting-rule.js « files « data « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/files/sorting-rule.js
blob: 61e1df235ec56c708b2f59899892f5cdd649754c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export default ({
  documentModes: {allInOne},
  thingConstructors: {DocumentSortingRule},
}) => ({
  title: `Process sorting rules file`,
  file: 'sorting-rules.yaml',

  documentMode: allInOne,
  documentThing: document =>
    (document['Sort Documents']
      ? DocumentSortingRule
      : null),
});