You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/02/04 16:28:11 UTC

spec commit: Add a --crosswalk=webview flag (close #118)

Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 91d658e4b -> 40bba5de9


Add a --crosswalk=webview flag (close #118)


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/40bba5de
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/40bba5de
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/40bba5de

Branch: refs/heads/master
Commit: 40bba5de9db716ff80f23c8c71eb297de245d570
Parents: 91d658e
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Feb 4 10:27:53 2015 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Feb 4 10:27:53 2015 -0500

----------------------------------------------------------------------
 createmobilespec/createmobilespec.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/40bba5de/createmobilespec/createmobilespec.js
----------------------------------------------------------------------
diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js
index 27d1f2c..1b2ec32 100755
--- a/createmobilespec/createmobilespec.js
+++ b/createmobilespec/createmobilespec.js
@@ -124,6 +124,7 @@ var top_dir =             process.cwd() + path.sep,
                    .boolean("cprplugins").describe("cprplugins", "Adds a bunch of known-to-be-popular plugins from Cordova Plugin Regsitry.\n")
                    .boolean("plugregplugins").describe("cprplugins", "Adds a bunch of known-to-be-popular plugins from PlugReg (that are not on the CPR).\n")
                    .boolean("thirdpartyplugins").describe("thirdpartyplugins", "Alias for --telerikplugins --cprplugins --plugregplugins.\n")
+                   .string("webview").describe("webview", "Use --webview=crosswalk to install the crosswalk plugin")
                    .alias("h", "help")
                    .argv;
 
@@ -489,6 +490,10 @@ function installPlugins() {
         shelljs.exec(cli + " plugin add org.apache.cordova.test.whitelist org.apache.cordova.test.echo --searchpath " + mobile_spec_git_dir + linkPluginsFlag + browserifyFlag);
         shelljs.exec(cli + " plugin add org.apache.cordova.test-framework --searchpath " + top_dir + linkPluginsFlag + browserifyFlag);
 
+        if (argv.webview == 'crosswalk') {
+            var xwalkPluginId = fs.existsSync('cordova-crosswalk-engine') ? 'org.crosswalk.engine' : 'https://github.com/MobileChromeApps/cordova-crosswalk-engine.git';
+            shelljs.exec(cli + " plugin add " + xwalkPluginId + ' --searchpath ' + top_dir + linkPluginsFlag + browserifyFlag);
+        }
         if (argv.globalplugins) {
             shelljs.exec(cli + " plugin add " + path.join(mobile_spec_git_dir, "dependencies-plugin") + linkPluginsFlag + browserifyFlag);
         } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org