(content, options)
| 133 | return md.replace(/^\s+|\s+$/g, '') |
| 134 | }, |
| 135 | EXTERNAL_PLUGINS(content, options) { |
| 136 | const externalPackages = require('../external-plugins.json') |
| 137 | |
| 138 | const sorted = externalPackages |
| 139 | // alphabetize list |
| 140 | .sort((a, b) => { |
| 141 | var textA = a.name.toLowerCase() |
| 142 | var textB = b.name.toLowerCase() |
| 143 | return (textA < textB) ? -1 : (textA > textB) ? 1 : 0 |
| 144 | }) |
| 145 | .map(({ name, url, description }) => { |
| 146 | return `- [${name}](${url}) ${description}` |
| 147 | }) |
| 148 | .concat('- [Add a plugin link](https://github.com/DavidWells/analytics/blob/master/external-plugins.json)') |
| 149 | .join('\n') |
| 150 | return sorted |
| 151 | }, |
| 152 | EVENT_DOCS(content, options) { |
| 153 | const fileContents = fs.readFileSync(path.join(__dirname, '..', 'packages/analytics-core/src/events.js'), 'utf-8') |
| 154 | const docBlocs = dox.parseComments(fileContents, { raw: true, skipSingleStar: true }) |
nothing calls this directly
no outgoing calls
no test coverage detected