Fixes module name.
authordsc <david.schoonover@gmail.com>
Mon, 20 Feb 2012 02:12:03 +0000 (18:12 -0800)
committerdsc <david.schoonover@gmail.com>
Mon, 20 Feb 2012 02:12:03 +0000 (18:12 -0800)
Cokefile

index 7527c91..5384371 100644 (file)
--- a/Cokefile
+++ b/Cokefile
@@ -2,17 +2,13 @@ require 'buildtools'
 require 'buildtools/tasks'
 
 
-PROJECT_NAME = 'kraken-ui'
-MODULE_LINK  = "node_modules/#PROJECT_NAME"
-
-
-
+MODULE_LINK  = "node_modules/kraken"
 task \link 'Link package source to node_modules so the name resolves correctly' ->
     # Browser-based require doens't support relative requires, but things
-    # like `require 'kraken-ui/utils'` rarely work in node without this hack.
+    # like `require 'kraken/utils'` rarely work in node without this hack.
     mkdirp 'node_modules'
     if not exists MODULE_LINK
-        say "Creating #PROJECT_NAME symlink..."
+        say "Creating #{basename MODULE_LINK} symlink..."
         fs.symlinkSync "../lib", MODULE_LINK
 
 task \server 'Start dev server' ->