An example project with dsimard/grunt-angular-phonegap
-
Clone this project
git clone https://github.com/dsimard/grunt-angular-phonegap-example.git && cd grunt-angular-phonegap-example/
-
Install npm modules
npm install
-
Install bower dependencies
bower install
-
Add a mobile platform
cordova platform add android
-
Build the project
grunt phonegap:build
-
Start an emulator
grunt phonegap:emulate
Here are the commits from the different steps when I started the project.
Create phonegap project : 0426f3b
User latest phonegap version : 12af00d
Initialize angular application : 58bf8bb
You will be ask to overwrite .gitignore
. Do not accept. Instead, press d
for difference
and copy the added lines in your clipboard to paste later. Then press n
for no.
Add grunt-angular-phonegap
to the app : c943348
Load npm tasks (grunt.loadNpmTasks("grunt-angular-phonegap");
) : fb931bc
Add a platform : cordova platform add [platform]
(no commit)
grunt phonegap:check
(no commit)
grunt phonegap:build
grunt phonegap:emulate