-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCakefile
More file actions
28 lines (25 loc) · 782 Bytes
/
Copy pathCakefile
File metadata and controls
28 lines (25 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
flour = require "flour"
{exec} = require "child-process-promise"
task "build", "Build compiled source code", (opts) ->
compile "PromiseBar.coffee", "PromiseBar.js"
###
Before:
```sh
git clone git@github.com:CodeLenny/Promise.bar.git gh-pages
```
On first commit:
```sh
cd gh-pages
# git config commit.gpgsign true
git checkout --orphan gh-pages
```
###
task "docs", "Build gh-pages", (opts) ->
exec "cd gh-pages; git checkout master; git branch -d gh-pages; git fetch; git checkout origin/gh-pages -b gh-pages"
.then ->
exec "$(npm bin)/codo --output gh-pages PromiseBar.coffee - README.md"
.then ->
exec "cd gh-pages; git add *; git commit -am 'Updated documentation.'; git push origin gh-pages"
.catch (err) ->
console.log err
throw err