UNPKG

ng-describe

Version:

Convenient BDD specs for Angular

59 lines (50 loc) 1.14 kB
module.exports = function(grunt) { 'use strict'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { all: [ 'ng-describe.js' ], specs: ['test/*-spec.js'], options: { jshintrc: '.jshintrc' } }, sync: { all: { options: { sync: ['author', 'name', 'version', 'private', 'license', 'keywords', 'homepage'], } } }, readme: { options: { readme: './docs/README.tmpl.md', docs: '.', templates: './docs' } }, karma: { unit: { configFile: 'test/karma.conf.js' } }, watch: { options: { atBegin: true }, all: { files: ['*.js', 'test/*.js', 'package.json'], tasks: ['jshint', 'test'] } } }); var plugins = require('matchdep').filterDev('grunt-*'); plugins.forEach(grunt.loadNpmTasks); grunt.registerTask('test', ['karma']); grunt.registerTask('doc', ['readme']); grunt.registerTask('default', ['nice-package', 'deps-ok', 'sync', 'jshint', 'test', 'doc']); };