Giter Site home page Giter Site logo

comffee-grunt's Introduction

Comffee-grunt : Grunt, Compass, CoffeScript and SASS united

Getting Started

This project requires Grunt ~0.4.0 and Compass

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create/edit a Gruntfile as well as install and use Grunt plugins.

Description

This is a sample GruntJS project that unites Compass, CoffeScript and SASS using GruntJS plugins.

Used GruntJS Plugins: uglify, coffee, compass, clean, watch, jasmine

Usage

  1. First things first: You will need npm package manager to install all dependencies. npm comes within NodeJS since version 0.6.3.

  2. To use Compass and SASS, you will need to install Ruby and the gems declared in the Gemfile. There are many ways to install Ruby, just choose one and be happy.

  3. To install all Ruby-Comffee depencies, install Ruby and them run bundle install, using the bundler gem or run gem install compass and gem install bootstrap-sass.

  4. To install all NodeJS-Comffee dependencies, install NodeJS and then run npm install. This command will install all node_modules that are necessary to run this application.

  5. With all dependencies installed, run the grunt command and have fun :)

  6. Comffee has three tasks: default, complete and spec.

    1. The default task runs the CoffeScript compiler and Compass
    2. The complete task runs the default task and tests
    3. The spec task only runs the application tests

Project Structure

- fonts   // Put your font files here
- images  // Put your image files here, like the glyphicons from bootstrap
- spec    // Put your tests here
- src 
	- css // Put your CSS,SASS or SCSS files here
	- js  // Put your Coffee or JS files here

If you want to get rid of your compiled files, run the command grunt clean.


It is important to note that this project has bootstrap-sass included.

To import bootstrap-sass in your CSS just import it.

@import "bootstrap";

If you like to include its responsive support, you could also include the bootstrap-responsive file.

@import "bootstrap-responsive";

For further information you can read how to configure the bootstrap-sass

Testing

Comffee uses Jasmine plugin to run JS tests.

Put your test files in the spec using "*Spec" naming for your specs and "*Helper" for your test helpers. Example: "dropdownSpec.coffee" and "dropdownHelper.coffee".

With Comffee you can write Jasmine specs using CoffeScript. Just write your specs inside the spec/coffee and your tests will be converted to JS.

comffee-grunt's People

Contributors

tiagoamaro avatar

Watchers

 avatar  avatar

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.