How to use the dgeni.log.error function in dgeni

To help you get started, we’ve selected a few dgeni examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ionic-team / ionic-v1 / config / demos / processors / demos.js View on Github external
fragmentsForId.forEach(function(fragment) {
          var doc = fragment.yaml;
          if (!doc.name || !doc.component) {
            log.error('Doc ' + fragment.filePath +
                      ' expects yaml keys "name" and "component"!');
          }

          doc.id = doc.component + '-' + doc.name;
          doc.fileType = typeTransform[fragment.fileType] || fragment.fileType;
          doc.fileName = fragment.fileName;
          doc.contents = fragment.contents;
          doc.extension = doc.fileType.replace(/^\./,'');

          doc.template = templates[doc.fileType] || 'asset.contents.template',
          doc.outputPath = path.join(contentsFolder, _.template(assetOutputPath, doc));

          doc = (transform[doc.fileType] || _.identity)(doc);

          demoData.files.push(doc);
          pages.push(doc);

dgeni

Flexible JavaScript documentation generator used by both AngularJS and Angular

MIT
Latest version published 3 years ago

Package Health Score

60 / 100
Full package analysis

Similar packages