grunt plugins for Tizen apps, creating zip files, and running mocha tests

The short version

I wrote some grunt plugins for managing Tizen application development and doing related stuff:

  • grunt-tizen: For pushing packages (or other files) to a Tizen device, installing/uninstalling them, and starting/stopping applications (via sdb).
  • grunt-zipup: For creating zip files with customisable, template-based filenames; as Tizen web apps are just zip files with a wgt suffix, it can also be used to create those.
  • grunt-mochaccino: For running mocha tests within a grunt build, using the mocha command line rather than the mocha API. This was developed for unit testing the above plugins, but can be used to run mocha tests for any project.

They are all available from github at the links above, or can be installed via npm (instructions in the READMEs).

They are all released under the Apache v2 license.

The long version

I've been working on Tizen-related applications (most notably some of the 01.org web apps) for a few months. (The Slider Puzzle I rewrote should work in very recent Firefox and Chrome.)

One aim was to get these applications to run on Tizen devices, partly as they are included as samples in the Tizen SDK. My colleagues have done some good work on the SDK, but, unfortunately, it doesn't yet support the Linux distribution I use (Fedora, currently version 17). So I had a requirement to install web apps on Tizen, but without the possibility of using the SDK.

Fortunately, one of the key tools for interacting with a Tizen device is sdb (Smart Development Bridge), which is a fork of the Android adb tool. It works over a network connection between the device and a developer machine, usually over a USB cable, enabling file transfer between the two and access to a shell on the device. sdb is very easy to build on Linux, so it wasn't long before I had a way to push web app packages to my device, get a command line on the same device, then use the Tizen package tools (wrt-installer and pkgcmd) to install the package, then running it in debug mode and remotely debugging it (via wrt-launcher).

As with all these things, I soon got bored with entering the same commands over and over, so I wrote some bash scripts to automate pushing the package, starting the shell, executing the command, and opening a debug session. One of my colleagues started using the same scripts, so I made them more portable and robust.

Alongside this, I was using the venerable grunt to minify my JavaScript/CSS/images etc. But this meant two build tools (bash scripts + grunt) in use at once, which would never do. So I started integrating the bash scripts with grunt, and gradually replacing calls to command line programs where possible with grunt plugins.

The result is the three plugins mentioned at the start of this post. They've been tested on Fedora Linux and Windows 7, and are hopefully fairly easy to use (I spent quite a bit of time on documentation).

Please try them, and, if you're so inclined, contribute via github (pull requests and issues).

Comments

you do have a quite

you do have a quite excellent internet site right here! must you help to make a few acquire blogposts with our internet site? http://www.herbalalami.co.id

nexus

Running that throughout debug mode along Modeling Agencies in Tampa remotely debugging that (via wrt-launcher).

I haven't been deleting

I haven't been deleting thousands of comment spams a week on my blog for a long time.auto loan calculator

Guar protein ffer a wide

Guar protein ffer a wide selection of products for your specific requirements. Established in the year 2008, we are one of the leading Manufacturer, Exporter and Supplier of Compound Guar Protein Meal Feeds and Poultry Feeds.
Guar Meal korma
Microlam korma
Guar korma exporter

Even the prettiest websites

Even the prettiest websites online aren’t the most successful ones. It takes more than a pretty site with bells and whistles to make a website successful. That is where Syracuse Web Pages comes in, located in Syracuse NY we can offer you a great looking site but one that is easy to use and easy to navigate.
Syracuse NY Wordpress service
Graphic design Syracuse NY

This plugin is awesome .I

This plugin is awesome .I want to use for my website Dtunes . Will you share wordpress templates free ?
Thanks

As along many these

As along many these creatures, I later got bored along entering the unchanging sways excess plus excess, so I wrote several swat penmanships to automate pushing the box, starting the husk, executing the domineer, plus slit a debug term. get a free quote

I am researching this topic

I am researching this topic for use in a future business I am thinking about starting. Thank you for this information, it has been educational and helpful to me.
attorney reviews

Specialist hotels seek out

Specialist hotels seek out to join the surroundings of luxury proposed by global lodge organisations while using personalised service furnished by its smaller sized cousins. From the outset of the actual global tough economy in 2008, the take a trip industry - which got experienced buoyant growth in the boom several years - braced itself for the downturn. asia boutique resorts

Your article tells me you

Your article tells me you must have a lot of background in this topic. Can you direct me to other articles about this? I will recommend this article to my friends as well. Thanks
desk chairs

I am doing a report on this

I am doing a report on this subject. Your article is full of really useful information. I will make sure to come back to check out your posts for my next report. Cheers
how to be a better student

A very informative article

You did nice work your post is awesome its increase my knowledge.the post is best i can never read before this type of post nice sharing. keep it up
serum rambut
Pembesar Payudara
terapi anak

I really appreciate it so

I really appreciate it so much. It was a very good and interesting to say the least article. Thank you! I work for a design company and I really learned a lot from this great site. - Rabbi Binyomin Lisbon

nexus

I’m great fired up to help figure out it to help anyone. Printed Circuit Board Supplier

Really a very good read and

Really a very good read and very motivating.
Small kitchen remodeling
Bathroom design rochester NY

Ce plug-in est bon, il

Ce plug-in est bon, il semble correct.
- replique montres

Are you Sure about that?

I don't think you are completely true, are you sure?
constipation

Thanks for the great

Thanks for the great plugin
- casing hp
- honda mobilio

Indeed great!

i activated it on my blog

nexus

One of my colleagues started using the same scripts, Nulled wordpress themes I made them more portable and robust.

Cheers therefore luxurious

Cheers therefore luxurious together with that great badly informed entail terrain. I’m great fired up to help figure out it to help anyone. powered essays

Great job Elliot... thanks

Great job Elliot... thanks for sharing this grunt plugins.

Regards,
- Kendaraan : Mobil Sedan Corolla
- Marketing : Cara Meningkatkan Penjualan Online

As part of a college thesis

As part of a college thesis for research I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article. Your article helped me a lot.
free vpn service

good job

Thank your for share. I hope you are going to share once more.

- The Ultimate Herpes Protocol Review
- blog health reviews online
This opinion is certainly one for the real men crave affection. - capture his heart review why a sense of "love and affection" a woman is higher than in men? Third, what is the mystery of the woman, ...

This method

This method Old School New body will keep the leptin (a hormone that acts on the brain to control food intake Old School New body book and body weight) levels at optimal. The Venus Factor Book is undoubtedly a real deal when it comes to helping people The Venus Factor , when there is itching or tingling in the area where the sores Old School New Body Review generally appear. Having a baby The Pregnancy Miracle can be expensive. But if you’re on a low income The Pregnancy Miracle Book there are benefits available. You could be eligible for a grant to buy baby things, The Pregnancy Miracle Review and vouchers to help you and your baby eat healthily. particularly women, The virus can also be passed The Ultimate Herpes Protocol . during the preactive state crave affection. -

Incredible!

Seem to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is great blog.
Serum : serum rambut
Payudara: pembesar payudara

nexus

This is a really good way to preserve the energy and I will try to use it! Modeling Agencies in Tampa