0.1.2 • Published 11 years ago

grunt-cat v0.1.2

Weekly downloads
78
License
-
Repository
github
Last release
11 years ago

grunt-cat

Cat a file to the terminal. Works great with text, ascii art, and even colorful ansi.

This task may require Grunt 0.4.

Getting Started

npm install grunt-notify --save-dev

Once that's done, add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-cat');

Cat a file

The notify MutiTask

Show a message whenever you want!

grunt.initConfig({
  cat: {
    logo: {
      file: 'files/logo.txt'
    },
    prod: {
      file: 'files/prod-logo.txt'
    }
  }
});

grunt.loadNpmTasks('grunt-cat');

// simplified example
grunt.registerTask('server', ['cat:logo', 'uglify', 'sass', 'server', 'notify:server']);

Watch example

Options

  • file (required): Path to the file. This is relative to the root of your project.

Tests

Run grunt to lint and run the tests.

Doodle or Die

This project was created for and is used by Doodle or Die.

This is what it looks like when we run our local dev server using the production MongoDB:

Doodle or Die example

Release History

Dec 28 - First version

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago