arielserafini / grunt-html-upgrader

Upgrade bootstrap 2.3 to 3.0 / Font Awesome 3 to 4 with grunt!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grunt-html-upgrader

Upgrade your html files with Grunt!

Getting Started

This plugin requires Grunt ~0.4.2

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-html-upgrader --save-dev

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

grunt.loadNpmTasks('grunt-html-upgrader');

The "html_upgrader" task

Overview

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

grunt.initConfig({
  html_upgrader: {
    options: {
      type: 'bootstrap2-3' //available ['bootsrap2-3', 'fontAwesome3-4']
    },
    main: {
      files: {
        '': ['path/to/my/html/**/*.html'] // empty destination path will overwrite your files!
      }
    },
  },
});

Upgraders

Status

This is still unstable and a WIP.

Any help with adding more upgrade scripts and improving the project is much appreciated.

About

Upgrade bootstrap 2.3 to 3.0 / Font Awesome 3 to 4 with grunt!

License:MIT License


Languages

Language:JavaScript 74.8%Language:HTML 25.2%