1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-26 04:52:43 +00:00

Burn it down and rise from the ashes

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-02-25 19:37:10 -08:00
parent ba8ac1c8e7
commit 97398e6df4
19 changed files with 705 additions and 589 deletions

13
gulp/content/twitter.js Normal file
View File

@@ -0,0 +1,13 @@
const fs = require('fs-extra');
const actions = require('./actions');
const { uniqBy } = require('lodash');
const { resolve } = require('./resolve');
module.exports = exports = async function twitter () {
const media = await fs.readJson(resolve('twitter-media.json')).catch(() => ([]));
const tasks = uniqBy(media, 'input')
.map((m) => ({ ...m, action: actions.fetch, output: m.output }));
return tasks;
};