Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

allow coffee scripts for config files

  • Loading branch information...
commit c82df260eaf46a47cc1ac6c5fbccc6a5f0fae387 1 parent 7cae44c
@mgutz authored
Showing with 6 additions and 1 deletion.
  1. +2 −1  lib/settings.js
  2. +3 −0  package.json
  3. +1 −0  src/lib/settings.coffee
View
3  lib/settings.js
@@ -5,10 +5,11 @@
AUTO-GENERATED. DO NOT EDIT.
============================================================================*/
// Original file: src/lib/settings.coffee
-var Settings, assert, merger;
+var Settings, assert, coffee, merger;
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
assert = require('assert');
merger = require('../support/merger');
+coffee = require('coffee-script');
Settings = function(pathOrModule, options) {
this.options = options != null ? options : {};
if (typeof pathOrModule === 'string') {
View
3  package.json
@@ -4,5 +4,8 @@
"author": "Mario Gutierrez <mario@mgutz.com>",
"main": "index",
"repository" : "git://github.com/mgutz/node-settings"
+ "dependencies": [
+ "coffee-script": ">= 1.1.1"
+ ]
}
View
1  src/lib/settings.coffee
@@ -5,6 +5,7 @@
assert = require('assert')
merger = require('../support/merger')
+coffee = require('coffee-script') # allows use of coffee for configs
# TODO - add watcher on settings file
Please sign in to comment.
Something went wrong with that request. Please try again.