UNPKG

jqb-ko-component

Version:

KnockoutJS component registration utility

60 lines (45 loc) 757 B
'use strict'; module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON("package.json"), // test runner suite 'mocha-chai-sinon': { options: { ui: 'bdd' }, build: { src: ['./specs/**/*.spec.js'], options: { reporter: 'spec', require: 'coverage/blanket' } } }, watch: { build: { files: [ './*.js', './specs/**/*.js' ], tasks: [ 'default' ] } } }); /** * Load Dependencies */ grunt.loadNpmTasks("grunt-mocha-chai-sinon"); grunt.loadNpmTasks("grunt-contrib-watch"); /** * Register Tasks */ grunt.registerTask('default', [ 'mocha-chai-sinon:build' ]); grunt.registerTask('start', [ 'default', 'watch:build' ]); };