LoginSignup
4
4

More than 5 years have passed since last update.

Cakefileサンプル

Posted at

Cakefileのサンプル。

$ cake

で実行できる。
基本的な動作はnode.js上で実行されるので、node.jsの内容をそのまま記述できる。
{exec} = require 'child_process'はCoffeeScriptの分割代入をrequireメソッドに使っているだけ。

{exec} = require 'child_process'

files = [
    'js/coffee/main.coffee'
]

exec "coffee -o js/ -j main.js -c #{files.join ' '}", (err, stdout, stderr) ->
    throw err if err
    console.log stdout + stderr

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4