grunt-jafar-task

Jafar's grunt tasks

Usage no npm install needed!

<script type="module">
  import gruntJafarTask from 'https://cdn.skypack.dev/grunt-jafar-task';
</script>

README

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)