Created
April 6, 2014 06:04
-
-
Save izumin5210/10002081 to your computer and use it in GitHub Desktop.
Code for KOSEN 勉強会 #1 〜 先どり! 最近流行りの“アレ” 〜(http://codeforkosen.doorkeeper.jp/events/9585 )のライブコーディングで使ったGruntfileです.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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