2017-04-16 15:48:22 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. 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;
|
2017-04-21 08:10:52 -04:00
|
|
|
const contentPackage = require('../angular-content-package');
|
|
|
|
const { CONTENTS_PATH } = require('../config');
|
2017-04-16 15:48:22 -04:00
|
|
|
|
|
|
|
function createPackage() {
|
2017-04-21 08:10:52 -04:00
|
|
|
return new Package('author-marketing', [contentPackage])
|
2017-04-16 15:48:22 -04:00
|
|
|
.config(function(readFilesProcessor) {
|
|
|
|
readFilesProcessor.sourceFiles = [
|
|
|
|
{
|
|
|
|
basePath: CONTENTS_PATH + '/marketing',
|
|
|
|
include: CONTENTS_PATH + '/marketing/**/*.{html,md}',
|
|
|
|
fileReader: 'contentFileReader'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
basePath: CONTENTS_PATH,
|
|
|
|
include: CONTENTS_PATH + '/*.md',
|
|
|
|
exclude: [CONTENTS_PATH + '/index.md'],
|
|
|
|
fileReader: 'contentFileReader'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
basePath: CONTENTS_PATH,
|
|
|
|
include: CONTENTS_PATH + '/marketing/*.json',
|
|
|
|
fileReader: 'jsonFileReader'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
basePath: CONTENTS_PATH,
|
|
|
|
include: CONTENTS_PATH + '/navigation.json',
|
|
|
|
fileReader: 'jsonFileReader'
|
|
|
|
},
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = { createPackage };
|