Skip to content

Commit

Permalink
4.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
heifade committed Jan 8, 2018
1 parent 08a7ebc commit 666430d
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mysql-i",
"version": "4.0.13",
"version": "4.0.14",
"description": "mysql interface, base on mysql",
"main": "./es/index.js",
"module": "./es/index.js",
Expand Down
11 changes: 11 additions & 0 deletions project-config.ts
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;
42 changes: 42 additions & 0 deletions src/model/IProjectConfig.ts
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;
}

0 comments on commit 666430d

Please sign in to comment.