[BUILD TOOL] cordova-tasks 0.1.1 released on NPM

9 views
Skip to first unread message

Kerri Shotts

unread,
Mar 27, 2015, 6:53:50 PM3/27/15
to phon...@googlegroups.com
I've been using Gulp and Cordova together for awhile now, and I wanted a way to treat the Cordova project itself as a build artifact. To do that, I wanted my Gulp tasks to create (and destroy) the Cordova project as needed, add platforms, plugins, etc. 

The fruits of that labor are in cordova-tasks 0.1.1, available from NPM (https://www.npmjs.com/package/cordova-tasks) or GitHub (https://github.com/kerrishotts/cordova-tasks). It's in no way complete, and it should be viewed as extremely experimental (and probably temperamental too), but it's a start, and "it works for me" (those words are scary, scary, scary!), and I thought I'd share it with the world. :-)

> Cordova brass: if you want me to change the name, I'm happy to do so. I just named it this way, since it seems to reflect what it's for. I probably should have used gulp-cordova-tasks, but the goal is to make this a bit more generic (so as to not require Gulp). It's just not there /yet/. ;-)

It assumes your project is structured something like this:

$PROJECT-ROOT/
    package.json
    gulpfile.js
    src/
        config.xml (template)
        res (icons, splashes)
        www (your code)
    blank/   (blank template instead of using hello world)
        www 

You can then create Gulp tasks to take useful information out of your package.json file and create a Cordova project in a "build" directory. Furthermore, you can create gulp tasks to build, emulate, and run the resulting project. 

If you like this kind of thing, feel free to use it. If you find bugs, you're welcome to submit an issue or create a PR. I also plan on filling out its functionality a bit and making it more robust and less temperamental.

Oh: be careful with it. Being 0.1.1, it's apt to do something horrible if you say something wrong whilst in its presence. Here be dragons! ;-)


Reply all
Reply to author
Forward
0 new messages