This is a demonstration of using Tenon API as a Grunt task
HTML CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.bowerrc
.editorconfig
.gitattributes
.gitignore
.jshintrc
.tenonrcSAMPLE
.travis.yml
Gruntfile.js
README.md
bower.json
package.json

README.md

Grunt Tenon Demo

NOTE: This is supposed to say "Build Error", because that's what it demonstrates.

Build Status

Get a Tenon.io account before continuing

If you do not already have an account on Tenon.io, you need one to use this. Head over to https://tenon.io/register.php.

Once you're registered and confirmed, get your API key at http://tenon.io/apikey.php

What this is

This is a demonstration of using Tenon as a Grunt task. It uses the grunt-tenon-client to test a folder of HTML files using Tenon API and using Tenon in a watch task. It also demonstrates using grunt-githooks to run the tenon task on commit.

It also demonstrates using Tenon in a Continuous Integration Scenario, using Travis (view sample output at: https://travis-ci.org/tenon-io/grunt-tenon-demo/). Note: When viewing the Travis-CI output, the build fails because that's exactly what you want in this case. The Grunt Tenon task is specifically designed to exit if errors are found.

Explore

Take a bit of time to explore the Gruntfile and .tenonrc file to see how the options can be used for your purposes.

Don't forget to also Read The Fine Manual for the full range of API parameters!