build(aio): move the transforms
folder into the tools
folder
This commit is contained in:

committed by
Pete Bacon Darwin

parent
7c418a7e06
commit
abecf3eb6d
31
aio/tools/transforms/authors-package/tutorial-package.js
Normal file
31
aio/tools/transforms/authors-package/tutorial-package.js
Normal file
@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @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;
|
||||
const { basePackage, CONTENTS_PATH, getBoilerPlateExcludes } = require('./base-package');
|
||||
|
||||
function createPackage() {
|
||||
return new Package('author-tutorial', [basePackage])
|
||||
.config(function(readFilesProcessor) {
|
||||
readFilesProcessor.sourceFiles = [
|
||||
{
|
||||
basePath: CONTENTS_PATH,
|
||||
include: CONTENTS_PATH + '/tutorial/**/*.md',
|
||||
fileReader: 'contentFileReader'
|
||||
},
|
||||
{
|
||||
basePath: CONTENTS_PATH,
|
||||
include: CONTENTS_PATH + '/examples/toh-*/**/*',
|
||||
exclude: getBoilerPlateExcludes(),
|
||||
fileReader: 'exampleFileReader'
|
||||
}
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
module.exports = { createPackage };
|
Reference in New Issue
Block a user