UNPKG

886 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 'css'
11);
12const cssPath = resolvePath(
13 folder,
14 'index.css'
15);
16const documentCssPath = resolvePath(
17 folder,
18 'document-index.css'
19);
20const modulePath = resolvePath(
21 folder,
22 'index.ts'
23);
24const documentModulePath = resolvePath(
25 folder,
26 'document-index.ts'
27);
28
29export default async function() {
30 await createFolder(folder);
31
32 await Promise.all([
33 createFile(cssPath, ''),
34 createFile(documentCssPath, ''),
35 createFile(modulePath, exportEmptyStringSnippet),
36 createFile(documentModulePath, exportEmptyStringSnippet)
37 ]);
38}
\No newline at end of file