This repository has been archived by the owner on Jul 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathproject.json.d.ts
83 lines (72 loc) · 1.73 KB
/
project.json.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { JsonSchemaForNpmPackageJsonFiles as PackageJson } from './package.json';
import { JsonSchemaForTheTypeScriptCompilersConfigurationFile as TsconfigJson } from './tsconfig.json';
import { JsonSchemaForTheTsLintConfigurationFiles as TslintJson } from './tslint.json';
import { DojoRcJson } from './dojorc';
export interface ProjectJson {
/**
* The package dependencies for the project, either `production` or `development`
*/
dependencies: {
/**
* A map of production dependencies, where the package name is the key and the value is the semver of the package
*/
production: {
[pkg: string]: string;
};
/**
* A map of development dependencies, where the package name is the key and the value is the semver of the package
*/
development: {
[pkg: string]: string;
};
};
/**
* The .dojorc for the project
*/
dojorc?: DojoRcJson;
/**
* Files that are part of the environment but are not exposed for editing
*
* Typically these are TypeScript definition files and libraries that are needed
* to provide context to edit and compile the project files
*/
environmentFiles: ProjectFile[];
/**
* These are the editable project files
*/
files: ProjectFile[];
/**
* The filename of the HTML document for the project to load when running it
*/
index: string;
/**
* The package.json for the project
*/
package: PackageJson;
/**
* The tsconfig.json for the project
*/
tsconfig: TsconfigJson;
/**
* The tslint.json for the project
*/
tslint?: TslintJson;
}
export interface ProjectFile {
type: ProjectFileType;
name: string;
text: string;
}
export const enum ProjectFileType {
TypeScript = 1,
Definition,
Lib,
JavaScript,
CSS,
HTML,
Markdown,
JSON,
XML,
SourceMap,
PlainText
}