You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
# global module:false
|
|
|
|
|
|
|
|
module.exports = (grunt) ->
|
|
|
|
|
|
|
|
grunt.initConfig
|
|
|
|
pkg: grunt.file.readJSON 'package.json'
|
|
|
|
meta:
|
|
|
|
test: 'test'
|
|
|
|
karma:
|
|
|
|
unit: configFile: 'test/unit.karma.coffee'
|
|
|
|
e2e: configFile: 'test/e2e.karma.coffee'
|
|
|
|
unit_ci:
|
|
|
|
configFile: 'test/unit.karma.coffee'
|
|
|
|
singleRun: true
|
|
|
|
browsers: ['PhantomJS']
|
|
|
|
e2e_ci:
|
|
|
|
configFile: 'test/e2e.karma.coffee'
|
|
|
|
singleRun: true
|
|
|
|
browsers: ['PhantomJS']
|
|
|
|
jshint:
|
|
|
|
src: ['angular-contenteditable.js']
|
|
|
|
options:
|
|
|
|
asi: true
|
|
|
|
|
|
|
|
require('matchdep').filterDev('grunt-*').forEach grunt.loadNpmTasks
|
|
|
|
|
|
|
|
grunt.registerTask 'test', ['karma:e2e_ci']
|
|
|
|
grunt.registerTask 'lint', ['jshint']
|
|
|
|
grunt.registerTask 'default', ['lint' , 'test']
|