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
    • 195
    Comment on it

    Hi,

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

     $ npm install -g generator-cordova-plugin
    

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

    $ yo cordova-plugin
    

    Following dot UI come on the screen :

     _-----_
    |       |
    |--(o)--|   .--------------------------.
    

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

    Then and following question one by one

    [?] Enter ther plugin name: Testplug
    
    [?] Enter a description: asdfs
    
    [?] Enter the plugin ID( e.g. reverse domain notaion ) com.evontech.mobile.plugin
    
    [?] 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
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: