Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Commit

Permalink
[package][task] drop moment.js in favor of native Date() function
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmorDarks authored and mrhyde committed Oct 4, 2017
1 parent fe7e714 commit 4122ae2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

When set to `false`, all trailing slashes from URLs will be removed.

- Dropped `moment.js` in favor of simple `new Date().toISOString()` as a default value for `lastMod` option.
- `package.json` cleanups.
- Added `package.json` `main` property pointing to the task file.
- Added `snazzy` for better `standard` output.
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
],
"dependencies": {
"chalk": "^2.0.0",
"moment": "^2.14.1",
"xmlbuilder": "^9.0.0"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions tasks/sitemap_xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
'use strict'

const chalk = require('chalk')
const moment = require('moment')
const builder = require('xmlbuilder')

module.exports = function (grunt) {
Expand All @@ -22,7 +21,7 @@ module.exports = function (grunt) {
siteRoot: pkg.homepage,
stripIndex: true,
trailingSlash: true,
lastMod: moment().format('YYYY-MM-DDTHH:mm:ssZ'),
lastMod: new Date().toISOString(),
priority: '0.5',
changeFreq: 'weekly',
pretty: false
Expand Down

0 comments on commit 4122ae2

Please sign in to comment.