Skip to content

Instantly share code, notes, and snippets.

@colorqualia
Created November 22, 2013 07:53
Show Gist options
  • Save colorqualia/7596371 to your computer and use it in GitHub Desktop.
Save colorqualia/7596371 to your computer and use it in GitHub Desktop.
grunt-compass-coffee
module.exports = (grunt) ->
grunt.initConfig
# compass task
compass:
dev:
options:
config: 'config.rb'
outputStyle: 'expanded'
prod:
options:
config: 'config.rb'
outputStyle: 'compressed'
# watch task
watch:
dev:
files: ['sass/*.scss']
tasks: ['compass:dev']
# plugin
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-compass'
# defalut task
grunt.registerTask 'default', ['compass:prod']
@colorqualia
Copy link
Author

プロジェクトディレクトリで以下のコマンドを実行する。

  • npm init
  • npm install grunt --save-dev
  • npm install grunt-contrib-watch --save-dev
  • npm install grunt-contrib-compass --save-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment