grunt-jafar-task

0.0.3 • Public • Published

grunt-jafar-task

Jafar's grunt tasks

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-jafar-task --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-jafar-task');

Make sure you already have package.json and Gruntfile.js file.

/**
 * Gruntfile.js example
 */
 
module.exports = function(grunt) {
 
    grunt.loadNpmTasks('grunt-jafar-task');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-uglify');
 
    grunt.initConfig({
        clean: {
            remove: ['dist', 'bower_components']
        },
        fetchDeps: {
            bower: {}
        },
        useHtml: {
            scan: ['index-unminified.html'],
            map: {
                'index-unminified.html': 'index.html'
            }
        }
    });
 
    grunt.registerTask('build', ['fetchDeps', 'useHtml:scan', 'concat', 'uglify', 'useHtml:map']);
 
};

The "clean" task

Overview

To be defined

grunt.initConfig({
  clean: {
    remove: [
      // Files to remove.
    ]
  }
})

The "fetchDeps" task

Overview

To be defined

The "useHtml" task

Overview

To be defined

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

(Nothing yet)

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-jafar-task

Weekly Downloads

0

Version

0.0.3

License

none

Last publish

Collaborators

  • reekoheek