npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

ember-cli-build-date

1.1.0 • Public • Published

ember-cli-build-date

Build Status

Adds the build date for your app to the environment, and allows you to use it in the app code. Useful for letting your users see when your app was last updated.

Installation

Requires ember-cli 0.2.7 and ember 1.12 or newer.

  • ember install ember-cli-build-date

Usage

Access the app build date by importing your config/environment.js. The date is stored in config.APP.buildDate as a string formatted date.

Works well in combination with ember-cli-app-version. For example, here's a component to display the version and date, app/components/build-date.js:

import Ember from 'ember';
import config from '../config/environment';
 
export default Ember.Component.extend({
  buildDate: config.APP.buildDate,
  version: config.APP.version
});

And the template, app/templates/components/build-date.hbs:

Version {{version}}, released on {{buildDate}}

Running Tests

  • ember test

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Keywords

install

npm i ember-cli-build-date

Downloadsweekly downloads

21

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability