carrot / roots-browserify

Roots v3 extension that uses browserify as a javascript pipeline
Other
21 stars 8 forks source link

Build with jQuery #20

Closed lagden closed 8 years ago

lagden commented 9 years ago

I try to use roots-browserify with jQuery, but doesn't work!!

jescalan commented 9 years ago

Are you using a commonjs-compatible version of jquery? This issue needs a lot more detail for us to be able to help

lagden commented 9 years ago

I did exactly like that: https://github.com/iansinnott/roots-browserify-template

Well... The jQuery 2.1.4 has UMD declaration in the beginning!

I inserted some lines in the package.json, even so, it did not work!

"browser": {
  "jquery": "./node_modules/jquery/dist/jquery.js"
}

Here is my simple test: https://github.com/lagden/roots-test

Regards!

jescalan commented 8 years ago

@lagden just pulled down your test repo and ran it on my machine. everything worked perfectly. What version of roots are you using?

lagden commented 8 years ago

@jenius I am using roots@3.2.2, node@0.12.7 and npm@2.13.4

I did the test below:

Using the ws as web-server. Works

roots compile
ws -p 3132 -d public/

Using the roots watch. Fail

roots watch -p 3132

Did you run using the roots watch and checked the console?

jescalan commented 8 years ago

Downgrade to roots@3.1.0 and try again. There's an issue with 3.2.x right now thats causing some weird bugs.

lagden commented 8 years ago

roots@3.1.0 Success!! :metal:

Thanks for helping! I will keep watching!