cordova - How to make a Phonegap plugins installer batch file? -


I am trying to develop a batch file that runs a lot of "phonegap local plugin add" type When I want to share my app, automate the PhoneGap plug-in installation process.

I found the following solutions developed in Linux:

  #! / Usr / bin / env node / / this hook installs all your plugins / adds your plug-ins to this list - either the // identifier, file system location // or the URL var plugin list = ["org.apache. Cordova.device "," org.apache.cordova.device-motion "," org.apache.cordova.device- orientation "," org.apache.cordova.geolocation "," https://github.com/chrisekelley/ AppPreferences / "]; // no need to configure WinFSI = require ('fs'); Var path = requirement ('path'); var sys = Required ('sys') var exec = ('child_process'). Exec; Function (error, standout, stderr) {sys.puts (stdout)} pluginlist.forEach (function (plug) {exec ("add cordova plugin", puts plug);});   

I am trying to develop this code in a Windows batch file. Can anyone tell me how can I do this?

This script may be closed with a POV file:

  @ Echo for %% ("org.apache.cordova.device" "org.apache.cordova.device-motion" "org.apache.cordova.device- orientation" "org .apache.cordova.geolocation" "https: //github.com/chrisekelley/AppPreferences/ ") Add the Cordova plugin %% A    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -