cakefile

    0熱度

    1回答

    我嘗試使用正常的cd命令更改目錄,但它說execvp():沒有這樣的文件或目錄。 這些都是行: fs = require 'fs' util = require 'util' {spawn} = require 'child_process' clientTest = (callback) -> d = spawn 'cd', ['client'] d.stderr.

    1熱度

    2回答

    我有以下結構: /lib /myfile.js.cofee /secondfile.js /src ,我想將它們彙編成 /lib /myfile.js.cofee /secondfile.js /src /awesomefile.min.js 我看了一下Cakefiles,但我不知道如何正是這樣做。 謝謝, 邁克

    0熱度

    1回答

    我正在寫一個Cakefile定義了一個名爲build任務,其中出現以下行: coffee.stderr.on 'data', (data) -> process.stderr.write.data.toString() 當我運行cake build任務,它拋出一個ReferenceError說,功能toString未定義。 我試過修復節點安裝,並用npm重新安裝CoffeeScrip

    0熱度

    1回答

    我剛進入咖啡因的世界,我在Cakefiles中遇到了一些麻煩。 這是我的理解,Cakefiles使用咖啡腳本語法;如果我想在子目錄中查找文件,那麼我需要fs模塊並執行我需要做的任何操作,就好像我在使用nodejs應用程序一樣嗎?我只需要一個Cakefile來完成整個項目,對嗎?我是否需要對package.json或其他任何項目進行更改以使用Cakefile? 話雖這麼說,因爲我一直在尋找在this

    1熱度

    1回答

    設置twilson63構建的express coffee app。看起來蛋糕找不到咖啡,但它們都可以用which。我還需要在這裏做些什麼嗎?這是我的步驟: [email protected] ~/dev/express-coffee-master $ which coffee /c/Users/jcollum/AppData/Roaming/npm/node_modules/coffee-sc

    -1熱度

    1回答

    我正在嘗試構建一個簡單的cakefile來執行我正在處理的節點項目的構建任務。繼this gist from github,我已經成功地引發以下基本代號: CoffeeScript = require 'coffee-script' {exec} = require 'child_process' fs = require 'fs' web_build_path = 'bin/web'

    0熱度

    1回答

    我正在嘗試構建在脊柱框架中作爲TODO示例給出的代碼。我已經使用npm安裝了coffescript,並且它包含了蛋糕生成器。 當我瀏覽到Cakefile目錄,並執行cake build我收到以下錯誤: src/local.coffee:1:1: error: the variable "Spine" can't be assigned with ?= because it has not been

    1熱度

    1回答

    如何從Cakefile中的任務調用另一個任務? 我試圖tasks[taskName].action options但由於tasks沒有工作在我Cakefile的範圍不綁定: /home/omer/___/Cakefile:52 return console.log(tasks); ^ ReferenceError: tasks is not defined

    0熱度

    2回答

    我有以下文件: Cakefile: require './test' test.coffee: console.log 'hi' another_test.coffee: require './test' 如果我運行蛋糕,我會得到以下異常: module.js:340 throw err; ^ Error: Cannot find module './test'

    2熱度

    1回答

    我已經做了一些基本的谷歌搜索,並沒有找到任何有說服力的理由來爲我的Node.js構建過程選擇Jake over Cake(主要是將* .coffee編譯爲* .js到正確的文件夾中)。任何人都可以提供一些關於爲什麼選擇傑克或蛋糕而不是另一個的簡短要點? 如果適用的:我從Java,Grails進來,看Ruby on Rails開發商一點,所以我很熟悉Ant,MVN和Gradle,Rake,等...