Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenvachon/grunt-log-headers
Hide the running task name header in Grunt's logger.
https://github.com/stevenvachon/grunt-log-headers
grunt-plugins logger nodejs
Last synced: 2 months ago
JSON representation
Hide the running task name header in Grunt's logger.
- Host: GitHub
- URL: https://github.com/stevenvachon/grunt-log-headers
- Owner: stevenvachon
- Created: 2014-03-10T14:21:36.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-21T03:37:28.000Z (almost 9 years ago)
- Last Synced: 2024-10-06T04:21:36.866Z (3 months ago)
- Topics: grunt-plugins, logger, nodejs
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grunt-log-headers [![NPM Version][npm-image]][npm-url]
> Hide the running task name header in Grunt's logger.
## Getting Started
This plugin requires Grunt `>=0.4`If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
```shell
npm install grunt-log-headers --save-dev
```Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
```js
require('grunt-log-headers')(grunt);
```## There is no task
### Overview
Unlike typical Grunt plugins, this one has no task. It's actually a hack that wraps a part of Grunt's core.*Note:* Because of the nature of this plugin, complications may occur with any other similar "hacked" plugins.
### Global Options
#### options.gruntLogHeader
Type: `Boolean`
Default value: `true`Show the running task header or not. This can be applied to *any* task.
### Usage Example
```js
module.exports = function(grunt) {
grunt.initConfig({
sometask: {
options: {
gruntLogHeader: false,
},
sometarget1: {
options: {
gruntLogHeader: true,
},
…
}
sometarget2: {
…
},
},
});
require('grunt-log-headers')(grunt);
grunt.loadNpmTasks('sometask');
}
```## Release History
* 1.0.2 supports grunt `1.x` and npm `3.x`
* 1.0.1 package.json fixes
* 1.0.0 release
* 0.1.0 initial release[npm-image]: https://img.shields.io/npm/v/grunt-log-headers.svg
[npm-url]: https://npmjs.org/package/grunt-log-headers