Skip to content

DBProductions/grunt-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-sample

Example or skeleton for using Grunt.
As default Grunt runs the following tasks:
clean, csslint, jshint, jscs, jasmine, uglify, release, yuidoc, compress

Adjust package.json to your needs and edit Gruntfile.js when needed.

Grunt Homepage

Getting started

Installing the command line interface.
npm install -g grunt-cli

  1. Download or clone repository
  2. inside of the directory run npm install to install the dependencies
  3. run grunt

git Hook

The example use grunt-githooks and have a test task defined which runs jshint, jscs.
To activate the hook run grunt githooks, then every commit will run the test task before.

Travis CI

The continuous integration service is monitoring this repository: Link

Build Status

Jenkins

Using the example as Jenkins job, simple run a shell execution when dependencies are installed.

#!/bin/bash

export PATH=/usr/local/bin:$PATH;

git clone https://github.com/DBProductions/grunt-sample.git .
npm install
grunt --verbose

For diplaying the results, following Plugins are useful.

  • Checkstyle Plug-in
  • Cobertura Plugin

Feedback

Star this repo if you found it useful. Use the github issue tracker to give feedback on this repo.

About

Grunt task runner example

Resources

Stars

Watchers

Forks

Packages

No packages published