Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: develop
Fetching contributors…

Cannot retrieve contributors at this time

97 lines (80 sloc) 2.481 kb
#
# * grunt-blitz
# * https://github.com/CDSMOpen/blitzer_poc
# *
# * Copyright (c) 2013 Darren Wallace
# * Licensed under the MIT license.
#
"use strict"
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
jshint:
all: ["Gruntfile.js", "tasks/*.js", "<%= nodeunit.tests %>"]
options:
jshintrc: ".jshintrc"
watch:
mochacli:
files: ["test/**/*test.coffee"]
tasks: ["mochacli:spec"]
compile:
files: ["task_src/**/*.coffee", "src/**/*.coffee"]
tasks: ["coffee:compile", "mochacli:spec"]
# Before generating any new files, remove any previously-created files.
clean:
tests: ["tmp", "logs"]
coffee:
compile:
files: [
expand: true
cwd: 'task_src'
src: ['**/*.coffee']
dest: 'tasks'
ext: '.js'
,
expand: true
cwd: 'src'
src: ['**/*.coffee']
dest: 'lib'
ext: '.js'
]
mochacli:
options:
compilers: ['coffee:coffee-script']
reporter: 'spec'
require: ['test/test_helpers.coffee']
growl: true
files: 'test/**/*test.coffee'
spec:
options:
reporter: 'spec'
nyan:
options:
reporter: 'nyan'
build:
options:
reporter: 'teamcity'
# Configuration to be run (and then tested).
blitz:
options:
logPath: './logs/blitztest.log'
sprint:
options:
# blitzid: 'account@mail.co.uk' # your account email with blitz.io
# blitzkey: 'your-blitz-key' # from your blitz.io account
blitz: '-r ireland http://www.bbc.co.uk'
# Actually load this plugin's task(s).
grunt.loadTasks "tasks"
# These plugins provide necessary tasks.
grunt.loadNpmTasks "grunt-contrib-jshint"
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-mocha-cli"
grunt.loadNpmTasks "grunt-contrib-watch"
# Whenever the "test" task is run, first clean the "tmp" dir, then run this
# plugin's task(s), then test the result.
grunt.registerTask "test", ["clean", "coffee", "mochacli:spec"]
grunt.registerTask "test-build", ["clean", "coffee", "mochacli:build"]
grunt.registerTask "build", ["test"]
# By default, lint and run all tests.
grunt.registerTask "default", ["test", "watch"]
Jump to Line
Something went wrong with that request. Please try again.