Skip to content

Commit

Permalink
Use hero-log and remove commands exist in hexo-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Feb 11, 2016
1 parent 1d45f76 commit f5c3b40
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 260 deletions.
100 changes: 0 additions & 100 deletions lib/hexo/create_logger.js

This file was deleted.

4 changes: 2 additions & 2 deletions lib/hexo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var fs = require('hexo-fs');
var Module = require('module');
var vm = require('vm');
var pkg = require('../../package.json');
var createLogger = require('./create_logger');
var logger = require('hexo-log');
var extend = require('../extend');
var Render = require('./render');
var registerModels = require('./register_models');
Expand Down Expand Up @@ -70,7 +70,7 @@ function Hexo(base, args) {

this.config = _.cloneDeep(defaultConfig);

this.log = createLogger(this.env);
this.log = logger(this.env);

this.render = new Render(this);

Expand Down
87 changes: 0 additions & 87 deletions lib/plugins/console/help.js

This file was deleted.

14 changes: 0 additions & 14 deletions lib/plugins/console/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ module.exports = function(ctx) {
]
}, require('./generate'));

console.register('help', 'Get help on a command.', {
init: true
}, require('./help'));

console.register('init', 'Create a new Hexo folder.', {
init: true,
desc: 'Create a new Hexo folder at the specified path or the current directory.',
usage: '[destination]'
}, require('./init'));

console.register('list', 'List the information of the site', {
desc: 'List the information of the site.',
usage: '<type>',
Expand Down Expand Up @@ -85,8 +75,4 @@ module.exports = function(ctx) {
{name: '--pretty', desc: 'Prettify JSON output'}
]
}, require('./render'));

console.register('version', 'Display version information.', {
init: true
}, require('./version'));
};
3 changes: 0 additions & 3 deletions lib/plugins/console/init.js

This file was deleted.

17 changes: 0 additions & 17 deletions lib/plugins/console/version.js

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@
"bunyan": "^1.5.1",
"chalk": "^1.1.1",
"cheerio": "^0.20.0",
"hexo-cli": "^0.2.1",
"hexo-cli": "^1.0.0",
"hexo-front-matter": "^0.2.2",
"hexo-fs": "^0.1.5",
"hexo-i18n": "^0.2.1",
"hexo-log": "^0.1.1",
"hexo-util": "^0.5.1",
"js-yaml": "^3.5.2",
"lodash": "^4.3.0",
Expand Down
35 changes: 0 additions & 35 deletions test/scripts/console/help.js

This file was deleted.

1 change: 0 additions & 1 deletion test/scripts/console/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ describe('Console', function() {
require('./config');
require('./deploy');
require('./generate');
require('./help');
require('./migrate');
require('./new');
require('./publish');
Expand Down

0 comments on commit f5c3b40

Please sign in to comment.