1
은 현재 내가 설정을 같은 커피 스크립트, 옥, 스타일러스를보고 컴파일하는 cake
작업이 : 이제개발하면서 Cakefile에서 파일을보고/복사 할 수 있습니까?
task "startdev", "Starts server with nodemon and watch files for changes", ->
# start nodemon server
nodemon = spawn procExec("nodemon"), ["server.coffee"]
processOutput nodemon
# watch and compile CoffeeScript
coffee = spawn procExec("coffee"), ["-o", "public/js/app", "-cw", "client/coffee"]
processOutput coffee
# watch and compile Stylus
stylus = spawn procExec("stylus"), ["client/stylus/styles.styl", "-I", "public/css/","-l", "-w", "-u", "./node_modules/nib", "-o", "public/css/app"]
processOutput stylus
# watch and compile jade
jade = spawn procExec("jade"), ["client/jade/index.jade", "--out", "public"]
processOutput jade
을, 나는 폴더에있는 파일 변경에 대한보고 싶은과는 다른 폴더 (일명 동기화 폴더에 복사, src
에서 public
까지 파일 복사). 내가 어떻게 할 수 있니? 나는 그 솔루션이 노드/JS에만 국한되지 않는다면 좋다고 생각한다. 제대로 작동하도록하기 위해 전체 묶음과 많은 설정을 다운로드하지 않아도된다.
일부 연구를 마친 후 아마도 jake
과 같은 빌드를 사용해야할까요? 하지만이 개 폴더