Fix Gruntfile.js created by createproject.sh.
Project: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/commit/06150bc4 Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/06150bc4 Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/06150bc4 Branch: refs/heads/master Commit: 06150bc4e9a56a8a433e975c37e04ea1c9eef0ad Parents: f93ad59 Author: Andrew Grieve <[email protected]> Authored: Wed Oct 23 21:42:34 2013 -0400 Committer: Andrew Grieve <[email protected]> Committed: Wed Oct 23 21:55:18 2013 -0400 ---------------------------------------------------------------------- createproject.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/06150bc4/createproject.sh ---------------------------------------------------------------------- diff --git a/createproject.sh b/createproject.sh index 8b5e084..531e5c9 100755 --- a/createproject.sh +++ b/createproject.sh @@ -8,19 +8,19 @@ cd CordovaAppHarness echo ' -var cordova = require('../../cordova-cli/cordova'); +var cordova = require("../../cordova-cli/cordova"); module.exports = function(grunt) { // Simple config to run jshint any time a file is added, changed or deleted grunt.initConfig({ watch: { - files: ['www/**'], - tasks: ['prepare'], + files: ["www/**"], + tasks: ["prepare"], }, }); - grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks("grunt-contrib-watch"); - grunt.registerTask('prepare', 'Runs cdv prepare', function() { + grunt.registerTask("prepare", "Runs cdv prepare", function() { var done = this.async(); cordova.prepare(function(e) { done(!e); @@ -28,7 +28,7 @@ module.exports = function(grunt) { }); // Default task(s). - grunt.registerTask('default', ['watch']); + grunt.registerTask("default", ["watch"]); }; ' > Gruntfile.js mkdir node_modules @@ -45,6 +45,7 @@ $CORDOVA plugin add ../../../BarcodeScanner # https://github.com/wildabeast/Barc $CORDOVA plugin add ../../cordova-plugin-file $CORDOVA plugin add ../../cordova-plugin-file-transfer $CORDOVA plugin add ../../cordova-labs/file-extras +$CORDOVA plugin add ../../cordova-plugin-device # Not used by harness, but used by mobile-spec. exit 0
