Skip to content

Commit

Permalink
💚 [prebuild] create dummy branches.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jxn-30 committed Feb 5, 2024
1 parent 5319704 commit 757b9ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ package-lock.json
/static/db_access.php
/static/.configs.json
/static/missions/
/static/releasenotes/
/static/releasenotes
/static/branches.json
/static/.check_request.php
/static/beta.php
/static/lssm-v4.local.user.js
Expand Down
3 changes: 3 additions & 0 deletions prebuild/createBranchesJson.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { writeFile } from 'node:fs/promises';
export default async (): Promise<void> =>
writeFile('./static/branches.json', '{}');
2 changes: 2 additions & 0 deletions prebuild/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import buildAPI from './api';
import collectFAIconNames from './collectFAIconNames';
import copyStatic from './copyStatic';
import createBranchesJson from './createBranchesJson';
import downloadMissions from './downloadMissions';
import downloadReleasenotes from './downloadReleasenotes';
import { emptyFolder } from './emptyDir';
Expand All @@ -26,6 +27,7 @@ const timeWrap = async (name: string, fn: () => Promise<unknown> | unknown) => {
await timeWrap('emptyDir', () => emptyFolder('./dist'));
await timeWrap('download missions', downloadMissions);
await timeWrap('download releasenotes', downloadReleasenotes);
await timeWrap('create dumy branches.json', createBranchesJson);
await timeWrap('copyStatic', copyStatic);
await timeWrap('build API', buildAPI);
await timeWrap('Collect Third-Party Libraries', getLibraries);
Expand Down

0 comments on commit 757b9ca

Please sign in to comment.