-
Notifications
You must be signed in to change notification settings - Fork 7
/
lib_docgenerator.js
115 lines (109 loc) · 3.39 KB
/
lib_docgenerator.js
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
var doc = require("./index.js");
var ts = require("typescript");
/* //Creator
doc.generateDocumentation(["src/entries/index.ts"], { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS });
*/
/*
var Survey = require("../survey-library/build/survey-core/survey.core");
doc.setJsonObj(Survey.Serializer);
doc.generateDocumentation(["src/entries/chunks/model.ts"], {
target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
});
*/
/*
doc.generateDocumentation(["src/index.ts"], {
target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
});
*/
/*
doc.generateDocumentation(["src/entries/pdf.ts"], {
target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
});
*/
doc.generateDocumentation(["src/entries/index.ts"], {
target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
});
//var Survey = require("../survey-library/build/survey-knockout/survey.ko");
//var SurveyCore = require("../survey-library/build/survey-core/survey-core");
//var SurveyReact = require("../survey-library/build/survey-react-ui/survey-react-ui");
//doc.setJsonObj(Survey.JsonObject.metaData);
/*
doc.generateDts({
entries: ["./src/entries/knockout-ui.ts"],
out: "./build/survey-knockout-ui/survey-knockout-ui.d.ts",
name: "Type definition for Survey JavaScript library for Knockout (without core)",
license: "MIT (http://www.opensource.org/licenses/mit-license.php)",
excludeImports: true,
paths: {
"survey-core": ["./build/survey-core/survey.core.d.ts"],
}
})
*/
/*
doc.generateDts({
entries: ["../survey-creator-core/src/entries/index.ts", "./src/entries/index.ts"],
out: "./build/survey-creator-knockout.d.ts",
name: "Type definition for Survey Creator library for Knockout",
license: "https://surveyjs.io/Licenses#SurveyCreator",
paths: {
"survey-core": ["./node_modules/survey-core/survey.core.d.ts"],
"survey-knockout-ui": ["./node_modules/survey-knockout-ui/survey-knockout-ui.d.ts"]
}
}
);
*/
/*
doc.generateDts({
entries: ["./src/entries/index.ts"],
out: "./build/survey-creator-react.d.ts",
name: "Type definition for Survey Creator library for React",
license: "https://surveyjs.io/Licenses#SurveyCreator",
paths: {
"survey-core": ["./node_modules/survey-core/survey.core.d.ts"],
"survey-react-ui": ["./node_modules/survey-react-ui/survey-react-ui.d.ts"]
}
}
);
*/
/*
doc.generateDts({
entries: ["./src/entries/angular.ts"],
out: "./build/survey-angular/survey.angular.d.ts",
name: "Type definition for Survey JavaScript library for Angular",
license: "MIT (http://www.opensource.org/licenses/mit-license.php)"
}
);
*/
/*
doc.generateDts(
["./src/entries/react-ui.ts"],
{
dtsOutput: "./build/survey-react-ui/survey-react-ui.d.ts",
paths: {
"survey-core": ["./build/survey-core/survey.core.d.ts"],
}
}
)
*/
/*
doc.generateDocumentation(
//["./src/entries/chunks/model.ts"],
//["./src/entries/react-ui.ts"],
//["./src/entries/index.ts"],
["./src/entries/angular.ts"],
{
},
{
generateDoc: false,
generateJSONDefinition: false,
//dtsFileName: "./survey.core.d.ts",
//dtsFileName: "./survey-react-ui.d.ts",
dtsFileName: "./survey.angular.d.ts",
dtsImports: [
//{ name: "survey-core", file: "./survey.core.d.ts" }
//{name: "survey-core", file:"../../../survey-library/survey-core.d.ts"},
//{name: "survey-react-ui", file:"../../../survey-library/survey-react-ui.d.ts"}
]
}
);
*/