๐ป ronanmccabe.app
ronanyeah / elm-phoenix-example Goto Github PK
View Code? Open in Web Editor NEWminimum elm + phoenix setup, with webpack
License: GNU General Public License v3.0
minimum elm + phoenix setup, with webpack
License: GNU General Public License v3.0
๐ป ronanmccabe.app
Please note that this is absolutely not an issue, more an enhancement request, so feel free to close it.
I'm completely new to Elm and I have tried to understand how to have hot module reloading as an addition of this repository.
BTW this repo was by far the best for me to understand how all the bits and pieces go together, so thanks for that ๐. I've spent some time adapting this to a Phoenix 1.3 project and it worked like a charm.
I think it would be nice to add a hot reload option and explain the commit that adds it, as there are so many contradictory sources around that it's a nightmare (on Elm street) to pick what's good, so having this here would be really great.
I tried with webpack-combine-loaders
by having a elm-hot
loader and elm-webpack
loader combined, but I ended up having my full page reloaded anyway.
A good addition to this boilerplate would be a very basic MainTest.elm
file to test whatever is being achieved in Main.elm
, but also very much acting as a guideline on how to get things going regarding testing.
Looks like the README has not been updated for the Phoenix 1.3 update
Before running mix npm watch
:
ps aux | grep webpack
(Nothing).
After running mix npm watch
3 times and Ctrl+C:
ps aux | grep webpack
doodloo 411 0.0 0.0 4612 756 ? S 15:21 0:00 /bin/sh -c webpack --watch
doodloo 412 29.4 0.8 1272796 142768 ? Sl 15:21 0:07 node webpack --watch
doodloo 543 0.0 0.0 4612 860 ? S 15:22 0:00 /bin/sh -c webpack --watch
doodloo 544 33.9 0.8 1271180 141352 ? Sl 15:22 0:06 node webpack --watch
doodloo 859 0.0 0.0 4612 760 ? S 15:22 0:00 /bin/sh -c webpack --watch
doodloo 860 41.7 0.8 1273840 142612 ? Rl 15:22 0:05 node webpack --watch
I noticed this, because each process compilation triggers all the others. Needless to say, my 6 CPUs are completely busy as this efficiently creates an infinite loop.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.