Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to create Cordova plugin directory structure

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 215
    Comment on it

    Hi,

    Here is the steps to create cordova plugin directory structure : Install Yeoman by this command

    1. $ npm install -g generator-cordova-plugin

    then go to folder where you want that directory structure and run this command

    1. $ yo cordova-plugin

    Following dot UI come on the screen :

    1. _-----_
    2. | |
    3. |--(o)--| .--------------------------.

    --------- | Welcome to Yeoman, | ( _U_ ) | ladies and gentlemen! | /___A__\ '__________________________' | ~ | __'.___.'_ | Y

    Then and following question one by one

    1. [?] Enter ther plugin name: Testplug
    2.  
    3. [?] Enter a description: asdfs
    4.  
    5. [?] Enter the plugin ID( e.g. reverse domain notaion ) com.evontech.mobile.plugin
    6.  
    7. [?] Enter the plugin Version: 0.0.1

    Setup Complete

    Then if you want to add iOS platform then run this command: $ yo cordova-plugin:platform add iOS if want to remove then run $ yo cordova-plugin:platform remove iOS

    Now if you go in folder , you will see the complete plugin directory structure.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: