An early look at what hot reloading might be like in the ember ecosystem
JavaScript HTML CSS
Latest commit 9ad9a1c Feb 15, 2017 @toranb Released v0.1.4
Permalink
Failed to load latest commit information.
addon [BUILD]: updated for ember-getowner-polyfill Jan 13, 2017
app Moves the Plugin to an initializer so we can remove the dependency to… Aug 28, 2016
blueprints Adds blueprint to simplify the installation of the resolver Aug 27, 2016
config Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
lib Fixes hot-reload for components with external templates Sep 26, 2016
tests [TESTS]: updated clear cache test for glimmer 2 Nov 19, 2016
vendor Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
.bowerrc Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
.editorconfig Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
.ember-cli Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
.gitignore Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
.jshintrc Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
.npmignore Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
.travis.yml [BUILD]: removed ember beta from the acceptable build failures list Nov 19, 2016
.watchmanconfig Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
LICENSE.md Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
README.md [DOCS]: updated readme to show 2.9.0 stable is compat w/ v0.1.1 Oct 23, 2016
bower.json Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
ember-cli-build.js Initial Commit from Ember CLI v2.7.0 Aug 13, 2016
index.js Fixes this to make sure we support node 0.12 and adds this to travis … Sep 26, 2016
package.json Released v0.1.4 Feb 15, 2017
testem.js Initial Commit from Ember CLI v2.7.0 Aug 13, 2016

README.md

Build Status

Ember-cli-hot-loader

An early look at what hot reloading might look like in the ember ecosystem

Installation

ember install ember-cli-hot-loader

During installation Ember CLI will prompt you to update the resolver code. This is required for ember-cli-hot-loader to work. If you have never modified the resolver, you can simply accept the changes or do a diff and update it manually. The final code should look something like:

import Resolver from 'ember-resolver';
import HotReloadMixin from 'ember-cli-hot-loader/mixins/hot-reload-resolver';

export default Resolver.extend(HotReloadMixin);

How to use this addon

After installing it, simply run ember serve as usual, any changes you do to supported types, will result in a hotreload (no brower refresh). Any additional changes will result in a regular liveReload.

Supported Types

At the moment, we only hotreload on component and its templates. ember-cli-styles-reloader will do the styles for you. For support for other types you can follow https://github.com/toranb/ember-cli-hot-loader/issues/6 or help us implement some of those.

Example application

To see this in action, you can clone this repo and run ember serve.