This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
ember-git-version with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
This addon helps you quickly get the current git revision hash is Short SHA form.
Get started by installing the addon using npm:
npm install ember-git-version --save
Once installed you now have access to the current git revision through a new config property
To access the new property, import the config whenever needed.
import config from '../config/environment'; ... console.log(config.currentRevision); ...
Note: The config import statement is a relative path.
Now you can make sure any issues are tracked against the correct git revision!
git clonethis repository
ember test --server
For more information on using ember-cli, visit http://www.ember-cli.com/.