Skip to content

Commit

Permalink
recompiled base files
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Jan 3, 2014
1 parent b3d8966 commit 1129b3d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
16 changes: 12 additions & 4 deletions Cakefile
@@ -1,4 +1,4 @@
# v1.3.11 December 11, 2013
# v1.3.13 December 19, 2013
# https://github.com/bevry/base


Expand Down Expand Up @@ -51,7 +51,9 @@ for own key,value of config
# Generic

{spawn, exec} = require('child_process')

safe = (next,fn) ->
next ?= (err) -> console.log(err.stack ? err)
fn ?= next # support only one argument
return (err) ->
# success status code
Expand Down Expand Up @@ -80,7 +82,11 @@ actions =
clean: (opts,next) ->
# Prepare
(next = opts; opts = {}) unless next?
args = ['-Rf', config.COFFEE_COFFEE_OUT_PATH]

# Add compilation paths
args = ['-Rf', config.COFFEE_OUT_PATH, config.DOCPAD_OUT_PATH, config.DOCCO_OUT_PATH]

# Add common ignore paths
for path in [APP_PATH, config.TEST_PATH]
args.push(
pathUtil.join(path, 'build')
Expand Down Expand Up @@ -148,11 +154,13 @@ actions =
step2 = ->
return step3() if !config.COFFEE_SRC_PATH or !fsUtil.existsSync(COFFEE)
console.log('coffee watch')
spawn(COFFEE, ['-wco', config.COFFEE_OUT_PATH, config.COFFEE_SRC_PATH], {stdio:'inherit', cwd:APP_PATH}).on('close', safe next, step3)
spawn(COFFEE, ['-wco', config.COFFEE_OUT_PATH, config.COFFEE_SRC_PATH], {stdio:'inherit', cwd:APP_PATH}).on('close', safe) # background
step3() # continue while coffee runs in background
step3 = ->
return step4() if !config.DOCPAD_SRC_PATH or !fsUtil.existsSync(DOCPAD)
console.log('docpad run')
spawn(DOCPAD, ['run'], {stdio:'inherit', cwd:APP_PATH}).on('close', safe next, step4)
spawn(DOCPAD, ['run'], {stdio:'inherit', cwd:APP_PATH}).on('close', safe) # background
step4() # continue while docpad runs in background
step4 = next

# Start
Expand Down
18 changes: 9 additions & 9 deletions README.md
Expand Up @@ -4,7 +4,7 @@

[![Build Status](http://img.shields.io/travis-ci/docpad/docpad-plugin-livereload.png?branch=master)](http://travis-ci.org/docpad/docpad-plugin-livereload "Check this project's build status on TravisCI")
[![NPM version](http://badge.fury.io/js/docpad-plugin-livereload.png)](https://npmjs.org/package/docpad-plugin-livereload "View this project on NPM")
[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip")
[![Gittip donate button](http://img.shields.io/gittip/docpad.png)](https://www.gittip.com/docpad/ "Donate weekly to this project using Gittip")
[![Flattr donate button](http://img.shields.io/flattr/donate.png?color=yellow)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr")
[![PayPayl donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal")

Expand Down Expand Up @@ -95,21 +95,21 @@ These amazing people are maintaining this project:

No sponsors yet! Will you be the first?

[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip")
[![Gittip donate button](http://img.shields.io/gittip/docpad.png)](https://www.gittip.com/docpad/ "Donate weekly to this project using Gittip")
[![Flattr donate button](http://img.shields.io/flattr/donate.png?color=yellow)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr")
[![PayPayl donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal")

### Contributors

These amazing people have contributed code to this project:

- Alex (https://github.com/amesarosh) - [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=amesarosh)
- antoinebrault (https://github.com/antoinebrault) - [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=antoinebrault)
- Benjamin Lupton <b@lupton.cc> (https://github.com/balupton) - [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=balupton)
- Delapouite (https://github.com/Delapouite) - [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=Delapouite)
- GarthDB (https://github.com/GarthDB) - [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=GarthDB)
- scottoreilly (https://github.com/scottoreilly) - [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=scottoreilly)
- vjpr (https://github.com/vjpr) - [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=vjpr)
- [Alex](https://github.com/amesarosh) [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=amesarosh)
- [antoinebrault](https://github.com/antoinebrault) [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=antoinebrault)
- [Benjamin Lupton](https://github.com/balupton) <b@lupton.cc> [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=balupton)
- [Delapouite](https://github.com/Delapouite) [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=Delapouite)
- [GarthDB](https://github.com/GarthDB) [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=GarthDB)
- [scottoreilly](https://github.com/scottoreilly) [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=scottoreilly)
- [vjpr](https://github.com/vjpr) [view contributions](https://github.com/docpad/docpad-plugin-livereload/commits?author=vjpr)

[Become a contributor!](https://github.com/docpad/docpad-plugin-livereload/blob/master/CONTRIBUTING.md#files)

Expand Down
9 changes: 6 additions & 3 deletions package.json
Expand Up @@ -9,9 +9,12 @@
"badges": {
"travis": true,
"npm": true,
"gittip": "bevry",
"david": true,
"daviddev": true,
"gittip": "docpad",
"flattr": "344188/balupton-on-Flattr",
"paypal": "QB8GQPZAH84N6"
"paypal": "QB8GQPZAH84N6",
"bitcoin": "https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a"
},
"keywords": [
"docpad",
Expand Down Expand Up @@ -58,7 +61,7 @@
"devDependencies": {
"docpad": ">=6.46 <7",
"coffee-script": "~1.6.2",
"projectz": "~0.3.0"
"projectz": "~0.3.5"
},
"main": "./out/livereload.plugin.js",
"scripts": {
Expand Down

0 comments on commit 1129b3d

Please sign in to comment.