Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.31 KB

File metadata and controls

46 lines (34 loc) · 1.31 KB
titletext description
Native support for Cordova / Ionic apps
Buddybuild supports Cordova / Ionic apps.

Cordova / Ionic Setup

Buddybuild natively supports Cordova / Ionic apps.

There are three steps to make sure that your Cordova / Ionic project is ready to onboard onto buddybuild.

  1. The config.xml file is checked into your repository

  2. The package.json file is checked into your repository

  3. The www directory is checked into your repository

After you’ve confirmed that both of those conditions have been met, you’re ready to add them to buddybuild!

Note
You need to add each platform as a separate app in buddybuild.

Does your app require custom tasks?

If you have custom tasks (i.e gulp, webpack) that are required to correctly configure or setup your Cordova / Ionic application, the recommended solution is to add a postinstall step to your package.json file.

package.json
{
  "scripts" : {
    "postinstall" : "gulp sass build --force-build"
  }
}

There’s also a hook to do any further configuration in the midst of us running our Cordova workflow. By adding a buddybuild_midcordova.sh script, you can perform arbitrary operations, such as gulp tasks etc., before we start adding your platform and generating resources.