function createPackage(tutorialName) {

  const tutorialFilePath = `${CONTENTS_PATH}/getting-started/${tutorialName}.md`;
  const tutorialFile = readFileSync(tutorialFilePath, 'utf8');
  const examples = [];
  tutorialFile.replace(/<code-(?:pane|example) [^>]*path="([^"]+)"/g, (_, path) => examples.push('examples/' + path));

  if (examples.length) {
    console.log('The following example files are referenced in this getting-started:');
    console.log(examples.map(example => ' - ' + example).join('\n'));
  }

  return new Package('author-getting-started', [contentPackage])
    .config(function(readFilesProcessor) {
      readFilesProcessor.sourceFiles = [
        {
          basePath: CONTENTS_PATH,
          include: tutorialFilePath,
          fileReader: 'contentFileReader'
        },
        {
          basePath: CONTENTS_PATH,
          include: examples.map(example => resolve(CONTENTS_PATH, example)),
          fileReader: 'exampleFileReader'
        }
      ];
    });
}
function createPackage(tutorialName) {

  const tutorialFilePath = `${CONTENTS_PATH}/getting-started/${tutorialName}.md`;
  const tutorialFile = readFileSync(tutorialFilePath, 'utf8');
  const examples = [];
  tutorialFile.replace(/<code-(?:pane|example) [^>]*path="([^"]+)"/g, (_, path) => examples.push('examples/' + path));

  if (examples.length) {
    console.log('The following example files are referenced in this getting-started:');
    console.log(examples.map(example => ' - ' + example).join('\n'));
  }

  return new Package('author-getting-started', [contentPackage])
    .config(function(readFilesProcessor) {
      readFilesProcessor.sourceFiles = [
        {
          basePath: CONTENTS_PATH,
          include: tutorialFilePath,
          fileReader: 'contentFileReader'
        },
        {
          basePath: CONTENTS_PATH,
          include: examples.map(example => resolve(CONTENTS_PATH, example)),
          fileReader: 'exampleFileReader'
        }
      ];
    });
}
function createPackage ( tutorialName ) { const tutorialFilePath = ` ${ CONTENTS_PATH } ${ tutorialName } ` ; const tutorialFile = readFileSync ( tutorialFilePath , 'utf8' ) ; const examples = [ ] ; tutorialFile . replace ( / <code-(?:pane|example) [^>]*path="([^"]+)" / g , ( _ , path ) => examples . push ( 'examples/' + path ) ) ; if ( examples . length ) { console . log ( 'The following example files are referenced in this getting-started:' ) ; console . log ( examples . map ( example => ' - ' + example ) . join ( '\n' ) ) ; } return new Package ( 'author-getting-started' , [ contentPackage ] ) . config ( function ( readFilesProcessor ) { readFilesProcessor . sourceFiles = [ { basePath : CONTENTS_PATH , include : tutorialFilePath , fileReader : 'contentFileReader' } , { basePath : CONTENTS_PATH , include : examples . map ( example => resolve ( CONTENTS_PATH , example ) ) , fileReader : 'exampleFileReader' } ] ; } ) ; }
/* eslint no-console: "off"
/ * eslint no - console : off
Create a package