From 99fd08da3cc2a8ff6a2eda5adc0eff4a8a69c3cc Mon Sep 17 00:00:00 2001 From: raphaelluchini Date: Fri, 21 Nov 2014 19:05:03 -0200 Subject: [PATCH] grunt express added.Use "grunt server" to test the app in your browser --- Gruntfile.js | 14 ++++++++++++++ package.json | 9 ++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index c0d8daf..9ddd0a8 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -81,12 +81,26 @@ module.exports = function(grunt) { verbose: false }, }, + express: { + options: { + // Override defaults here + }, + dev: { + options: { + background:false, + script: 'server_local.js' + } + }, + } }); + + grunt.loadNpmTasks('grunt-express-server'); grunt.loadNpmTasks('grunt-sync'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-samsungstv-packager'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-requirejs'); + grunt.registerTask('server', ['express:dev']); grunt.registerTask('deploy', ['samsung']); grunt.registerTask('build', ['jshint', 'requirejs:dist', 'sync:assets', 'sync:src']); grunt.registerTask('default', ['build']); diff --git a/package.json b/package.json index 1ca303a..fcaa2c8 100755 --- a/package.json +++ b/package.json @@ -21,17 +21,16 @@ "url": "https://github.com/BoilerplateMVC/Marionette-Require-Boilerplate/blob/master/LICENSE-MIT" } ], - "dependencies": { - - }, + "dependencies": {}, "devDependencies": { - "grunt-sync": "^0.2.1", "express": "3.x", "grunt": "~0.4.1", "grunt-contrib-jshint": "~0.10.0", "grunt-contrib-requirejs": "~0.4.0", "grunt-contrib-watch": "^0.6.1", - "grunt-samsungstv-packager": "~0.0.4" + "grunt-express-server": "^0.4.19", + "grunt-samsungstv-packager": "~0.0.4", + "grunt-sync": "^0.2.1" }, "keywords": [ "Marionette.js",