All Projects → iamricard → gulp-cordova

iamricard / gulp-cordova

Licence: MIT license
[UNMAINTAINED] Very simple plugin to run cordova commands with a simple interface from gulp

Programming Languages

javascript
184084 projects - #8 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to gulp-cordova

generator-angular-pro
AngularJS project generator for scalable, enterprise-grade web and mobile applications
Stars: ✭ 43 (+86.96%)
Mutual labels:  gulp, cordova
code-line-daily
A line of code of the day.
Stars: ✭ 17 (-26.09%)
Mutual labels:  gulp
WP-Gulp-Starter
A starter kit for developing WordPress themes and plugins with Gulp workflow.
Stars: ✭ 26 (+13.04%)
Mutual labels:  gulp
queiroz.js
JavaScript Extension for Dimep Kairos
Stars: ✭ 47 (+104.35%)
Mutual labels:  gulp
gulp-px2rem
This is a gulp plugin for node-px2rem.
Stars: ✭ 19 (-17.39%)
Mutual labels:  gulp
mpdjs
Music Player Daemon client written in javascript
Stars: ✭ 26 (+13.04%)
Mutual labels:  cordova
cordova-plugin-x5-tbs
Use Tencent Browser Service(TBS) instead of System WebView for Cordova App
Stars: ✭ 65 (+182.61%)
Mutual labels:  cordova
generator-sf
Yeoman generator that scaffolds out a Symfony PHP app including Browsersync, various CSS preprocessors, jspm, webpack, browserify and Service Worker
Stars: ✭ 14 (-39.13%)
Mutual labels:  gulp
larasar
Laravel + Quasar Framework
Stars: ✭ 77 (+234.78%)
Mutual labels:  cordova
gulp-pug-inheritance
Only build affected files when modify a Pug file.
Stars: ✭ 16 (-30.43%)
Mutual labels:  gulp
cordova-gmv-barcode-scanner
A Cordova barcode scanning plugin based on the Google Mobile Vision library for iOS & Android.
Stars: ✭ 48 (+108.7%)
Mutual labels:  cordova
bymattlee-11ty-starter
A starter boilerplate powered by 11ty, Sanity, Gulp, Tailwind CSS, rollup.js, Alpine.js and Highway.
Stars: ✭ 27 (+17.39%)
Mutual labels:  gulp
cordova-plugin-zeep
Zip compression/decompression for the cordova/phonegap platform
Stars: ✭ 27 (+17.39%)
Mutual labels:  cordova
ember-cordova
CLI for Ember/Cordova/Crosswalk Applications
Stars: ✭ 16 (-30.43%)
Mutual labels:  cordova
campus-leaflets
校园传单是一个使用 Node.js、MongoDB、Koa、EJS、MDL、Less、RequireJS 和 Gulp 开发的 Node 应用程序。
Stars: ✭ 16 (-30.43%)
Mutual labels:  gulp
cordova-plugin-background-upload
Cordova plugin for background upload
Stars: ✭ 47 (+104.35%)
Mutual labels:  cordova
web-starter-kit-gulp
Starter kit for automated front-end web development using Gulp, NPM, Bower, Babel, Sass, and Pug.
Stars: ✭ 35 (+52.17%)
Mutual labels:  gulp
gulp-append-prepend
➕ Simple Gulp plugin to append/prepend.
Stars: ✭ 15 (-34.78%)
Mutual labels:  gulp
animecenter
The source code for animecenter
Stars: ✭ 16 (-30.43%)
Mutual labels:  gulp
gulp-shopify-theme
Shopify theme synchronisation during development
Stars: ✭ 26 (+13.04%)
Mutual labels:  gulp

gulp-cordova

Dependency Status Gittip CircleCI

NPM

This aims to provide a very basic interface to be used in a gulp build system, bare in mind this doesn't provide much really, it's just to abstract the spawn process and the such.

I have no idea how to test this so that's why it has no tests, I would love it if anyone out there would help me out figuring out how to test this. I've written a couple of tests but I am pretty sure they are not enough, and they might not even be good. Help is still welcome!

As with many node projects, send a PR if it is accepted you're added to the repo with full-access rights. If there are any bugs open an issue and we can figure out a solution! Same thing for feature requests or any other kind of problems you might have.

Why this exists: I'm building a project with cordova and I find it cumbersome to have to go to the CLI every time and run emulate or build or whatever, so I figured I'd write a short plugin. It's useful to me, I hope you find it useful as well :) If you want to write a plugin that you think deserves this name let me know and I might free it if I agree!

Why this might be useful to you: Initialise a project without a script, instead use what you already use for the rest of your javascript projects. You could also use it in watch tasks where you want to re-run the emulate command when something specifically is updated.

API

There's two ways to use this plugin, via a JSON configuration file or just passing parameters to the cordova function. Note: If you pass commands as a param the file contents will be ignored.

cordova()

Usage example:

gulp.task('cordova:init', function() {
  gulp.src('./package.json')
    .pipe(cordova())
})

Notice I'm using package.json for demonstration purposes, but you may use any JSON file. Just make sure the file has a key cordova and that key contains an array with the command or an array of arrays for multiple commands.

file: config.json/package.json/xxx.json
{
  "cordova": [
    [
      "platform",
      "add",
      "ios",
      "android",
      "browser"
    ],
    [
      "plugin",
      "add",
      "org.apache.cordova.device",
      "org.apache.cordova.geolocation",
      "org.apache.cordova.console"
    ]
  ]
}

cordova(command, options)

command (optional)

Type: array

Values: In theory, any cordova cli command. I haven't tested all of them.

Eg:

// ...
.pipe(cordova(['plugins', 'add', 'org.apache.cordova.battery-status', 'org.apache.cordova.device-motion']))
// ...

options (optional)

verbose

Type: boolean

Default: false

cwd EXPERIMENTAL

Type: string

Default: undefined

You can use this to run the specified cordova command in a specific directory.

Run command is not supported for the time being

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].