mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Refs #42966. Look for changes in error docs (i.e. docs under `aio/content/error/`) in `authors-package`, so that such docs are tracked when running the `serve-and-sync` script. PR Close #44704
32 lines
1,019 B
JavaScript
32 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};
|