adapt_framework icon indicating copy to clipboard operation
adapt_framework copied to clipboard

Consider moving to BrowserSync

Open andrewhosgood opened this issue 9 years ago • 4 comments

Using something like https://browsersync.io/ would mean we wouldn't have to run two terminal windows; one for grunt dev and another for grunt server when building a course.

It also supports things like CSS injection where when a change in the source files occurs, it gets built and updated in the browser without having to refresh. There are also a load of options supporting simultaneous scrolling across devices etc. that make theme development in particular a load easier.

andrewhosgood avatar Dec 21 '16 09:12 andrewhosgood

i did build a version of it for adapt a while ago, using gulp + browsersync instead of grunt. the thing i didn't like about it is that the browsersync package is huge and has to be compiled for each system. this compilation requirement means you can't pick up a build with the node_modules folder from windows > unix or vice-versa without having to reinstall node_modules, and it's huge - if i'm honest, it all got rather tedious.

oliverfoster avatar Dec 21 '16 17:12 oliverfoster

i suggest we move away from grunt/gulp/etc and go for webpack or something similar which has an entire development environment ethos built right in.

oliverfoster avatar Dec 21 '16 17:12 oliverfoster

I suppose it is quite large. Is there not a way to make an "Adapt tools" package which installs all of these Node modules globally? That might make for quicker installing, although I suppose I can see issues with different versions of modules...

It was just a thought. Webpack would be a step forward though :)

andrewhosgood avatar Dec 22 '16 09:12 andrewhosgood

added look at webpack to #835

moloko avatar Mar 06 '17 12:03 moloko