Questions tagged [cakefile]

Cake is a simple build tool written in Coffeescript. Cakefiles specify the tasks to be performed by this tool.

The annotated source of cake.coffee can be found here.

17 questions
6
votes
2 answers

Podspec - Exclude all but a subfolder

I have a structure like this target_files/ ├──target1/ ├──target2/ └──target3/ And I want to include only "target2" for example and exclude the other targets. How I write the spec.exclude_files? I found this example for excluding files, but I can't…
Alberto Schiariti
  • 1,546
  • 2
  • 15
  • 31
3
votes
1 answer

Gzipping a File Using Zlib in NodeJS

I'm trying to write a simple Cakefile build script for a small javascript library. I'd like to gzip a source string and write the result to a file. Here's what I have so far: zlib.deflate minifiedjavaScriptSource, (error, buffer) -> …
LandonSchropp
  • 10,084
  • 22
  • 86
  • 149
2
votes
1 answer

Jake vs Cake for a Node.js application?

I've done some basic googling and haven't found any compelling reasons to choose Jake over Cake for my Node.js build process (mostly just compiling *.coffee to *.js in the correct folders). Can anyone provide a few quick bullet points of why one…
techie.brandon
  • 1,638
  • 2
  • 18
  • 27
1
vote
3 answers

How do I run a cake file command from a cron file?

This is a bit of a mystery to me since you have to "be in" the folder of the Cakefile to run the cake command. I don't really know where cake its path from, but I've tried running this cd / PWD=/path/to/cake/file cake server Still getting this…
Hubro
  • 56,214
  • 69
  • 228
  • 381
1
vote
1 answer

Watch and compile coffeescript in multiple folders and vendor javascript files in specific order, also organize sass and html templates

I have a directory structure like this: + src | | - modules | | | | - auth | | | | | | - auth.coffee | | | - auth.sass | | | - login.html | | | - logout.html | | | | - navigation | | | | | …
Alp
  • 29,274
  • 27
  • 120
  • 198
1
vote
1 answer

call another task from a task

How can I call another task from a task in Cakefile ? I tried tasks[taskName].action options but didn't work because tasks in not bound in the scope of my Cakefile: /home/omer/___/Cakefile:52 return console.log(tasks); ^ …
sinan
  • 6,809
  • 6
  • 38
  • 67
1
vote
1 answer

how do I tell cake where to look for coffee?

Setting up the express coffee app that twilson63 built. It seems that cake can't find coffee, but they both are ok with which. Is there something else I need to do here? Here's my steps: jcollum@DEVELOPER01 ~/dev/express-coffee-master $ which…
jcollum
  • 43,623
  • 55
  • 191
  • 321
1
vote
2 answers

compile and join coffeescript files

I have the following structure: /lib / myfile.js.cofee / secondfile.js /src and i would like to compile them into /lib / myfile.js.cofee / secondfile.js /src / awesomefile.min.js I have read about Cakefiles, but i'm not sure how to…
Mike Silvis
  • 1,299
  • 2
  • 17
  • 30
0
votes
1 answer

Calling methods from task in Cakefile

I'm setting up a Cakefile that will compile and minify my CoffeeScript and minify my Vanilla libs. I created different tasks for each case (whether it was a coffee file or not) but I want to combine them into one task. The problem I'm having is…
mgaughan
  • 875
  • 7
  • 23
0
votes
1 answer

copy task in Cakefile

I am trying to copy all the files in a list of directories and paste them into an output directory. The problem is whenever I use an *, the output says there is no file or directory by that name exists. Here is the specific error output: cp:…
prashn64
  • 657
  • 1
  • 8
  • 24
0
votes
2 answers

Cakefile not requiring *.coffee files

I have the following files: Cakefile: require './test' test.coffee: console.log 'hi' another_test.coffee: require './test' If I run cake, I get the following exception: module.js:340 throw err; ^ Error: Cannot find module './test' …
Jose
  • 609
  • 1
  • 7
  • 15
0
votes
1 answer

Cakefile build task error

I am trying to build the code given as TODO example in spine framework. I have installed coffescript using npm, and cake builder is included to it. When I navigate to Cakefile dir, and execute cake build I get the following…
Giannis
  • 5,286
  • 15
  • 58
  • 113
0
votes
1 answer

How to compile coffeescript to the parent directory of the source?

I just got into the world of caffeine and I'm having a bit of trouble with Cakefiles. It is my understanding that Cakefiles use the coffee script syntax; if I want to look for a file in child directories, I need to require the fs module and do…
Logan
  • 10,649
  • 13
  • 41
  • 54
0
votes
1 answer

Cakefile - how to --watch handlebars dir the same as coffeescript dir

When I --watch a directory containing coffeescript files, everything is caught- new files, immediate changes, but when I watch a handlebars directory it doesn't watch it. Am I right in thinking --watch is only available to coffee? My Cakefile looks…
Darcbar
  • 888
  • 1
  • 8
  • 25
0
votes
1 answer

Cakefile not seeing JS functions

I'm writing a Cakefile that defines a task called build where the following line appears: coffee.stderr.on 'data', (data) -> process.stderr.write.data.toString() When I run the task with cake build, it throws a ReferenceError saying that the…
Will
  • 4,241
  • 4
  • 39
  • 48
1
2