Update team data structure

This commit is contained in:
Dennis Reimann
2022-04-19 13:19:36 +02:00
parent f15e653fb6
commit 425a807489
5 changed files with 21 additions and 26 deletions

View File

@@ -3,7 +3,6 @@ const { basename, join, resolve } = require('path')
const request = require('sync-request')
const meta = require('../content/meta.json')
const team = require('../content/team.json')
const meetups = require('../content/meetups.json')
const soundboard = require('../content/soundboard.json')
@@ -23,10 +22,6 @@ const date = (new Date()).toJSON().split('T')[0]
writeJSON(dir('generated', 'site-data.json'), { date, block, meta })
// Participants
const participants = team.reduce((result, person) => Object.assign(result, { [person.name]: person }), {})
writeJSON(dir('generated', 'participants.json'), participants)
// Meetups
const meetup = meetups.map(m => {
const copy = Object.assign({}, m)