Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.DS_Store | ||
material/ | ||
lib/coffeekup.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,13 @@ path = require 'path' | |
puts = console.log | ||
OptionParser = require('coffee-script/optparse').OptionParser | ||
|
||
# On coffee-script@0.9.6, argv looks like [filename], | ||
# On coffee-script@1.0.0, argv looks like ["node", "path/to/coffee", filename] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mauricemach
Author
Owner
|
||
if process.argv[0] is 'node' and process.argv.length >= 2 | ||
argv = process.argv[2..] | ||
else | ||
argv = process.argv[0..] | ||
|
||
render = (input_path) -> | ||
fs.readFile input_path, (err, contents) -> | ||
throw err if err | ||
|
@@ -36,11 +43,11 @@ switches = [ | |
] | ||
|
||
parser = new OptionParser switches, usage | ||
options = parser.parse process.argv | ||
options = parser.parse argv | ||
args = options.arguments | ||
delete options.arguments | ||
|
||
puts parser.help() if options.help or process.argv.length is 0 | ||
puts parser.help() if options.help or argv.length is 0 | ||
puts coffeekup.version if options.version | ||
if options.utils | ||
options.locals ?= {} | ||
|
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"name": "coffeekup", | ||
"description": "Markup as CoffeeScript.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"author": "Maurice Machado <maurice@bitbending.com>", | ||
"contributors": [ | ||
{"name": "Maurice Machado", "email": "maurice@bitbending.com"}, | ||
{"name": "Vladimir Dronnikov", "email": "dronnikov@gmail.com"} | ||
], | ||
"repository": {"type": "git", "url": "http://github.com/mauricemach/coffeekup.git"}, | ||
"dependencies": {"coffee-script": ">= 0.9.5"}, | ||
"dependencies": {"coffee-script": ">= 1.0.0"}, | ||
"keywords": ["template", "view", "coffeescript"], | ||
"bin": {"coffeekup": "./bin/coffeekup.coffee"}, | ||
"directories": {"lib": "./lib"}, | ||
"engines": {"node": ">= 0.2.5"} | ||
"engines": {"node": ">= 0.2.6"} | ||
} |
You're requiring coffeescript >= 1.0.0 in
package.json
, but you're doing this check anyway?