Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/nunjucks-tw-3.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
segayuu authored Dec 18, 2018
2 parents 33f6ac7 + 61c5640 commit c414a3b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .jscsrc

This file was deleted.

1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ node_js:

script:
- npm run eslint
- npm run jscs
- npm run test-cov

after_script:
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* global hexo */
'use strict';

var assign = require('object-assign');
var pathFn = require('path');

var config = hexo.config.sitemap = assign({
var config = hexo.config.sitemap = Object.assign({
path: 'sitemap.xml'
}, hexo.config.sitemap);

Expand Down
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "index",
"scripts": {
"eslint": "eslint .",
"jscs": "jscs .",
"test": "mocha test/index.js",
"test-cov": "istanbul cover --print both _mocha -- test/index.js"
},
Expand All @@ -26,18 +25,15 @@
"license": "MIT",
"dependencies": {
"minimatch": "^3.0.0",
"nunjucks": "^3.1.6",
"object-assign": "^4.0.1"
"nunjucks": "^3.1.6"
},
"devDependencies": {
"chai": "^4.2.0",
"cheerio": "^0.22.0",
"eslint": "^2.13.1",
"eslint-config-hexo": "^1.0.2",
"eslint": "^5.10.0",
"eslint-config-hexo": "^3.0.0",
"hexo": "^3.0.0",
"istanbul": "^0.4.2",
"jscs": "^3.0.7",
"jscs-preset-hexo": "^1.0.1",
"mocha": "^5.2.0"
}
}
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('Sitemap generator', function() {
var Post = hexo.model('Post');
var generator = require('../lib/generator').bind(hexo);
var sitemapTmpl = require('../lib/template')(hexo.config);
var posts;
var locals;
var posts,
locals;

before(function() {
return hexo.init().then(function() {
Expand Down

0 comments on commit c414a3b

Please sign in to comment.