Skip to content

mrcoles/static-less-coffeescript-grunt-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Less & Coffeescript Grunt Project

A sample project that compiles less and coffeescript files as well as combining and minifying static files for release to production. This builds purely static flat files and is an easy way to make it nicer to build a static HTML page.

The main grunt tasks it uses are grunt-contrib-less, grunt-contrib-coffee, and grunt-usemin.

Installation

Install nodejs and npm (they come together), then install grunt-cli.

Then just run npm install in the root directory of this project.

Usage

Auto-compile .less and .coffee files from the src/less/ and src/coffee folders (and place the results in src/css/ and src/js/).

grunt watch

Build the project into the dist/ folder: compile .less and .coffee files, run jshint, and combine any static assets that are specified in build HTML comments (see examples in src/index.html) with versioned file names (for safe caching).

grunt

Notes

The project expects a specific structure of all development files inside the src/ folder, just one HTML file as index.html, and specific names for the packaged and minified assets. Look in Gruntfile.js for more details and to change settings/functionality.

If you want to store files directly in src/css/ or src/js/, then make sure to remove the ignores for them inside the .gitignore file.

About

A sample grunt project that compiles less and coffeescript files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published