Skip to content

Instantly share code, notes, and snippets.

@kavitshah8
Last active August 29, 2015 14:22
Show Gist options
  • Save kavitshah8/2e43a7eb33b1b0fe2443 to your computer and use it in GitHub Desktop.
Save kavitshah8/2e43a7eb33b1b0fe2443 to your computer and use it in GitHub Desktop.
Grunt Everyday Commands
  1. Gruntfile has four main parts

    • Wrapper Function
    • Initialization
    • Loading
    • Registration
  2. Useful commands

    • grunt --help - Available Grunt Commands
    • grunt --help | grep command_name - Looks for a specific command in the list of available commands list
    • grunt concat:foo - Running a concat task with foo configuration
  3. Use ful key values

    • banner - The banner is inserted at the top of the output
    • options - Overwrites the default options for task
    • Files - Array format/ Object format; expand property
  4. Lingo

    • Task vs Target
    • Task level options vs Target level options
  5. Grunt API

  6. Grunt Plugins

  7. Globbing Pattern

  8. Useful Grunt API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment