1 | import { resolve as resolvePath } from 'path';
|
2 | import createFolder from 'vamtiger-create-directory';
|
3 | import createFile from 'vamtiger-create-file';
|
4 | import exportEmptyStringSnippet from './snippet/export-empty-string';
|
5 |
|
6 | const { cwd } = process;
|
7 | const folder = resolvePath(
|
8 | cwd(),
|
9 | 'source',
|
10 | 'html'
|
11 | );
|
12 | const htmlPath = resolvePath(
|
13 | folder,
|
14 | 'index.html'
|
15 | );
|
16 | const modulePath = resolvePath(
|
17 | folder,
|
18 | 'index.ts'
|
19 | );
|
20 |
|
21 | export 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 |