Skip to content

Commit

Permalink
feat(includesource): split to exclude-source-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
h13i32maru committed Feb 19, 2017
1 parent 921f165 commit b37b5b6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 35 deletions.
2 changes: 0 additions & 2 deletions src/ESDoc.js
Expand Up @@ -149,8 +149,6 @@ export default class ESDoc {

if (!('undocumentIdentifier' in config)) config.undocumentIdentifier = true;

if (!('includeSource' in config)) config.includeSource = true;

if (!config.index) config.index = './README.md';

if (!config.package) config.package = './package.json';
Expand Down
8 changes: 0 additions & 8 deletions src/Publisher/publish.js
Expand Up @@ -25,14 +25,6 @@ import Plugin from '../Plugin/Plugin.js';
export default function publish(values, asts, config) {
IceCap.debug = !!config.debug;

if (!config.includeSource) {
for (const value of values) {
if (['file', 'testFile'].includes(value.kind) && 'content' in value) {
value.content = '';
}
}
}

const dumpPath = path.resolve(config.destination, 'dump.json');
fs.outputFileSync(dumpPath, JSON.stringify(values, null, 2));

Expand Down
8 changes: 0 additions & 8 deletions test/fixture/config/esdoc-includeSource.json

This file was deleted.

17 changes: 0 additions & 17 deletions test/src/ConfigTest/IncludeSourceTest.js

This file was deleted.

0 comments on commit b37b5b6

Please sign in to comment.