Skip to content

Commit

Permalink
v2.3.1. Improvement.
Browse files Browse the repository at this point in the history
- v2.3.1 December 31, 2013
	- Removed support for `cssmin` plugin, cssmin plugin now works
differently
		- Thanks to [Rob Loach](https://github.com/RobLoach) for [pull
request docpad#7](docpad#7)
  • Loading branch information
balupton committed Dec 31, 2013
1 parent 52a2d0a commit e4d4935
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
16 changes: 12 additions & 4 deletions Cakefile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions History.md → HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

- v2.3.1 December 31, 2013
- Removed support for `cssmin` plugin, cssmin plugin now works differently
- Thanks to [Rob Loach](https://github.com/RobLoach) for [pull request #7](https://github.com/docpad/docpad-plugin-less/pull/7)

- v2.3.0 December 12, 2013
- Added support for `cssmin` plugin
- Thanks to [Rob Loach](https://github.com/RobLoach) for [pull request #6](https://github.com/docpad/docpad-plugin-less/pull/6)
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ By default we compress the output for all environments except the development en
These amazing people are maintaining this project:

- Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)
- Rob Loach <robloach@gmail.com> (https://github.com/RobLoach)

### Sponsors

Expand All @@ -68,7 +69,8 @@ No sponsors yet! Will you be the first?

These amazing people have contributed code to this project:

- Benjamin Lupton <b@lupton.cc> (https://github.com/balupton) - [view contributions](https://github.com/docpad/docpad-plugin-less/commits?author=balupton)
- [Benjamin Lupton](https://github.com/balupton) <b@lupton.cc>[view contributions](https://github.com/docpad/docpad-plugin-less/commits?author=balupton)
- [Rob Loach](https://github.com/RobLoach) <robloach@gmail.com>[view contributions](https://github.com/docpad/docpad-plugin-less/commits?author=RobLoach)

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

Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docpad-plugin-less",
"version": "2.3.0",
"version": "2.3.1",
"description": "Adds support for the LESS CSS pre-processor to DocPad",
"homepage": "http://docpad.org/plugin/less",
"license": {
Expand All @@ -25,10 +25,12 @@
],
"author": "2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me), 2011 Benjamin Lupton <b@lupton.cc> (http://balupton.com)",
"maintainers": [
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)"
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)",
"Rob Loach <robloach@gmail.com> (https://github.com/RobLoach)"
],
"contributors": [
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)"
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)",
"Rob Loach <robloach@gmail.com> (https://github.com/RobLoach)"
],
"bugs": {
"url": "http://docpad.org/plugin/less/issues"
Expand All @@ -49,7 +51,7 @@
"devDependencies": {
"docpad": "6",
"coffee-script": "~1.6.2",
"projectz": "~0.3.0"
"projectz": "~0.3.2"
},
"main": "./out/less.plugin.js",
"scripts": {
Expand Down

0 comments on commit e4d4935

Please sign in to comment.