UNPKG

generator-nd

Version:

generate front-end files for projects and modules

52 lines (40 loc) 924 B
'use strict'; module.exports = function(grunt) { // load all grunt tasks require('load-grunt-tasks')(grunt); grunt.initConfig({ server: { develop: { options: { config: false, release: false } } }, jsdoc: { api: { src: ['index.js', 'src/**/*.js'], options: { destination: 'doc' } } }, jshint: { files: ['index.js', 'src/**/*.js'], options: { jshintrc: true } }, exec: { 'spm-publish': 'spm publish', 'spm-test': 'spm test' }, clean: { doc: ['doc'] } }); grunt.registerTask('doc', ['clean:doc', 'jsdoc']); grunt.registerTask('test', ['jshint', 'exec:spm-test']); grunt.registerTask('publish', ['test', 'exec:spm-publish']); grunt.registerTask('default', ['server']); };