@milestones/ember
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@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.

Readme

Keywords

Package Sidebar

Install

npm i @milestones/ember

Weekly Downloads

1,059

Version

1.0.4

License

MIT

Unpacked Size

450 kB

Total Files

122

Last publish

Collaborators

  • salsify-jenkins-ci
  • dfreeman
  • jamescdavis