« get me outta code hell

artist.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/artist.js
blob: ef97117129e9b7c46bfcb94dc91a92ea75b7f91f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import {sortAlphabetically} from '#sort';

export default ({
  documentModes: {allInOne},
  thingConstructors: {Artist},
}) => ({
  title: `Process artists file`,
  file: 'artists.yaml',

  documentMode: allInOne,
  documentThing: Artist,

  sort({artistData}) {
    sortAlphabetically(artistData);
  },
});