Giter Site home page Giter Site logo

grunt-contrib's Introduction

grunt-contrib

A collection of general use grunt tasks. All tasks are designed with cross platform support in mind and dependencies that can easily be managed through npm.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-contrib

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

grunt.loadNpmTasks('grunt-contrib');

Included Tasks

bump (not released)

Bump package version.

clean

Clear files and folders.

coffee Build Status

Compile CoffeeScript files into JavaScript.

compress Build Status

Compress files and folders using gzip or zip.

copy Build Status

Copy files into another directory.

handlebars Build Status

Compile handlebars templates to JST file.

jade Build Status

Compile Jade templates to HTML.

jst Build Status

Compile underscore templates to JST file.

less Build Status

Compile LESS files to CSS.

mincss Build Status

Minify CSS files.

requirejs Build Status

Optimize RequireJS projects using r.js.

stylus Build Status

Compile Stylus files into CSS. Preloaded with nib.

yuidoc Build Status

Compile YUIDoc Documentation.

Bugs

Help us squash them by submitting an issue that describes how you encountered it; please be as specific as possible including operating system, node, grunt, and grunt-contrib versions.

Contributing

Checklist

  1. Ensure your task meets the submission guidelines.
  2. Ensure your task follows the code style guide.
  3. Submit your pull request against master, unless otherwise instructed.
  4. Ensure your pull request only touches what your changing and that it's squashed (ie git rebase).

Submission Guidelines

  • task should work out of box, cross platform, with a simple npm install
  • task should fill a general need and ideally be pure JavaScript
  • task should include tests that cover, at minimal, its basic features
  • task should be linted by running grunt at root of project
  • task should use any built-in helpers first for consistency

Code Style Guide

  • code should be indented with 2 spaces
  • single quotes should be used where feasible
  • commas should be followed by a single space (function params, etc)
  • variable declaration should include var, no multiple declarations

Tests

  • tests should be added to the config in test/grunt.js
  • see existing tests for guidance

Currently, testing with grunt is a bit cumbersome--this will be addressed in a future release.

Running Tests

npm install grunt -g
npm install
npm test

See CHANGELOG for release history.

grunt-contrib's People

Contributors

asciidisco avatar conradz avatar cowboy avatar ctalkington avatar davemo avatar dsyph3r avatar errcw avatar floydwch avatar gcpantazis avatar jgoodall avatar jney avatar liamks avatar mikaelkaron avatar moox avatar nnnnathann avatar outatime avatar paulirish avatar searls avatar shama avatar thomasboyt avatar tkazec avatar tonyxiao avatar vojtajina avatar ypomortsev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.