UNPKG

626 BPlain TextView Raw
1import { resolve as resolvePath } from 'path';
2import createFolder from 'vamtiger-create-directory';
3import createFile from 'vamtiger-create-file';
4import exportEmptyStringSnippet from './snippet/export-empty-string';
5
6const { cwd } = process;
7const folder = resolvePath(
8 cwd(),
9 'source',
10 'html'
11);
12const htmlPath = resolvePath(
13 folder,
14 'index.html'
15);
16const modulePath = resolvePath(
17 folder,
18 'index.ts'
19);
20
21export default async function() {
22 await createFolder(folder);
23 await Promise.all([
24 createFile(htmlPath, ''),
25 createFile(modulePath, exportEmptyStringSnippet)
26 ]);
27}
\No newline at end of file