scotch / angular-brunch-seed

AngularJS + Brunch
Other
228 stars 78 forks source link

how to use custom (non-angular) coffee script files #107

Closed abbood closed 10 years ago

abbood commented 10 years ago

i'm migrating over code, and i have several custom made coffeescript files (ie that aren't part of the angular framework).. take a look at an example here.

If i put this file under the app/scripts folder.. I immediately get an error at the top: Uncaught syntaxError: illegal return statement.

how do i make it run? or does all my javasctript/coffeescript have to be part of the angular framework?

kylefinley commented 10 years ago

@abbood,

Is the error giving you a line number? Adding coffeescript shouldn't be an issue. I would try removing the last return, thought, that might be the issue.

abbood commented 10 years ago

yeah that works thanks!