mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
Unite team and crew files
This commit is contained in:
@@ -4,7 +4,6 @@ const request = require('sync-request')
|
||||
|
||||
const meta = require('../content/meta.json')
|
||||
const team = require('../content/team.json')
|
||||
const crew = require('../content/crew.json')
|
||||
const meetups = require('../content/meetups.json')
|
||||
const soundboard = require('../content/soundboard.json')
|
||||
|
||||
@@ -25,7 +24,7 @@ const date = (new Date()).toJSON().split('T')[0]
|
||||
writeJSON(dir('generated', 'site-data.json'), { date, block, meta })
|
||||
|
||||
// Participants
|
||||
const participants = team.concat(crew).reduce((result, person) => Object.assign(result, { [person.name]: person }), {})
|
||||
const participants = team.reduce((result, person) => Object.assign(result, { [person.name]: person }), {})
|
||||
writeJSON(dir('generated', 'participants.json'), participants)
|
||||
|
||||
// Meetups
|
||||
|
||||
Reference in New Issue
Block a user