Permalink
Browse files

check coffee-script package when run coffee script app

  • Loading branch information...
kaichen committed Jan 21, 2011
1 parent 455ecd3 commit fff54ed1bd3134f766a3a86576933d087e9d31c9
Showing with 6 additions and 0 deletions.
  1. +6 −0 bin/spark
View
@@ -270,9 +270,15 @@ function getAppPath() {
log('detected server.js');
path += 'server';
} else if (exists(path + 'app.coffee')) {
+ if (!require.extensions['.coffee']) {
+ abort('coffee-script not found, try `npm install coffee-script`');
+ }
log('detected app.coffee');
path += 'app';
} else if (exists(path + 'server.coffee')) {
+ if (!require.extensions['.coffee']) {
+ abort('coffee-script not found, try `npm install coffee-script`');
+ }
log('detected server.coffee');
path += 'server';
} else {

0 comments on commit fff54ed

Please sign in to comment.