Skip to content

Commit

Permalink
Updates dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsc committed Dec 11, 2011
1 parent 8207ac2 commit 0298f3a
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,2 +1,3 @@
settings.md
node_modules
node_modules/
!node_modules/seq
20 changes: 13 additions & 7 deletions TODO.md
@@ -1,15 +1,21 @@
# todo

- **Bug:** compiler errors sometimes propagate to node?! well shit son, somebody needs tests.

## to ship

- Validate compiler module exists on startup
- Restructure middleware responder to use events to trigger compiler phases, remove `seq` due to need of `@die`. (State machine?)
- Allow nested `enabled` list for a more sane `cascade`
- Rename `enabled` to `compilers`
- Allow entries in `compilers` to be an identifier or a options/config object
- Add post-`write()` cleanup/finally event (which fires whether successful or not).

- Remove `yaml-python`, `CommonJS` compilers and create a `connect-compiler-extras` package for myself.


## later
- Make `setup()` a simple proxy to `CompilerMiddleware` class.
- Restructure middleware responder to use events to trigger compiler phases, remove `seq`. State machine?
- Add post-`write()` cleanup/finally event (which fires whether successful or not).
- Config: `on` for attaching event handlers to compiler phases
- Replace `#token` in config Strings.
- Allow nested `enabled` list for a more sane `cascade`
- Compile `./src` (coco) -> `./lib` (js)
- Move compilers to `lib/compilers.co`


## docs
Expand Down
10 changes: 5 additions & 5 deletions compiler.co
Expand Up @@ -149,7 +149,7 @@ class exports.CompilerMiddleware extends EventEmitter
log_prefix = ">>>> [compiler]"
console.log "#log_prefix Looking up compilers for '#{request.path}'..." if settings.log_level <= LOG.DEBUG

try do
try
Seq(settings.enabled)
.seqEach (id, i) ->
C = compilers[id]
Expand Down Expand Up @@ -260,7 +260,7 @@ class exports.Compiler extends EventEmitter
file += '\t'
# file += '\t' if file.length < 8

console.log "\t#level_name\t#compiler\t#file\t", ...msgs
console.log "#level_name\t#compiler\t#file\t", ...msgs
true


Expand Down Expand Up @@ -643,8 +643,7 @@ class exports.YamlCompiler extends ExternalCompiler

# Register Compilers

cs =
CoffeeScriptCompiler
[ CoffeeScriptCompiler
CocoCompiler
UglifyCompiler
JadeCompiler
Expand All @@ -655,8 +654,9 @@ cs =
CommonJSCompiler
SassRubyCompiler
YamlCompiler
].map register


for c of cs then register c



Expand Down
14 changes: 7 additions & 7 deletions package.co
Expand Up @@ -2,22 +2,22 @@ name : 'connect-compiler'
version : '0.1.0'
description : 'Dynamically recompile stale assets'
homepage : 'http://dsc.github.com/connect-compiler'
keywords : [ 'connect', 'middleware', 'compiler', 'development', 'coffee-script', 'coco', 'jade', 'stylus', 'less', 'css', 'minify' ]
keywords : <[ connect middleware compiler development coffee-script coco jade stylus less css minify ]>
author : 'David Schoonover (dsc@less.ly) <http://less.ly>'

main : 'compiler'
main : './compiler'
dependencies :
'seq' : '>= 0.3.4'
'seq' : '>= 0.3.4'
devDependencies :
'express' : '>= 2.5.1'
'coco' : '>= 0.6.7'
'expresso' : '>= 0.7.x'
'express' : '2.4.3'
'coffee-script' : '>= 1.1.1'
'jade' : '>= 0.16.2'
'coffee-script' : '>= 1.1.3'
'jade' : '>= 0.19.0'
'stylus' : '>= 0.19.0'
'nib' : '>= 0.2.0'
'less' : '>= 1.1.4'
'jison' : '>= 0.2.11'
'expresso' : '>= 0.7.x'
scripts : test:'expresso'

repository : type:'git', url:'git://github.com/dsc/connect-compiler.git'
Expand Down
12 changes: 6 additions & 6 deletions package.json
Expand Up @@ -17,20 +17,20 @@
"minify"
],
"author": "David Schoonover (dsc@less.ly) <http://less.ly>",
"main": "compiler",
"main": "./compiler",
"dependencies": {
"seq": ">= 0.3.4"
},
"devDependencies": {
"express": ">= 2.5.1",
"coco": ">= 0.6.7",
"expresso": ">= 0.7.x",
"express": "2.4.3",
"coffee-script": ">= 1.1.1",
"jade": ">= 0.16.2",
"coffee-script": ">= 1.1.3",
"jade": ">= 0.19.0",
"stylus": ">= 0.19.0",
"nib": ">= 0.2.0",
"less": ">= 1.1.4",
"jison": ">= 0.2.11"
"jison": ">= 0.2.11",
"expresso": ">= 0.7.x"
},
"scripts": {
"test": "expresso"
Expand Down

0 comments on commit 0298f3a

Please sign in to comment.