はじめてのGrunt
Grunt使ってみたくて書いてみたけど、よくわからない……
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig jade: dev: files: 'index.html': ['*.jade', '**/*.jade'] stylus: dev: files: 'index.css': ['*.stylus', '**/*.stylus'] watch: files: ['<%= jade.files =>', '<%= stylus.files =>'] tasks: ['jade', 'stylus'] grunt.loadNpmTasks 'grunt-contrib-jade' grunt.loadNpmTasks 'grunt-contrib-stylus' grunt.loadNpmTasks 'grunt-contrib-watch' grunt.registerTask 'default', ['watch']
node.js上で動くから、OS関係なくほぼ動作するのも魅力だと思うんだけど、ぜんぜん意味わからないから多分Makefileを書いて、監視は他のコマンドにまかせると思う……
ああなんという情弱……