1.0.4 • Published 3 years ago

@milestones/ember v1.0.4

Weekly downloads
752
License
MIT
Repository
github
Last release
3 years ago

@milestones/ember

The @milestones/ember addon integrates with the Ember runtime and ember-cli to provide zero-config setup for working with milestones.

Full documentation can be found at https://salsify.github.io/milestones/docs/ember.

Runtime

All milestones are configured by @milestones/ember to use RSVP for their promise implementation, ensuring that any code that executes as a result of a milestone occurs within a runloop.

Build

By default, milestones will be stripped from your code in production builds using @milestones/babel-plugin-strip-milestones. This behavior is always controlled by the host application, and it can be overridden in the host's ember-cli-build.js.

let app = new EmberApp(defaults, {
  milestones: {
    stripMilestones: false, // or whatever your preference
  },
});

Ember Concurrency

If ember-concurrency is present in your project, any milestones you create will be task-like promises that will bubble cancelation appropriately. They will also be cancelable from your test code.