Skip to content

Instantly share code, notes, and snippets.

@izumin5210
Created April 6, 2014 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save izumin5210/10002081 to your computer and use it in GitHub Desktop.
Save izumin5210/10002081 to your computer and use it in GitHub Desktop.
Code for KOSEN 勉強会 #1 〜 先どり! 最近流行りの“アレ” 〜(http://codeforkosen.doorkeeper.jp/events/9585 )のライブコーディングで使ったGruntfileです.
module.exports = (grunt) ->
require('load-grunt-tasks')(grunt)
grunt.initConfig
coffee:
compile:
files: [
expand: true
cwd: 'src/coffeescripts'
src: ['**/*.coffee']
dest: 'javascripts'
ext: '.js'
]
compass:
dist:
options:
config: 'config.rb'
connect:
livereload:
options:
port:9000
watch:
options:
livereload: true
spawn: true
html:
files: '**/*.html'
compass:
files: 'src/sass/**/*.scss'
tasks: ['compass']
coffee:
files: 'src/coffeescripts/**/*.coffee'
tasks: ['coffee']
grunt.registerTask 'default', ['connect', 'watch']
{
"devDependencies": {
"grunt-contrib-coffee": "^0.10.1",
"load-grunt-tasks": "^0.4.0",
"grunt-cli": "^0.1.13",
"grunt-contrib-watch": "^0.6.1",
"grunt": "^0.4.4",
"grunt-contrib-compass": "^0.7.2",
"grunt-contrib-connect": "^0.7.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment