UNPKG

passwordless

Version:

A node.js/express module for passwordless authentication

31 lines (28 loc) 556 B
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-mocha-test'); grunt.loadNpmTasks('grunt-jsdoc'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.initConfig({ clean: { docs: ['docs'] }, mochaTest: { test: { options: { reporter: 'spec' }, src: ['test/**/*.test.js'] } }, jsdoc : { dist : { src: ['lib/passwordless/passwordless.js'], options: { destination: 'docs' } } } }); grunt.registerTask('test', ['mochaTest']); grunt.registerTask('docs', ['clean:docs', 'jsdoc']); };