cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: Add a script to create the project.
Date Fri, 04 Oct 2013 19:01:41 GMT
Updated Branches:
  refs/heads/master a49a7a9da -> c46221fc0


Add a script to create the project.


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/c46221fc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/c46221fc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/c46221fc

Branch: refs/heads/master
Commit: c46221fc016e919e62efae38d5fd92435ac66fad
Parents: a49a7a9
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Oct 4 15:01:13 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Oct 4 15:01:13 2013 -0400

----------------------------------------------------------------------
 createproject.sh | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/c46221fc/createproject.sh
----------------------------------------------------------------------
diff --git a/createproject.sh b/createproject.sh
new file mode 100755
index 0000000..b386bc2
--- /dev/null
+++ b/createproject.sh
@@ -0,0 +1,54 @@
+#!/bin/bash
+
+CORDOVA=${CORDOVA-cordova}
+
+set -x
+$CORDOVA create CordovaAppHarness org.apache.appharness CordovaAppHarness
+cd CordovaAppHarness
+
+
+echo '
+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'],
+    },
+  });
+  grunt.loadNpmTasks('grunt-contrib-watch');
+
+  grunt.registerTask('prepare', 'Runs cdv prepare', function() {
+    cordova.prepare();
+  });
+
+  // Default task(s).
+  grunt.registerTask('default', ['watch']);
+};
+' > Gruntfile.js
+mkdir node_modules
+npm install grunt grunt-contrib-watch
+
+rm -r www
+ln -s ../www www
+$CORDOVA platform add ios
+../../cordova-ios/bin/update_cordova_subproject platforms/ios/CordovaAppHarness.xcodeproj
+
+$CORDOVA plugin add ../../../mobile_chrome_apps/AppBundle
+$CORDOVA plugin add ../../../mobile_chrome_apps/zip
+$CORDOVA plugin add ../../../BarcodeScanner # https://github.com/wildabeast/BarcodeScanner.git
+$CORDOVA plugin add ../../cordova-plugin-file
+$CORDOVA plugin add ../../cordova-plugin-file-transfer
+
+
+exit 0
+
+# optional plugins
+for l in ../cordova-plugin-* ; do
+  $CORDOVA plugin add "$l"
+done
+
+
+


Mime
View raw message