meli-sdk
Version:
Unofficial NodeJS SDK for the Mercadolibre API with Promises
41 lines (34 loc) • 974 B
JavaScript
module.exports = function (grunt) {
"use strict";
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
meta: {
banner: "/*!\n * <%= pkg.name %>\n * <%= pkg.description %>\n * @version <%= pkg.version %> - <%= grunt.template.today(\'yyyy-mm-dd\') %>\n * @author <%= pkg.author.name %> <<%= pkg.author.url %>>\n */\n"
},
jshint: {
all: {
src: ["lib/*.js", "test/*.js", "lib/resources/*.js"],
options: {
jshintrc: ".jshintrc"
}
}
},
simplemocha: {
options: {
timeout: 15000,
reporter: 'spec'
},
all: {
src: 'test/*.js'
}
}
});
// Load grunt tasks from npm packages
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks('grunt-simple-mocha');
// Test task
grunt.registerTask("test", ["simplemocha"]);
// Default task.
grunt.registerTask("default", ["jshint", "simplemocha"]);
};