This repository was archived by the owner on Aug 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ module.exports = function (grunt) {
147
147
rename : function ( base , src ) {
148
148
return src . replace ( '/scss/' , '/css/' ) ;
149
149
}
150
- } ]
150
+ } ]
151
151
}
152
152
} ,
153
153
less : {
@@ -159,7 +159,7 @@ module.exports = function (grunt) {
159
159
rename : function ( base , src ) {
160
160
return src . replace ( '/less/' , '/css/' ) ;
161
161
}
162
- } ]
162
+ } ]
163
163
}
164
164
} ,
165
165
'node-inspector' : {
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ var _ = require('lodash'),
16
16
} ) ,
17
17
path = require ( 'path' ) ,
18
18
endOfLine = require ( 'os' ) . EOL ,
19
- protractor = require ( " gulp-protractor" ) . protractor ,
20
- webdriver_update = require ( " gulp-protractor" ) . webdriver_update ,
21
- webdriver_standalone = require ( " gulp-protractor" ) . webdriver_standalone ;
19
+ protractor = require ( ' gulp-protractor' ) . protractor ,
20
+ webdriver_update = require ( ' gulp-protractor' ) . webdriver_update ,
21
+ webdriver_standalone = require ( ' gulp-protractor' ) . webdriver_standalone ;
22
22
23
23
// Set NODE_ENV to 'test'
24
24
gulp . task ( 'env:test' , function ( ) {
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
1
3
var nodemailer = require ( 'nodemailer' ) ,
2
4
mongoose = require ( 'mongoose' ) ,
3
5
chalk = require ( 'chalk' ) ,
@@ -47,7 +49,7 @@ mg.connect(function (db) {
47
49
email . text = email . html = text . replace ( '{{name}}' , user . displayName ) ;
48
50
49
51
transporter . sendMail ( email , emailCallback ( user ) ) ;
50
- } ;
52
+ }
51
53
52
54
function emailCallback ( user ) {
53
55
return function ( err , info ) {
@@ -68,7 +70,7 @@ mg.connect(function (db) {
68
70
return reportAndExit ( processedCount , errorCount ) ;
69
71
}
70
72
} ;
71
- } ;
73
+ }
72
74
73
75
// report the processing results and exit
74
76
function reportAndExit ( processedCount , errorCount ) {
@@ -79,7 +81,7 @@ mg.connect(function (db) {
79
81
if ( processedCount === 0 ) {
80
82
console . log ( chalk . yellow ( 'No users were found.' ) ) ;
81
83
} else {
82
- var alert = ( ! errorCount ) ? chalk . green : ( ( successCount / processedCount ) < .8 ) ? chalk . red : chalk . yellow ;
84
+ var alert = ( ! errorCount ) ? chalk . green : ( ( successCount / processedCount ) < 0 .8) ? chalk . red : chalk . yellow ;
83
85
84
86
console . log ( alert ( 'Sent ' + successCount + ' of ' + processedCount + ' emails successfully.' ) ) ;
85
87
}
You can’t perform that action at this time.
0 commit comments