Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for HMR with elm-hot #2378

Closed
wants to merge 729 commits into from
Closed

Conversation

ktosiek
Copy link
Contributor

@ktosiek ktosiek commented Dec 8, 2018

↪️ Pull Request

This PR adds integration with elm-hot - the HMR solution for Elm (at least I don't know about any other :-)). I've published this code before as a plugin, and after a suggestion from @domenkozar decided it would make more sense upstream.

💻 Examples

This will help when editing the app without changing the type of the app's model. Visual tweaks or testing the update logic should be much easier with working HMR.

🚨 Test instructions

Editing an Elm app (like changing a string) should cause the changes to be applied, without refreshing the page or changing the app's state.

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

devongovett and others added 30 commits April 15, 2018 19:58
* handle empty config && asset files

* remove bad empty asset solution
The field is deprecated and replaced with package.module. Additionally it caused many issues with packages that used it incorrectly. Fixes parcel-bundler#844, parcel-bundler#1037, parcel-bundler#1048, parcel-bundler#1062.
This prevents EMFILE errors on large projects caused by running out of file descriptors.
padmaia and others added 16 commits October 19, 2018 15:28
* update postcss and deps

* lock down bsb-js to 1.0.2 to fix node v6

* Update package.json
As toml is an abandoned package, switch to @iarna/toml
for implementation of the latest toml spec (v0.5.0).
Also remove tomlify-j0.4, as @iarna/toml supports encoding
and decoding.
Resolves parcel-bundler#2258.
@domenkozar
Copy link

It also probably needs elm-hot dependency? :)

@ktosiek
Copy link
Contributor Author

ktosiek commented Dec 10, 2018

Doesn't localRequire take care of installing dependencies?

@domenkozar
Copy link

Ah, could be. I wonder why no tests ran via CI.

@DeMoorJasper
Copy link
Member

@ktosiek yes localRequire does that but probably a good idea to add it to devDeps to run tests a lil faster and reliable

Sent with GitHawk

@ktosiek
Copy link
Contributor Author

ktosiek commented Dec 10, 2018

@DeMoorJasper thank you, I've added it.
@domenkozar I guess because I've created the PR against the 1.x branch.

I'm not sure what the status is on 1.x vs 2.x, if the 1.x branch isn't developed anymore I'd be happy to rebase onto 2.x.

@DeMoorJasper
Copy link
Member

DeMoorJasper commented Dec 10, 2018

@ktosiek v1.x is still being actively developed and maintained.

However the core team is currently mainly focusing on v2.x afaik.
It's still pretty far from being released as the latest stable version of parcel, so contributions to parcel 1 are still very welcome :)

Not sure why CI didn't run though

@DeMoorJasper
Copy link
Member

DeMoorJasper commented Dec 10, 2018

@ktosiek I just saw why the tests aren't running, the v1.x branch is a backup of master before the monorepo. The master branch is the new v1.x branch

Could you rebase this on the master branch?

@ktosiek
Copy link
Contributor Author

ktosiek commented Dec 10, 2018

Sure! I've assumed master is 2.x, because of the amount of changes :-)

@ktosiek ktosiek changed the base branch from 1.x to master December 10, 2018 22:10
@ktosiek ktosiek mentioned this pull request Dec 10, 2018
3 tasks
@ktosiek
Copy link
Contributor Author

ktosiek commented Dec 10, 2018

I'm not sure what happened here, I've opened #2388 in place of this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet