Cordova 5.0.0: Which files should I commit to git?

后端 未结 7 848
南方客
南方客 2021-01-30 02:47

I use Cordova 5.0.0 and i have the following project structure:

MyProject
    - hooks
    - platforms
    - plugins
    - resources
    - www
    - config.xml
         


        
7条回答
  •  独厮守ぢ
    2021-01-30 03:26

    You can save platform and plugin afterwards by using following commands.

    platform mass saving

    $ cordova platform save
    

    Plugins mass saving

    $ cordova plugin save
    

    Kindly note that there is no -- in above commands

    One More thing, after fetching repo on another machine you just run following command to generate and fetch plugins and platforms automatically

    $ cordova prepare
    

    For more reference visit the links below. https://cordova.apache.org/docs/en/latest/platform_plugin_versioning_ref/#mass-saving-platforms-on-an-existing-project

    Cordova Tip: Always refer to official docs before before anything else to get the right solution.

提交回复
热议问题