From 9fbb3d0cce2cdcdbb7939e28a0e65c21325c7e02 Mon Sep 17 00:00:00 2001
From: Christopher McCulloh <cmcculloh@exacttarget.com>
Date: Mon, 7 Nov 2016 11:01:28 -0500
Subject: [PATCH] () adds more release prereq prompts

---
 grunt/config/prompt.js | 48 ++++++++++++++++++++++++++++++++++++++++++
 grunt/tasks/release.js |  3 +++
 2 files changed, 51 insertions(+)

diff --git a/grunt/config/prompt.js b/grunt/config/prompt.js
index d82a989cd..0f5d52bc3 100644
--- a/grunt/config/prompt.js
+++ b/grunt/config/prompt.js
@@ -233,6 +233,54 @@ module.exports = function (grunt) {
 				}
 			}
 		},
+		'rannpminstall': {
+			options: {
+				questions: [
+					{
+						config: 'release.rannpminstall',
+						type: 'confirm',
+						message: 'Have you run `npm install && bower install`?'
+					}
+				],
+				then: function (answers, done) {
+					if (answers['release.rannpminstall'] === false) {
+						grunt.fail.fatal('Please run `npm install && bower install`', 1);
+					}
+				}
+			}
+		},
+		'rangrunttest': {
+			options: {
+				questions: [
+					{
+						config: 'release.rangrunttest',
+						type: 'confirm',
+						message: 'Have you run grunt test, and have all tests passed?'
+					}
+				],
+				then: function (answers, done) {
+					if (answers['release.rangrunttest'] === false) {
+						grunt.fail.fatal('Please run `grunt test`, and make sure all tests pass', 1);
+					}
+				}
+			}
+		},
+		'ransauce': {
+			options: {
+				questions: [
+					{
+						config: 'release.ransauce',
+						type: 'confirm',
+						message: 'Have you run `grunt saucelabs`, and have all tests passed?'
+					}
+				],
+				then: function (answers, done) {
+					if (answers['release.ransauce'] === false) {
+						grunt.fail.fatal('Please run `grunt saucelabs`, and make sure all tests pass', 1);
+					}
+				}
+			}
+		},
 		'createmilestone': {
 			options: {
 				questions: [
diff --git a/grunt/tasks/release.js b/grunt/tasks/release.js
index 2564ab641..ab8aea573 100644
--- a/grunt/tasks/release.js
+++ b/grunt/tasks/release.js
@@ -47,6 +47,9 @@ module.exports = function (grunt) {
 		grunt.task.run(
 			[
 				'prompt:logoffvpn',
+				'prompt:rannpminstall',
+				'prompt:rangrunttest',
+				'prompt:ransauce',
 				'prompt:createmilestone',
 				'prompt:bumpmilestones',
 				'prompt:closemilestone',