mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
33 lines
1,019 B
JavaScript
33 lines
1,019 B
JavaScript
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright Google LLC All Rights Reserved.
|
||
|
|
*
|
||
|
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
|
* found in the LICENSE file at https://angular.io/license
|
||
|
|
*/
|
||
|
|
const Package = require('dgeni').Package;
|
||
|
|
const errorsPackage = require('../angular-errors-package');
|
||
|
|
const {CONTENTS_PATH} = require('../config');
|
||
|
|
const baseAuthoringPackage = require('./base-authoring-package');
|
||
|
|
|
||
|
|
function createPackage() {
|
||
|
|
return new Package('author-errors', [baseAuthoringPackage, errorsPackage])
|
||
|
|
.config(function(readFilesProcessor) {
|
||
|
|
readFilesProcessor.sourceFiles = [
|
||
|
|
{
|
||
|
|
basePath: CONTENTS_PATH,
|
||
|
|
include: `${CONTENTS_PATH}/errors/index.md`,
|
||
|
|
fileReader: 'contentFileReader',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
basePath: CONTENTS_PATH,
|
||
|
|
include: `${CONTENTS_PATH}/errors/**/*.md`,
|
||
|
|
exclude: `${CONTENTS_PATH}/errors/index.md`,
|
||
|
|
fileReader: 'errorFileReader',
|
||
|
|
},
|
||
|
|
];
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = {createPackage};
|