Phoenix inside a library (mix task). Should I use brunch?

Hi everyone.

I have a project that will be a library (mix task) available through Part of it needs a web server to visualize things in the browser, so I chose phoenix. I need javascript libraries like jquery, among others (2, 3 tops).

Should I use brunch to manage js dependencies? It feels heavy to me to make the user install npm and set up everything to run the task. I am leaning into adding manually the js dependencies to priv/static.

What do you think?

I’d support a couple methods, either include them via priv/static if they are truly static, or else would expose the ES6 or so modules and other base sources for inclusion otherwise if they wanted to do something more detailed or more processing.

1 Like