base-domain
Version:
simple module to help build Domain-Driven Design
43 lines (33 loc) • 1.12 kB
text/coffeescript
module.exports = (grunt) ->
grunt.config.init
'mocha-chai-sinon':
spec:
src: [
'spec/**/*.coffee'
'!spec/domain/**/*'
'!spec/init.coffeee'
]
options:
ui: 'bdd'
reporter: 'spec'
require: 'coffee-script/register'
single:
src: [
grunt.option('file') ? 'spec/base-repository.coffee'
]
options:
ui: 'bdd'
reporter: 'spec'
require: 'coffee-script/register'
yuidoc:
options:
paths: ['src']
syntaxtype: 'coffee'
extension: '.coffee'
master:
options:
outdir: 'doc'
grunt.loadNpmTasks 'grunt-mocha-chai-sinon'
grunt.loadNpmTasks 'grunt-contrib-yuidoc'
grunt.registerTask 'default', 'mocha-chai-sinon:spec'
grunt.registerTask 'single', 'mocha-chai-sinon:single'