Skip to content

WIP: Middleman integrated with Cordova to build hybrid apps

License

Notifications You must be signed in to change notification settings

ipepe/middleman-cordova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

middleman-cordova

WARNING! This is work in progress! Use at Your own responsibility! Middleman integrated with Cordova to build hybrid apps.

Why

Building apps with cordova is often frustrating. Many times something will break and You have to create whole cordova project from scratch. This extension for Middleman treats cordova as build tool, and whole cordova directory as artifacts. Rebuilding whole cordova project is a simple task that will be done for You by this extesion.

Middleman config.rb

activate :cordova do |cordova|
  cordova.package_id = 'com.cogibyte.devapp'
  cordova.application_name = 'DevApp'
  cordova.version = [1, Time.now.strftime('%y%m'), Time.now.strftime('%d%H%M')].join('.')
  cordova.author = { email: 'apps@cogibyte.com', href: 'cogibyte.com', name: 'CogiByte' }
  cordova.platforms = [:android, :ios]
  cordova.platform_release_arguments[:android] = '--keystore="/path" --password=password --storePassword=password --alias=alias'
  cordova.plugins = ['device', 'splashscreen']
  cordova.build_artifacts_path = 'build' # default = 'dist'
  cordova.config_xml_inside_platform[:android] = <<-XML
    <icon src="res/icon.png"/>
  XML
  cordova.config_xml_inside_platform[:ios] = <<-XML
    <icon src="res/icon-ios.png"/>
  XML
end

Middleman commands

middleman cordova run [ios|android] middleman cordova build [ios|android] middleman cordova openide [ios|android]

About

WIP: Middleman integrated with Cordova to build hybrid apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages