Bauke/tildes-issue-log
Bauke
/
tildes-issue-log
Archived
1
Fork 0
This repository has been archived on 2022-10-04. You can view files and clone it, but cannot push or open issues or pull requests.
tildes-issue-log/source/scripts/assets.ts

22 lines
550 B
TypeScript
Raw Permalink Normal View History

import {join} from 'path';
import tar from 'tar';
async function entry(): Promise<void> {
await tar.extract({
file: join(__dirname, '../pages/assets/fonts/Inter.tar'),
cwd: join(__dirname, '../../public/fonts/')
});
await tar.extract({
file: join(__dirname, '../pages/assets/fonts/Hasklig.tar'),
cwd: join(__dirname, '../../public/fonts/')
});
await tar.extract({
file: join(__dirname, '../pages/assets/favicons.tar'),
cwd: join(__dirname, '../../public/')
});
}
if (require.main === module) {
void entry();
}