UNPKG

1.8 kBTypeScriptView Raw
1export interface IProjectConfig {
2 packages: (ILibraryPackageConfig | IClientPackageConfig | IServerPackageConfig)[];
3 tests?: ITestPackageConfig[];
4 localDependencies?: {
5 [key: string]: string;
6 };
7 env?: {
8 [key: string]: string;
9 };
10 "env.development"?: {
11 [key: string]: string;
12 };
13 "env.production"?: {
14 [key: string]: string;
15 };
16}
17export interface ILibraryPackageConfig {
18 name: string;
19 type: "library";
20 publish?: boolean;
21}
22export interface IClientPackageConfig {
23 name: string;
24 type: "client";
25 favicon?: string;
26 platforms?: ("web" | "desktop" | "android")[];
27 devServer?: {
28 host?: string | string[];
29 port: number;
30 };
31 cordova?: ICordovaConfig;
32 publish?: IPublishConfig | false;
33 env?: {
34 [key: string]: string;
35 };
36 "env.development"?: {
37 [key: string]: string;
38 };
39 "env.production"?: {
40 [key: string]: string;
41 };
42}
43export interface IServerPackageConfig {
44 name: string;
45 type: "server";
46 publish?: IPublishConfig | false;
47 env?: {
48 [key: string]: string;
49 };
50 "env.development"?: {
51 [key: string]: string;
52 };
53 "env.production"?: {
54 [key: string]: string;
55 };
56}
57export interface IPublishConfig {
58 host: string;
59 port: number;
60 username: string;
61 password: string;
62 path: string;
63}
64export interface ITestPackageConfig {
65 name: string;
66 packages: string[];
67 jsdom?: {
68 url?: string;
69 };
70 angular?: {
71 url?: string;
72 };
73}
74export interface ICordovaConfig {
75 appId: string;
76 name?: string;
77 plugins?: string[];
78 sign?: string;
79 icon?: string;
80}