Adds your app's version to Ember Inspector's Info tab
JavaScript HTML CSS
Latest commit 02bd322 Feb 14, 2017 @danielleadams danielleadams committed with taras Add display flags for version helper (#36)
* Add tests for helper

* Remove dup dependency and upgrade test-loader

* Add regex'd return values for version

* Add util for version and sha regexp

* import regexp for tests; add expects

* add usage for flags to README

* Remove util from app; Export const regex

README.md

ember-cli-app-version Build Status [EmberObserver Badge](http://emberobserver.com/addons/ember-cli-app-version)

Adds your Ember App's version to Info tab in Ember Inspector. The version is taken from your project's package.json#version. If you add build metadata to the version, this addon will automatically append SHA to the end of the version.

Ember Inspector Info Tab

{{app-version}} helper

This addon provides {{app-version}} helper that allows you to show your current app version in your app.

The addon has flags to display parts of the version:

  • {{app-version hideSha=true}} // => 2.0.1
  • {{app-version hideVersion=true}} // => <git SHA>

Flags are false by default.

Installation

  • ember install ember-cli-app-version

Running Tests

  • git clone git@github.com:EmberSherpa/ember-cli-app-version.git
  • npm install
  • bower install
  • ember test

Building

  • ember build

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