やり方が正しいのか不安…
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json') ,
connect: {
server: {
options: {
port: 8001 ,
hostname: 'localhost' ,
base: 'www-root/app/public' ,
keepalive: true
}
}
} ,
jade: {
files: {
src: 'app/components/jade/index.jade' ,
dest: 'app/public/index.html'
}
} ,
compass: {
options: {
config: 'config.rb'
}
} ,
watch: {
css: {
files: '**/*.sass' ,
tasks: ['sass'] ,
options: {
livereload: true
}
} ,
jade: {
files: 'app/components/**/*.jade' ,
tasks: ['jade'] ,
options: {
livereload: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['connect', 'jade', 'compass', 'watch']);
}
grunt を実行するたびに、connect タスクのみが表示され、たとえば index.jade ファイルを変更しても何も起こりません...タスクを順番に整理する方法に問題がありますか、それとも実行するものを追加する必要がありますか?タスクを非同期に?
どうすればいいかわからない..ありがとう!