CoffeScript compiled output

47 views
Skip to first unread message

J Lee

unread,
Jun 3, 2011, 10:01:11 PM6/3/11
to middleman-users
Hello:

I added a CoffeScript file in views/javascripts folder and it works
great when running mm-server, but when I run the mm-build command it
does not seem to output the compiled script into the build/javascripts
folder. Is there a setting or something in the config.rb that I need
to add?

Thanks!

Thomas Reynolds

unread,
Jun 3, 2011, 10:05:34 PM6/3/11
to middlem...@googlegroups.com
As far as I know, this should be working. What is the coffeescript file named?

Also, can you confirm you're running middleman version 1.2.7?

-Thomas

J Lee

unread,
Jun 3, 2011, 10:07:13 PM6/3/11
to middleman-users
I'm using 1.2.7 & the file is named global.coffee

Thomas Reynolds

unread,
Jun 3, 2011, 10:16:51 PM6/3/11
to middlem...@googlegroups.com
For all templated files, you need to include an output extension in the file name. Rails tries to guess at this, but for building you need to be explicit. So,

global.js.coffee

or

style.css.scss

-Thomas

J Lee

unread,
Jun 3, 2011, 10:21:28 PM6/3/11
to middleman-users
Thanks Thomas! That did the trick.

On Jun 3, 7:16 pm, Thomas Reynolds <tdre...@gmail.com> wrote:
> For all templated files, you need to include an output extension in the file name. Rails tries to guess at this, but for building you need to be explicit. So,
>
> global.js.coffee
>
> or
>
> style.css.scss
>
> -Thomas
>
>
>
> On Friday, June 3, 2011 at 7:07 PM, J Lee wrote:
> > I'm using 1.2.7 & the file is named global.coffee
>
Reply all
Reply to author
Forward
0 new messages