You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

grunt-log

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-log

grunt task to log statements easily


Version published
Maintainers
1
Created

Readme

Source

grunt-log

Grunt task to output log statements easily.

grunt.registerTask('build', [
  'log:build started',
  'jshint',
  'less',
  'log:hint and less done',
  (... other build steps ...),
  'log: build finished'
]);

Install

You need node, npm, and grunt already installed, then:

npm install grunt-log --save-dev

Once the plugin has been installed, load it in your Gruntfile. I recommend load-grunt-tasks, but you can do it the traditional, painful way by adding to your Gruntfile:

grunt.loadNpmTasks('grunt-log');

Usage

Just call the log task, with the message to log as its first parameter (separated from the task by a :), as part of your multi-step task definition:

  grunt.registerTask('build', 'builds all elements', [
    'prompt:bump',
    'bump',
    'log: now starting build',
    'stage:prod',
    'release',
    'log: build successful',
  ]);

Contributing

  1. fork it: https://github.com/xavierpriour/grunt-log/fork
  2. clone your fork.
  3. install everything: npm install
  4. test everything is ok: grunt - this task will watch for file updates
  5. add tests for your contribution - we use nodeunit
  6. have a go!
  7. ensure all tests run ok: grunt test
  8. update that README
  9. create a pull request
  10. thank you so much!

Release History

1.0: log:(msg) (2015/06/12)

  • log:msg will output msg

0.0: initial commit

  • no code yet.

License

MIT © Xavier Priour

Keywords

FAQs

Package last updated on 12 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc