Giter Club home page Giter Club logo

grunt-html-upgrader's Introduction

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.

grunt-html-upgrader's People

Contributors

jdewit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

grunt-html-upgrader's Issues

Installation Issue

Hi,

I am trying to install grunt-html-upgrader but I got this error:

npm ERR! fetch failed https://registry.npmjs.org/grunt-html-upgrader/-/grunt-html-upgrader-0.1.6.tgz

Here the complete Message:

Jans-MacBook-Pro:~ jan$ sudo npm install grunt-html-upgrader --save-dev
npm http GET https://registry.npmjs.org/grunt-html-upgrader
npm http 304 https://registry.npmjs.org/grunt-html-upgrader
npm http GET https://registry.npmjs.org/grunt-html-upgrader/-/grunt-html-upgrader-0.1.6.tgz
npm http 404 https://registry.npmjs.org/grunt-html-upgrader/-/grunt-html-upgrader-0.1.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/grunt-html-upgrader/-/grunt-html-upgrader-0.1.6.tgz
npm ERR! Error: 404 Not Found
npm ERR!     at WriteStream.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/fetch.js:57:12)
npm ERR!     at WriteStream.EventEmitter.emit (events.js:117:20)
npm ERR!     at fs.js:1596:14
npm ERR!     at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:103:5
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "grunt-html-upgrader" "--save-dev"
npm ERR! cwd /Users/jan
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.3.5
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/jan/npm-debug.log
npm ERR! not ok code 0
Jans-MacBook-Pro:~ jan$

grunt --version
grunt-cli v0.1.13
grunt v0.4.4
node -v
v0.10.15
npm -v
1.3.5

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.