Skip to content

elseloop/default-project-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Default Project Base Setup

Sets up preferred file structure, Gruntfile, & Compass.

Get up and going:
  1. Clone or download repo into project folder
  2. run npm install from the command line (installs grunt and assorted dependencies defined in package.json file)
  3. run grunt dev from the command line to:
    a. start a server at port :8000
    b. run grunt watch which, in turn, will:
    1. prefix any necessary CSS3 declarations you were too lazy to handle yourself
    2. process, concatenate, and minify .scss & .js files
    3. compress any images in the img directory
    4. let LiveReload know what's up (I use the browser extension)
Dependencies:
  1. Node.js/npm
  2. Grunt
  3. Compass
  4. Sass Globbing (allows for much neater Sass imports)
  5. LiveReload (Optional, but only if you hate yourself)
  6. Fittext gem (Optional)
Notes
  1. You'll need to change the Gruntfile concat, uglify, & watch objects if you're writing coffeescript. Basically just change the *.js values to *.coffee
  2. If you don't want the Compass support you'll need to edit the Gruntfile before you get going. I think that's just plain crazypants, but whatever, man, free country and all that. Here you go:
    a. on line 13, remove the compass: true item (or change it to false, which is the default)
    b. remove the @import "compass" line from the style.scss (line 1)
  3. The Fittext compass extension is optional, but easily required.
    a. In the config.rb file, ucommented line 2 (require 'fittext').
    b. Then uncomment line 2 in the main style.scss file.
    c. Just make sure you're including Compass before Fittext to avoid blowing up your day.

About

Basic HTML page with Grunt & Compass and my preferred file structure setup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published