Package Exports
- ember-helper-locale-date
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-helper-locale-date) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ember-helper-locale-date
Purpose
These helpers are optimized to natively format dates according to the website visitor's locale. Singleton
Intl.DateTimeFormat instances are used for basic formatting. Once you pass options into
the helper all optimization is tossed as the date instance's toLocaleString() method is invoked
rather than the more desirable Intl.DateTimeFormat instance's format() method.
Check out the docs for further information...
DOCS
http://docs.ember-helper-locale-date.cybertooth.io
DEMO
http://demo.ember-helper-locale-date.cybertooth.io
PERFORMANCE
http://demo.ember-helper-locale-date.cybertooth.io/#/performance
Tested Against
Collaboration Information
This README outlines the details of collaborating on this Ember add-on.
Installation
git clone git@github.com:cybertoothca/ember-helper-locale-date.gitcd ember-helper-locale-date
With NPM
npm installWith Yarn
yarnRunning
ember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:eachto test your add-on against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com.
Linking This Add-on For Local Testing
Linking
- From the command line at the root of this project run the
npm linkcommand to link this add-on within your local node repository. - From the other Ember project that you wish to test this add-on
in, execute the following command:
npm link ember-helper-locale-date. - Now in that same other Ember project, you should go into the
package.jsonand add the ember add-on with the version *. It will look something like this:"ember-helper-locale-date": "*". Now when/if you executenpm installon this other project it will know to look for the linked add-on rather than fetch it from the central repository.
Unlinking
- Remove the add-on from your local node repository with the following
command (that can be run anywhere):
npm uninstall -g ember-helper-locale-date - Remove the reference to the
ember-helper-locale-datein your other project'spackage.json. - Run an
npm pruneandbower prunefrom the root of your other project's command line.