grunt-requestfiles

0.0.2 • Public • Published

grunt-requestfiles

Clear file cache by http requests.

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 git://github.com/hi/grunt-requestfiles.git#v0.0.1 --save-dev

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

grunt.loadNpmTasks('grunt-requestfiles');

The "requestfiles" task

Overview

In your project's Gruntfile, add a section named requestfiles to the data object passed into grunt.initConfig().

grunt.initConfig({
    options: {
        relative: 'theme/',
        path: '/layout/'
    },
 
    'dev': {
        options: {
            host: '<%= pkg.config.devHost %>'
        },
        files: [{
            expand: true,
            cwd: 'theme/_dev',
            src: [ '**' ],
        }, {
            expand: true,
            cwd: 'theme/skins',
            src: [ '**/_dev/**/*.*' ],
        }]
    },
})

Options

options.host

Type: String Default value: ''

A valid hostname for a template.

options.path

Type: String Default value: '/layout/'

A valid path to be added before the file path.

options.relative

Type: String Default value: 'theme/'

A relative path to subtract from file paths.

options.params

Type: String Default value: '?reset=1'

The param to be called after the file path.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    1

Package Sidebar

Install

npm i grunt-requestfiles

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • gdupont