These are chat archives for brunch/brunch

10th
Sep 2015
Elan Shanker
@es128
Sep 10 2015 13:31
yeah looks strange. I’m not familiar enough with handlebars to have much idea why it’s coming out like that though. What is the output if you use the handlebars compiler directly outside of brunch?
Matthew Aho
@ahomatthew
Sep 10 2015 13:41
it looks fine
its something with how brunch is wrapping it with common i think
if i eval the result of template() it works lol
Elan Shanker
@es128
Sep 10 2015 13:42
what’s the output if you disable module wrapping in brunch config
Matthew Aho
@ahomatthew
Sep 10 2015 13:42
you mean to disable wrapping anything in common?
Elan Shanker
@es128
Sep 10 2015 13:43
yes, obviously it’ll break your output, just wondering what happens to the template compilation
Matthew Aho
@ahomatthew
Sep 10 2015 13:44
Looking for the config option to do that...
Elan Shanker
@es128
Sep 10 2015 13:44
there is a newer handlebars-brunch btw, have you tried using latest?
Matthew Aho
@ahomatthew
Sep 10 2015 13:45
ive tried all of the versions
Elan Shanker
@es128
Sep 10 2015 13:46
modules:
  wrapper: false
Matthew Aho
@ahomatthew
Sep 10 2015 13:48
with that i found it in my js file like this https://gist.github.com/ahomatthew/37cf664e6e808ccfe46f
i currently have it on an older version of hbs
i can put it back to the lastest and try said test
do you have a specific desirable known working version of handlebars-brunch, brunch, and handlebars i should be at
Elan Shanker
@es128
Sep 10 2015 13:49
nope, not a handlebars user
Matthew Aho
@ahomatthew
Sep 10 2015 13:49
i've tried almost every permutation i could
Elan Shanker
@es128
Sep 10 2015 13:50
you could look for a skeleton that uses it and see what happens in a stripped down version
Matthew Aho
@ahomatthew
Sep 10 2015 13:50
thats true
almost all the hbs skeletons are pretty old, maybe for this reason :P
Matthew Aho
@ahomatthew
Sep 10 2015 13:56
Elan Shanker
@es128
Sep 10 2015 13:57
same dep versions to generate that one?
Matthew Aho
@ahomatthew
Sep 10 2015 13:58
same node npm and brunch
handlebars brunch says, "latest"
Elan Shanker
@es128
Sep 10 2015 13:58
how about handlebars-brunch and handlebars?
npm ls
npm ls | grep handlebars
Matthew Aho
@ahomatthew
Sep 10 2015 13:59
Elan Shanker
@es128
Sep 10 2015 14:00
that’s with the skeleton? seems like you had the same in your project, right?
Matthew Aho
@ahomatthew
Sep 10 2015 14:00
maybe its the fact that handlebars folder doesn't get copied into my handlebars-brunch folder?
in this skeleton it is
i could just copy the modules over lol
Elan Shanker
@es128
Sep 10 2015 14:00
not sure what you mean by that
I’m thinking it is not an issue of the deps
Matthew Aho
@ahomatthew
Sep 10 2015 14:01
node_modules/handlebars-brunch/handlebars/ exists
in the skeleton
in my project, its not
Elan Shanker
@es128
Sep 10 2015 14:01
if you install 1.9.1 it should
well actually I’m still confused by what you mean
node_modules/handlebars-brunch/node_modules/handlebars is that what you meant?
if you’re using npm v3 then there is this issue: brunch/handlebars-brunch#40
but it would be a separate problem from the one you’ve shown
Matthew Aho
@ahomatthew
Sep 10 2015 14:06
hm tried at 1.9.1 again with handlebars@2.0.0 still same issue lol
Elan Shanker
@es128
Sep 10 2015 14:08
seems like it’s not the deps
Matthew Aho
@ahomatthew
Sep 10 2015 14:08
gotta be something else
Elan Shanker
@es128
Sep 10 2015 14:08
something about your project code or config
Matthew Aho
@ahomatthew
Sep 10 2015 14:09
could having another node module be messing with it?
maybe with a different dep?
Elan Shanker
@es128
Sep 10 2015 14:10
like what?
what’s your full list of plugins for this project?
Matthew Aho
@ahomatthew
Sep 10 2015 14:11
async
brunch
chalk
css-brunch
glob
grunt
grunt-concurrent
grunt-contrib-clean
grunt-contrib-copy
grunt-contrib-jst
grunt-contrib-uglify
grunt-contrib-watch
grunt-exec
grunt-include-source
grunt-mocha-webdriver
grunt-newer
grunt-nodemon
handlebars-brunch
javascript-brunch
jst-templates-brunch
less-brunch
load-grunt-tasks
lodash
maxmin
mocha
phantomjs
time-grunt
uglify-js
underscore
wd
not necessarily using them all
ostensibly i could remove them all and except handlebars brunch and start there lol
Elan Shanker
@es128
Sep 10 2015 14:12
what is jst-tempates-brunch for?
Matthew Aho
@ahomatthew
Sep 10 2015 14:12
im trying to support old jst templates
underscore templates
as well as move to handlebars templates
Elan Shanker
@es128
Sep 10 2015 14:13
try disabling that plugin temporarily
Matthew Aho
@ahomatthew
Sep 10 2015 14:28
hah, i just can't even. i've completely removed all node_modules except handlebars-brunch@1.9.1, completely undone the config to only compile the template and it's still doing it!
Elan Shanker
@es128
Sep 10 2015 14:32
gotta be something somewhere
Matthew Aho
@ahomatthew
Sep 10 2015 15:37
i got it to stop returning that string, but then it just returned an empty object now
so i give up
lol