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 | 'css'
|
11 | );
|
12 | const cssPath = resolvePath(
|
13 | folder,
|
14 | 'index.css'
|
15 | );
|
16 | const documentCssPath = resolvePath(
|
17 | folder,
|
18 | 'document-index.css'
|
19 | );
|
20 | const modulePath = resolvePath(
|
21 | folder,
|
22 | 'index.ts'
|
23 | );
|
24 | const documentModulePath = resolvePath(
|
25 | folder,
|
26 | 'document-index.ts'
|
27 | );
|
28 |
|
29 | export 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 |