Skip to content

Grunt HTML/LESS Boiler: A starting point for Grunt.js HTML projects/repositories with JsHint, ImageMin and http-server

License

Notifications You must be signed in to change notification settings

moskrc/grunt-html-less

Repository files navigation

Grunt HTML/LESS Boilerplate

A starting point for Grunt.js HTML projects/repositories (with JsHint, ImageMin and http-server).

Description

This repo is just an example of my preferred Grunt-powered files workflow for landing pages.

If you want to start a small project with LESS, ImageMin and JsHint - you are at the right place!

Packages

    "grunt-aws-s3"
    "grunt-contrib-clean"
    "grunt-contrib-concat"
    "grunt-contrib-copy"
    "grunt-contrib-imagemin"
    "grunt-contrib-jshint"
    "grunt-contrib-less"
    "grunt-contrib-uglify"
    "grunt-contrib-watch"
    "grunt-gitinfo"
    "grunt-http-server"
    "grunt-preprocess"
    "jshint-stylish"

Installation

Here’s a few ways to install this code:

  1. Download as a [zip].
  2. Clone it: $ git clone https://github.com/moskrc/grunt-html-less.git.
  3. Fork it and clone: $ git clone [email protected]:moskrc/grunt-html-less.git.

Setup

Install NPM dependencies

$ npm install

Development preview

$ grunt
# it will compile less to css, start http-server at http://127.0.0.1:8000, and watching changes … or:
$ grunt build
# this command will build a production version on 'dist' folder or:
$ grunt test
# this command will execute jshint command only or:
$ grunt http-server:prod
# this command will start http server at http://127.0.0.1:8000 for /dist/ folder
$ grunt deploy
# this command will deploy your project to S3

Authors

License

Copyright (c) 2018 Vitalii Shishorin [email protected], contributors. Released under the MIT license

About

Grunt HTML/LESS Boiler: A starting point for Grunt.js HTML projects/repositories with JsHint, ImageMin and http-server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published