UNPKG

@robinherbots/grunt-dotnet

Version:

Grunt integration for Powershell WebAppPool commands.

70 lines (63 loc) 1.38 kB
/* * grunt-dotnet * https://github.com/RobinHerbots/grunt-dotnet * * Copyright (c) 2020 Robin Herbots * Licensed under the MIT license. */ "use strict"; require("./tasks/dotnet"); module.exports = function (grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON("package.json"), eslint: { target: [ "Gruntfile.js", "tasks/*.js", "lib/*.js", "test/*.js" ] }, mochacli: { options: { files: "test/test_*.js" }, spec: { options: { reporter: "spec", timeout: 10000 } } }, bump: { options: { files: ["package.json"], updateConfigs: ["pkg"], commit: true, createTag: true, push: true, pushTo: "origin", tagName: "v%VERSION%", tagMessage: `Version %VERSION% (${grunt.template.today("yyyymmdd")})}` } }, availabletasks: { tasks: { options: { filter: "exclude", tasks: ["availabletasks", "default"], groups: "bytype" } } } }); // Actually load this plugin's task(s). grunt.loadTasks("tasks"); // These plugins provide necessary tasks. require("load-grunt-tasks")(grunt); grunt.registerTask("default", ["availabletasks"]); // Whenever the "test" task is run, first clean the "tmp" dir, then run this // plugin's task(s), then test the result. grunt.registerTask("test", ["eslint", "mochacli"]); };