UNPKG

vmagic

Version:

vMagic is a RESTFul framework for NodeJS applications.

39 lines (32 loc) 1.01 kB
"use strict"; module.exports = function (grunt) { require("load-grunt-tasks")(grunt); var esLint = "node node_modules/eslint/bin/eslint.js src/**/*.js > eslint.out || (cat eslint.out && exit 1)"; var mocha = "node node_modules/nyc/bin/nyc.js node_modules/mocha/bin/_mocha test/**/*.js"; grunt.initConfig({ "exec": { "eslint" : esLint, "test": mocha }, "watch": { "src": { "files": [ "src/**/*.js", "test/**/*.js" ], "tasks": [ "eslint", "test" ] }, "gruntfile": { "files": ["Gruntfile.js"] } } }); grunt.registerTask("default", "Watch files", function () { grunt.task.run(["watch"]); }); grunt.registerTask("eslint", "ESLint", "exec:eslint"); grunt.registerTask("test", "Testing...", "exec:test"); };