grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

[Bounty] Remove jQuery dependencies

Open Geczy opened this issue 9 years ago • 18 comments

Use native javascript, no jQuery libraries

Bountysource

Geczy avatar Sep 21 '17 20:09 Geczy

@artf any word? 🥇

Geczy avatar Sep 28 '17 20:09 Geczy

Unfortunately, it's taking more than I expected, especially with regressions and some issue with spectrum (which is a JQuery plugin), by the way, it's almost done just need to refactor few other modules and then I'll release the rc, here is the branch https://github.com/artf/grapesjs/tree/no-jquery

artf avatar Sep 29 '17 11:09 artf

@artf how can I help you to achieve that? I cloned the repo and ran the tests against the no-jquery branch and some were skipped but the rest of them were fine

arthuralmeidap avatar Sep 29 '17 15:09 arthuralmeidap

thanks @arthuralmeidap I'd really appreciate any feedback when I'll publish a new release

artf avatar Sep 29 '17 23:09 artf

Hi guys, I've just published the first RC (npm install [email protected]) which you can try online here http://grapesjs.com/demo-no-jq.html

Few notes about this update: You don't need jQuery anymore but you can still use some of its API, which is possible thanks to the integration of https://github.com/kenwheeler/cash (An absurdly small jQuery alternative for modern browsers - 3.71 kb). With this approach, I break less stuff and still leave the possibility to manage the DOM easily (view.$el.find(...))

Any feedback is highly welcomed thk

artf avatar Oct 04 '17 23:10 artf

Hi @Geczy if the demo seems ok for you (or for anyone) I'll release it officially the next week

artf avatar Oct 06 '17 12:10 artf

@artf , the next release will come with all bug fixes?

arthuralmeidap avatar Oct 06 '17 13:10 arthuralmeidap

Gave it a test and it seems to be working in our environment! Great job

Geczy avatar Oct 06 '17 13:10 Geczy

@arthuralmeidap everything done until the latest release will be merged into this branch (plan to do it today 😬)

artf avatar Oct 09 '17 11:10 artf

@artf , thanks! Let me know if I can help you in anything!

arthuralmeidap avatar Oct 09 '17 12:10 arthuralmeidap

Ok it's out https://github.com/artf/grapesjs/releases/tag/v0.12.5 🎉 All demos are updated too

artf avatar Oct 10 '17 00:10 artf

@artf grapesjs still bundling jquery https://github.com/artf/grapesjs/blob/dev/package.json#L20

Geczy avatar Oct 11 '17 15:10 Geczy

oops! forgot to remove it, will update soon

artf avatar Oct 11 '17 19:10 artf

@Geczy npm updated

artf avatar Oct 11 '17 21:10 artf

@artf Just wanted to say amazing job on this. Excellent Work!

bayareawebpro avatar Oct 11 '17 22:10 bayareawebpro

thanks Dan

artf avatar Oct 12 '17 11:10 artf

@artf Amazing work!

musen avatar Nov 23 '17 07:11 musen

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 18 '19 06:09 lock[bot]