dsimard / grunt-angular-phonegap

Combine yeoman/generator-angular and phonegap
MIT License
156 stars 23 forks source link

Write a complete guide #13

Open dsimard opened 10 years ago

dsimard commented 10 years ago

Write a guide from first step to last with screenshots.

dsimard commented 10 years ago

Here are the rough steps for it :

  1. install node with nvm
  2. install the android sdk (with the infamous adb problem :#9)
  3. install grunt-angular-phonegap
  4. install a plugin (as an example)
  5. deploy on phonegap build
Pascalmh commented 10 years ago

@dsimard can you please explain how to add a phonegap plugin?

Added this into Gruntfile.js, when I grunt phonegap:build or grunt phonegap:send and look at https://build.phonegap.com/apps/MY_PHONEGAP_APPID/plugins it says "This application has no plugins".

  grunt.initConfig({

    phonegap: {
      config: {
        root: 'www',
        config: 'www/config.xml',
        cordova: '.cordova',
        path: 'phonegap',
        plugins: [
          'plugins/org.apache.cordova.camera', 'https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git'
        ],
        platforms: ['android'],
        verbose: false
      }
    },

image