Skip to content

Commit ad9efeb

Browse files
clydinMRHarrison
authored andcommitted
refactor: remove unused markdown support (angular#4289)
1 parent 0d98b6b commit ad9efeb

File tree

4 files changed

+0
-234
lines changed

4 files changed

+0
-234
lines changed

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@
7474
"loader-utils": "^0.2.16",
7575
"lodash": "^4.11.1",
7676
"magic-string": "^0.16.0",
77-
"markdown-it": "4.3.0",
78-
"markdown-it-terminal": "0.0.3",
7977
"minimatch": "^3.0.3",
8078
"node-modules-path": "^1.0.0",
8179
"node-sass": "^4.3.0",

packages/angular-cli/ember-cli/lib/models/blueprint.js

-17
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
var FileInfo = require('./file-info');
77
var Promise = require('../ext/promise');
88
var chalk = require('chalk');
9-
var MarkdownColor = require('../utilities/markdown-color');
109
var printableProperties = require('../utilities/printable-properties').blueprint;
1110
var sequence = require('../utilities/sequence');
1211
var printCommand = require('../utilities/print-command');
@@ -1119,12 +1118,6 @@ Blueprint.prototype.printBasicHelp = function(verbose) {
11191118
};
11201119

11211120
Blueprint.prototype.printDetailedHelp = function() {
1122-
var markdownColor = new MarkdownColor();
1123-
var filePath = getDetailedHelpPath(this.path);
1124-
1125-
if (existsSync(filePath)) {
1126-
return markdownColor.renderFile(filePath, { indent: ' ' });
1127-
}
11281121
return '';
11291122
};
11301123

@@ -1480,13 +1473,3 @@ function dir(fullPath) {
14801473
return [];
14811474
}
14821475
}
1483-
1484-
/**
1485-
@private
1486-
@method getDetailedHelpPath
1487-
@param {String} thisPath
1488-
@return {String} help path
1489-
*/
1490-
function getDetailedHelpPath(thisPath) {
1491-
return path.join(thisPath, './HELP.md');
1492-
}

packages/angular-cli/ember-cli/lib/utilities/markdown-color.js

-213
This file was deleted.

packages/angular-cli/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@
6161
"less": "^2.7.2",
6262
"less-loader": "^2.2.3",
6363
"lodash": "^4.11.1",
64-
"markdown-it": "4.3.0",
65-
"markdown-it-terminal": "0.0.3",
6664
"minimatch": "^3.0.3",
6765
"node-modules-path": "^1.0.0",
6866
"node-sass": "^4.3.0",

0 commit comments

Comments
 (0)