-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { IProjectConfig } from './src/model/IProjectConfig'; | ||
|
||
|
||
let projectConfig: IProjectConfig = { | ||
projectType: 'node', | ||
command: true, | ||
documents: true, | ||
unitTest: true, | ||
} | ||
|
||
export default projectConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* 配置文件结构接口 | ||
* | ||
* @export | ||
* @class IProjectConfig | ||
*/ | ||
export interface IProjectConfig { | ||
/** | ||
* 项目类型 | ||
* | ||
* @type {("node" | "webpack" | "angular")} | ||
* @memberof IProjectConfig | ||
*/ | ||
projectType: "node" | "webpack" | "angular"; | ||
|
||
/** | ||
* 此项目是否是命令行 | ||
* 1、boolean: 当有true时,以项目名作为命令行;当false或为null时,不作为命令行使用 | ||
* 2、string: 命令行名称 | ||
* 3、string[]: 多个命令行名称 | ||
* | ||
* @type {(boolean | string | string[])} | ||
* @memberof IProjectConfig | ||
*/ | ||
command?: boolean | string | string[]; | ||
|
||
/** | ||
* 是否生成文档 | ||
* | ||
* @type {boolean} | ||
* @memberof IProjectConfig | ||
*/ | ||
documents?: boolean; | ||
|
||
/** | ||
* 是否需要单元测试 | ||
* | ||
* @type {boolean} | ||
* @memberof IProjectConfig | ||
*/ | ||
unitTest?: boolean; | ||
} |