     .pipe $.replace 'href=\"elements/elements.html\"', 'href=\"elements/elements.vulcanized.html\"'
     .pipe gulp.dest 'dist/'
 
+gulp.task 'clean-phonegap', (cb) ->
+  del(
+    [ '../aozora-phonegap-build/*', '!../aozora-phonegap-build/.gitignore', '!../aozora-phonegap-build/README.md', '!../aozora-phonegap-build/LICENSE' ],
+    {
+      force: true
+    },
+    cb)
+
+gulp.task 'copy-phonegap', ->
+  gulp
+    .src [
+      'dist/**/*',
+      'config.xml'
+    ]
+    .pipe gulp.dest '../aozora-phonegap-build'
+
 gulp.task 'build', (cb) ->
   runSequence(
     'clean',


gulp.task 'copy', ['copy-dependencies', 'copy-resources-content', 'copy-others']
gulp.task 'copy-dependencies', ->
  gulp
    .src paths.dependencies
    .pipe gulp.dest 'dist/bower_components'

    cb
  )

gulp.task 'build-phonegap', (cb) ->
  runSequence [ 'build', 'clean-phonegap' ], 'copy-phonegap'

gulp.task 'default', [ 'build' ]
