Permalink
Browse files

Flatten namespace

  • Loading branch information...
1 parent 8ab3bec commit 7877a330e472ef9dc2fae3a57e9c6a35c919c03e @sstephenson committed May 23, 2011
View
@@ -11,7 +11,7 @@ build = (callback) ->
bundle = (callback) ->
run 'npm install', callback
-task "build", "Build lib/eco/ from src/eco/", ->
+task "build", "Build lib/ from src/", ->
build()
task "test", "Run tests", ->
@@ -63,11 +63,11 @@ task "dist", "Generate dist/eco.js", ->
version = JSON.parse(read "package.json").version
modules =
- "eco": read "lib/eco/index.js"
- "./compiler": read "lib/eco/compiler.js"
- "./preprocessor": read "lib/eco/preprocessor.js"
- "./scanner": read "lib/eco/scanner.js"
- "./util": read "lib/eco/util.js"
+ "eco": read "lib/index.js"
+ "./compiler": read "lib/compiler.js"
+ "./preprocessor": read "lib/preprocessor.js"
+ "./scanner": read "lib/scanner.js"
+ "./util": read "lib/util.js"
"strscan": read "node_modules/strscan/lib/strscan.js"
"coffee-script": stub "CoffeeScript"
View
@@ -2,7 +2,6 @@
var path = require('path');
var fs = require('fs');
-var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
-require(lib + '/eco');
-require(lib + '/eco/command').run();
+require('..');
+require('../lib/command').run();
@@ -1,7 +1,7 @@
(function() {
var eco, fs;
fs = "fs";
- eco = require("eco");
+ eco = require(".");
exports.run = function() {
var source, stdin;
source = "";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -6,8 +6,7 @@
{ "type": "MIT"
, "url": "http://github.com/sstephenson/eco/raw/master/LICENSE"
}]
-, "directories": {"lib": "./lib"}
-, "main": "./lib/eco/index.js"
+, "main": "./lib/index.js"
, "repository":
{ "type": "git"
, "url": "http://github.com/sstephenson/eco.git"
@@ -1,5 +1,5 @@
fs = "fs"
-eco = require "eco"
+eco = require "."
exports.run = ->
source = ""
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
-{preprocess} = require "../lib/eco/preprocessor"
+{preprocess} = require "../lib/preprocessor"
{fixture} = require "./lib/fixtures"
module.exports =
View
@@ -1,4 +1,4 @@
-{scan} = require "../lib/eco/scanner"
+{scan} = require "../lib/scanner"
module.exports =
"'<%' begins a code block": (test) ->

0 comments on commit 7877a33

Please sign in to comment.