-
Notifications
You must be signed in to change notification settings - Fork 24
/
config.js
executable file
·57 lines (51 loc) · 2.3 KB
/
config.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
define({
// The execution environment(s) for the script being evaluated. (A minimal EcmaScript 5-compliant environment is
// always defined by default.) The following environments are provided by default:
// - amd: An environment with an AMD-compatible loader
// - browser: A Web browser environment
// - node: A node.js environment
// Note that js-doc-parse currently expects an AMD environment and might not work correctly if one is omitted.
// Additional custom environments can be used by passing the module ID of a custom environment module.
environments: [ 'amd', 'browser' ],
// The call handler registries to use. The following processors are provided by default:
// - amd: Handles AMD define/require calls.
// - dojo: Handles core Dojo language functions.
// Additional custom handler registries can be used by passing the module ID of a custom handler registry.
callHandlers: [ 'amd', 'dojo' ],
// The inline documentation processor(s) to use. The following processors are provided by default:
// - dojodoc: A parser for the Dojo documentation format
// - jsdoc: A parser for the jsdoc documentation format
// Additional custom processors can be used by passing the module ID of a custom processor module.
processors: [ 'dojodoc' ],
// The exporter(s) to use. The following exporters are provided by default:
// - dojov1: An exporter for the v1 Dojo API browser.
// Additional custom exporters can be used by passing the module ID of a custom exporter module.
// It is also possible to pass additional configuration options to each exporter by passing an object instead
// of a string, with the following properties:
// - id: The module ID of the exporter.
// - config: Arbitrary exporter configuration object, passed as an argument to the exporter function.
exporters: [ { id: 'dojov1', config: { file: 'details.xml' } } ],
show: {
warn: false,
info: false,
debug: false,
memory: true
},
// Configuration data for module ID resolution and path remapping within the parser.
// TODO: Document
environmentConfig: {
basePath: '',
packages: {
dojo: 'dojo',
dijit: 'dijit',
dojox: 'dojox',
doh: 'util/doh'
},
excludePaths: [
// Non-API code
/\/(?:tests|nls|demos)\//,
// Overwrites dojo.declare
/dojox\/lang\/(?:docs|typed)/
]
}
});