Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 62 lines (40 sloc) 1.441 kB
4da783b @mgutz first commit
authored
1 # Cake
2
3 `Cake` is an enhanced version of `cake` and is 100% backwards-compatible
4 (as of this writing).
5
2104436 @mgutz doc changes
authored
6 `jaskenas` wants the `cake` in the `coffee-script` distribution to remain light
7 and simple. Fair enough. Let there be Cake!
4da783b @mgutz first commit
authored
8
9 ## Enhancements Over cake
10
2104436 @mgutz doc changes
authored
11 TODO section contains enhancements in the works.
4da783b @mgutz first commit
authored
12
13 * Asynchronous Tasks
14
15 task 'generate', (options, done) ->
16 generateCoffeeScript 'src/', done
17
2104436 @mgutz doc changes
authored
18 * Task Dependencies (async aware)
4da783b @mgutz first commit
authored
19
20 task 'all', 'Run all tasks', ['clean', 'generate', 'test']
21
2104436 @mgutz doc changes
authored
22 * Multi-target Invoke. Serially calls each task (async aware)
4da783b @mgutz first commit
authored
23
24 invoke 'task1', 'task2', 'taskn', ->
25 doStuff()
26
2104436 @mgutz doc changes
authored
27
28 ## Installation
29
30 For now, use repository
31
32 git clone git://github.com/mgutz/coffee-cake.git
33 cd cofee-cake
34 npm link
35
36 ## To test
37
38 cd test
39 Cake test
40
41 ## TODO
42
4da783b @mgutz first commit
authored
43 * [TODO] File task helpers
44
45 task 'app.js'
46 file = 'public/jss/app.js'
2104436 @mgutz doc changes
authored
47 scripts = find('lib/scripts', '/\.js$/') # recursive
4da783b @mgutz first commit
authored
48 if outdated(file, scripts)
49 concatenateFiles file, scripts
50
51 * [TODO] Toolbelt Helper Functions
52 - outdated(target, dependenciesList)
53 - prependToFile(file, text)
54 - appendToFile(file, text)
55 - writeToFile(file, text)
56 - gsubFile(file, pattern, replacement)
57 - concatenateFiles(file, fileList)
58 - removeDirectory(dir, {recursive, safe})
59 - makeDirectory(dir, {recursive, safe})
60 - copyDirectory(dir, {safe})
61
Something went wrong with that request. Please try again.