- npm install
- bower install
- grunt serve - starts a server and work on dev
- grunt build - creates a clean package for deployment in the dist folder
- The dev files for the app sit in the main branch
- 'grunt build' creates a version for deployment in the dist folder
- 'grunt-gh-pages' task copies the dist to gh-pages branch
- This version can be viewed at http://robertocarroll.com/barjeel-app
- Phonegap Build picks up the gh-pages branch version
- Here's a config.xml example
- Content is in the 'data' folder: https://github.com/robertocarroll/barjeel-app/tree/master/app/data
http://wiki.nsbasic.com/Submitting_to_the_iOS_App_Store
- config.xml is in the app folder and gets copied as part of the Yeoman build process
- iOS developer account
- A development certificate - ios_development.cer - install it to Keychain on your computer
- App ID - use this consistently
- Add UDID for each device you want to test on
- Provisioning profile - barjeeldevelopment.mobileprovision - bring the app together with the testing devices
- Phonegap Build - https://build.phonegap.com/apps
- "certificate" is the .p12 file
- Export
- Password
- Upload the .p12 file and the barjeeldevelopment.mobileprovision
- Unlock using the password in step 10.
To add a new device:
- In the Apple Dev, add device in devices
- Edit provisioning profile
- Add the devices and generate the provisioning profile
- Download the development certificate
- In Keychain, re-export the certificate to create the .p12 (not sure this is necessary)
- Upload the .p12 and the new provisioning profile to phonegap.build.
Upload to Diawi.com and email the link
In data/images/connect-images with the names specified in data/connect.json
- Each post needs a square image for the curator - used on connect 3.1, connect 3.2 and connect 3.3. It also needs an @2x image for retina screens.
- Each image needs a normal size and an @2x for retina screens.
- Suggest naming 1-1_, 1-2_, 2-1_, 2-2_ etc so it groups the images in order of posts and images(see examples in folder)
- Max-width is currently set to 520px for the normal and 1020px for the retina to avoid distortion.
In data/images/play-images with the names specified in data/questions.json
- Each question has two images.
- Each images needs a square version and a @2x for retina screens.
- Each image needs a normal (uncropped version) and a @2x for retina screens.
- Git doesn't like .svg files sometimes and gets confused about line endings
- use
cmd+shift+P
thenLine Endings Unify
- enter svg as the file extension
- the plugin will convert it to the correct line ending