1 | const chalk = require('chalk')
|
2 |
|
3 | const project = `
|
4 | src
|
5 | └── views ${chalk.green('-- 视图目录')}
|
6 | ├── index
|
7 | │ ├── ${chalk.yellowBright('index.(js|ts)')} ${chalk.green('-- 必须')}
|
8 | │ └── index.html ${chalk.green('-- 必须')}
|
9 | └── other
|
10 | ├── ...
|
11 | └── ...`
|
12 |
|
13 | const library = `
|
14 | src
|
15 | ├── ${chalk.yellowBright('index.(js|ts)')} ${chalk.green(
|
16 | '-- lib 入口文件,必须'
|
17 | )}
|
18 | └── views
|
19 | └── demo ${chalk.green('-- demo 页面,可选')}
|
20 | ├── index.(js|ts)
|
21 | └── index.html`
|
22 |
|
23 | module.exports = { project, library }
|