Skip to content

Commit 7196f00

Browse files
Merge pull request #16 from datajohnny/master
Remove moment-duration-format and upgrade moment
2 parents dc6bcc6 + e300d99 commit 7196f00

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ var SlackNotifier = require('./lib/slack-notifier');
77
var DeployPluginBase = require('ember-cli-deploy-plugin');
88

99
var moment = require('moment');
10-
require('moment-duration-format');
1110

1211
module.exports = {
1312
name: 'ember-cli-deploy-slack',
@@ -31,6 +30,7 @@ module.exports = {
3130
var startDeployDate = this.context.slackStartDeployDate;
3231
var endDeployDate = new Date();
3332
var duration = moment.duration(endDeployDate - startDeployDate);
33+
var value = duration.minutes() + ' min, ' + duration.seconds() + ' s, ' + duration.milliseconds() + ' ms.';
3434

3535
return slack.notify({
3636
attachments: [{
@@ -40,7 +40,7 @@ module.exports = {
4040
"fields":[
4141
{
4242
"title":"Stats",
43-
"value":"Deploying revision took "+duration.format('m [min], s [s], S [ms]')+'.',
43+
"value":"Deploying revision took "+value,
4444
"short":false
4545
}
4646
]

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
"core-object": "^1.1.0",
5252
"ember-cli-babel": "^5.0.0",
5353
"ember-cli-deploy-plugin": "^0.2.1",
54-
"moment": "^2.10.3",
55-
"moment-duration-format": "^1.3.0",
54+
"moment": "^2.17.1",
5655
"node-slackr": "^0.1.0",
5756
"silent-error": "^1.0.0"
5857
},

0 commit comments

Comments
 (0)