{"_id":"590a04f5ed80861900cbc771","__v":0,"parentDoc":null,"version":{"_id":"590a04f2ed80861900cbc737","project":"55b2d5baa74a380d00e290c4","__v":4,"createdAt":"2017-05-03T16:27:30.085Z","releaseDate":"2017-05-03T16:27:30.085Z","categories":["590a04f3ed80861900cbc738","590a04f3ed80861900cbc739","590a04f3ed80861900cbc73a","590a04f3ed80861900cbc73b","590a04f3ed80861900cbc73c","590a04f3ed80861900cbc73d","590a04f3ed80861900cbc73e","590a04f3ed80861900cbc73f","590a04f3ed80861900cbc740","590a04f3ed80861900cbc741","590a04f3ed80861900cbc742","590a04f3ed80861900cbc743","590a04f3ed80861900cbc744","590a04f3ed80861900cbc745","590a04f3ed80861900cbc746","590a04f3ed80861900cbc747","590a04f3ed80861900cbc748","590a04f3ed80861900cbc749","590a04f3ed80861900cbc74a","590a04f3ed80861900cbc74b","590a04f3ed80861900cbc74c","590a04f3ed80861900cbc74d","59124949de13f61900336a7a","5914b04e7c2c552d008b7104","5914b47242c6a22300b9dc20"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"7.0.0","version":"7"},"category":{"_id":"5914b04e7c2c552d008b7104","project":"55b2d5baa74a380d00e290c4","version":"590a04f2ed80861900cbc737","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-05-11T18:41:18.682Z","from_sync":false,"order":9,"slug":"cordova-ionic","title":"Cordova / Ionic"},"project":"55b2d5baa74a380d00e290c4","user":"55b2d5626862a10d00887af9","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-29T18:04:48.690Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"Buddybuild natively supports Cordova / Ionic apps - for both iOS and Android.\n\nThere are three steps to make sure that your Cordova / Ionic project is ready to onboard onto buddybuild.\n\n1. The **\"config.xml\"** file is checked into your repository\n2. The **\"package.json\"** file is checked into your repository\n3. The **\"www\"** directory is checked into your repository\n\nAfter you've confirmed that both of those conditions have been meet, you're ready to add them to buddybuild!\n\nInstructions for how to add apps to buddybuild can be found here:\n[Sign up with buddybuild](doc:selecting-an-app)\n\n**Note:** You'll need to add each platform as a separate app in buddybuild.\n\n###Does your app require custom tasks?\n\nIf 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.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n\\t\\\"scripts\\\" : {\\n    \\\"postinstall\\\" : \\\"gulp sass build --force-build\\\"\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"package.json\"\n    }\n  ]\n}\n[/block]\nThere's also a hook to do any further configuration in the midst of us running our cordova workflow.\nBy adding a \"buddybuild_midcordova.sh\" script, you can do arbitrary stuff such as gulp tasks etc. before we start adding your platform and generating resources.","excerpt":"","slug":"adding-cordova-ionic-apps","type":"basic","title":"Cordova / Ionic Setup"}

Cordova / Ionic Setup


Buddybuild natively supports Cordova / Ionic apps - for both iOS and Android. 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 meet, you're ready to add them to buddybuild! Instructions for how to add apps to buddybuild can be found here: [Sign up with buddybuild](doc:selecting-an-app) **Note:** You'll 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. [block:code] { "codes": [ { "code": "{\n\t\"scripts\" : {\n \"postinstall\" : \"gulp sass build --force-build\"\n }\n}", "language": "json", "name": "package.json" } ] } [/block] 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 do arbitrary stuff such as gulp tasks etc. before we start adding your platform and generating resources.