forked from github.com/GenderDysphoria.fyi
Moved new build process out of gulp folder
This commit is contained in:
13
build/twitter.js
Normal file
13
build/twitter.js
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user