docs: add sponsor feeds.pub

This commit is contained in:
DIYgod
2020-07-07 17:07:35 +08:00
parent 59e32f8092
commit afd523ec8f
4 changed files with 11 additions and 19 deletions
+8 -16
View File
@@ -101,21 +101,13 @@ const buildStagedList = async () => {
const stagedFiles = await sgf();
for (const processor of processors) {
// We don't want to mix up processor
/* eslint-disable no-await-in-loop */
await Promise.all(
processor.rules(fileList).map(async (e) => {
let formatted = await file.readFile(e.path);
formatted = await processor.handler(formatted);
await file.writeFile(e.path, formatted);
if (stagedFiles.find((x) => e.path.indexOf(x.filename) !== -1)) {
await exec(`git add ${e.path}`);
}
})
).catch((err) => {
// eslint-disable-next-line no-console
console.log(err);
process.exit(1);
});
for (const e of processor.rules(fileList)) {
let formatted = await file.readFile(e.path);
formatted = await processor.handler(formatted);
await file.writeFile(e.path, formatted);
if (stagedFiles.find((x) => e.path.indexOf(x.filename) !== -1)) {
await exec(`git add ${e.path}`);
}
}
}
})();