Browse Source

Add acceptance runner

James Allen 9 năm trước cách đây
mục cha
commit
f94de71093
2 tập tin đã thay đổi với 9 bổ sung và 2 xóa
  1. 6 0
      services/chat/Gruntfile.coffee
  2. 3 2
      services/chat/package.json

+ 6 - 0
services/chat/Gruntfile.coffee

@@ -2,6 +2,11 @@ module.exports = (grunt) ->
 
 	# Project configuration.
 	grunt.initConfig
+		forever:
+			app:
+				options:
+					index: "app.js"
+
 		execute:
 			app:
 				src: "app.js"
@@ -134,6 +139,7 @@ module.exports = (grunt) ->
 	grunt.loadNpmTasks 'grunt-plato'
 	grunt.loadNpmTasks 'grunt-execute'
 	grunt.loadNpmTasks 'grunt-bunyan'
+	grunt.loadNpmTasks 'grunt-forever'
 	
 
 	grunt.registerTask 'compile', ['clean',  'copy', 'coffee', 'less', 'jade', 'requirejs']

+ 3 - 2
services/chat/package.json

@@ -31,12 +31,13 @@
     "grunt-contrib-requirejs": "~0.4.1",
     "grunt-contrib-uglify": "~0.2.7",
     "grunt-contrib-watch": "~0.5.3",
-    "grunt-requirejs": "~0.4.0",
-    "grunt-mocha-test": "~0.8.0",
     "grunt-execute": "^0.2.2",
+    "grunt-forever": "^0.4.7",
+    "grunt-mocha-test": "~0.8.0",
     "grunt-nodemon": "~0.1.2",
     "grunt-notify": "~0.2.16",
     "grunt-plato": "~0.2.1",
+    "grunt-requirejs": "~0.4.0",
     "sandboxed-module": "",
     "sinon": "",
     "timekeeper": ""