A starting point for Grunt.js HTML projects/repositories (with JsHint, ImageMin and http-server).
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!
"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"
Here’s a few ways to install this code:
- Download as a [
zip
]. - Clone it:
$ git clone https://github.com/moskrc/grunt-html-less.git
. - Fork it and clone:
$ git clone git@github.com:moskrc/grunt-html-less.git
.
Install NPM dependencies
$ npm install
$ 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
Copyright (c) 2018 Vitalii Shishorin moskrc@gmail.com, contributors. Released under the MIT license