-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdgeni-conf.js
More file actions
39 lines (31 loc) · 962 Bytes
/
dgeni-conf.js
File metadata and controls
39 lines (31 loc) · 962 Bytes
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
var path = require('canonical-path');
var Package = require('dgeni').Package;
module.exports = new Package('dgeni-jsonschema-test', [
require('../../jsonschema'),
require('dgeni-packages/nunjucks')
])
.config(function(dgeni, log, debugDumpProcessor) {
dgeni.stopOnValidationError = true;
dgeni.stopOnProcessingError = true;
// debugDumpProcessor.$enabled = true;
log.level = 'warning';
})
.config(function(readFilesProcessor, templateFinder, writeFilesProcessor, computePathsProcessor) {
readFilesProcessor.basePath = __dirname;
readFilesProcessor.sourceFiles = [
{
include: 'module/*.js',
basePath: 'module'
}
];
writeFilesProcessor.outputFolder = 'module';
computePathsProcessor.pathTemplates.push({
docTypes: ['js'],
getPath: function(doc) {
return path.join(doc.fileInfo.basePath, 'schema-generated');
},
getOutputPath: function(doc) {
return doc.path + '.json';
},
});
});