Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/c3d2
Droid factory - bootstrap a HTML5 android application quickly using a phonegap template
https://github.com/binocarlos/c3d2
Last synced: 10 days ago
JSON representation
Droid factory - bootstrap a HTML5 android application quickly using a phonegap template
- Host: GitHub
- URL: https://github.com/binocarlos/c3d2
- Owner: binocarlos
- Created: 2013-12-18T00:09:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-18T13:20:05.000Z (almost 11 years ago)
- Last Synced: 2024-10-07T15:06:27.728Z (about 1 month ago)
- Language: JavaScript
- Size: 1.41 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
c3d2
====Droid factory - bootstrap a HTML5 android application quickly using a phonegap template
## install
```
$ npm install c3d2 -g
```## examples
You can create android templates from within your node app:
```js
var C3D2 = require('c3d2');var factory = new C3D2({
dir:'/output/folder',
name:'MyApp',
title:'My App',
package:'com.my.app'
})factory.create(function(){
factory.inject_assets('/my/html5/app/www', function(){
console.log('we have a new droid!');
})
})
```Or you can use the cli.
```
$ c3d2 create /srv/testapp -n Test -t "Test App" -p com.test.test -a /srv/html5app/www
```This will create a new app in /srv/testapp and will inject /srv/html5app/www
```
Usage: c3d2 [options] [command]Commands:
create [dir] convert the big images to small ones
*Options:
-h, --help output usage information
-d, --dir where to create the android app
-a, --assets where to copy the HTML5 app from
-n, --name the folder name of the app
-t, --title the title of the app
-p, --package the package name of the app
-V, --version output the version number
```## licence
MIT