Skip to content

indieisaconcept/grunt-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-plugin

The aim of this plugin is to illustrate how the discovery of plugins for new and existing users of grunt could be done by providing a way to search for, install and remove plugins directly from grunt.

Background

I got the idea for this plugin after reading the comments below and also after using @cowboy's jsfiddle for "Grunt plugins published to Npm".

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with:

npm install "git://github.com/indieisaconcept/grunt-plugin#master"

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-plugin');

Documentation

Usage

grunt-plugin supports arguments. The arguments are broken down as follows:

plugin: command : keyword

  • command: The plugin command to use
  • keyword: Plugin keywords to use

If no arguments are passed, a listing of supported commads will be outputted to the console

> grunt plugin

Usage: plugin:<command>:<keyword>

where <command> is one of: search, install, uninstall

- plugin:search:<keyword>     Search npm registry for grunt plugins matching keywords
- plugin:install:<keyword>    Install specified plugin(s)
- plugin:uninstall:<keyword>  Removed specified plugin(s)

Commands

Search

This command will search the NPM registry and return a listing of plugins which currently have the keyword "gruntplugin". The returned results are then filtered based on the keywords passed. If ommited all plugins will be display.

> grunt plugin:search:css,haml

'Example console output'

Install and Uninstall

These commands are just wrappers around npm to provide support to install and remove plugins.

Install

> grunt plugin:install:grunt-requirejs,grunt-haml

Uninstall

> grunt plugin:uninstall:grunt-requirejs,grunt-haml

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

0.1.0

  • Initial Release

License

Copyright (c) 2012 Jonathan Barnett
Licensed under the MIT license.

About

Search for and install grunt plugins

Resources

License

Stars

Watchers

Forks

Packages

No packages published