chore(deps): replace date-format with date-fns

This commit is contained in:
Ayushman Chhabra 2022-06-04 19:06:32 -04:00
parent 84801f4fcf
commit 842f8fc41b
3 changed files with 13 additions and 13 deletions

View File

@ -1,6 +1,6 @@
language: node_js
node_js:
- "16.15.0"
- "16.15.1"
before_install:
- npm update -g npm
- npm install -g grunt-cli

View File

@ -10,8 +10,8 @@ module.exports = function(grunt) {
};
// create a version based on the build timestamp
var dateFormat = require('dateformat');
var version = '-' + dateFormat(new Date(), "yyyy-mm-dd-hh-MM");
var { format } = require('date-fns');
var version = `-${format(new Date(), "yyyy-MM-dd-HH-mm")}`;
var releaseVersion = require('./package.json').version;
/**

View File

@ -33,11 +33,10 @@
"format": "grunt eslint --fix"
},
"devDependencies": {
"@chiragrupani/karma-chromium-edge-launcher": "^2.2.1",
"@happikitsune/grunt-nw-builder": "3.5.10",
"dateformat": "4.5.1",
"@chiragrupani/karma-chromium-edge-launcher": "2.2.1",
"date-fns": "2.28.0",
"fs-extra": "10.1.0",
"grunt": "1.5.2",
"grunt": "1.5.3",
"grunt-casperjs": "2.2.1",
"grunt-cli": "1.4.3",
"grunt-contrib-clean": "2.0.1",
@ -52,20 +51,21 @@
"grunt-jscs": "3.0.1",
"grunt-karma": "4.0.2",
"grunt-leading-indent": "0.2.0",
"grunt-nw-builder": "3.7.1",
"grunt-replace": "2.0.2",
"grunt-spritesmith": "6.10.0",
"jasmine-core": "4.1.0",
"karma": "6.3.19",
"jasmine-core": "4.1.1",
"karma": "6.3.20",
"karma-chrome-launcher": "3.1.1",
"karma-firefox-launcher": "^2.1.2",
"karma-jasmine": "5.0.0",
"karma-firefox-launcher": "2.1.2",
"karma-jasmine": "5.0.1",
"karma-phantomjs-launcher": "1.0.4",
"load-grunt-tasks": "5.1.0",
"nw": "0.64.0",
"nw": "0.65.0",
"phantomjs-polyfill-object-assign": "0.0.2",
"phantomjs-prebuilt": "2.1.16",
"promise-polyfill": "8.2.3",
"puppeteer": "13.7.0",
"puppeteer": "14.2.1",
"rmdir": "1.2.0"
},
"window": {