Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-build-info

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-build-info

Inject build information (version, current SHA) into your Ember app.

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

ember-cli-build-info

Inject build info into your routes, controllers, and services.

Note: this addon currently assumes you are using git for version control.

Information includes:

buildInfo: {
  version: '0.1.4', // pulled from package.json
  desc: 'v0.1.4-3-g53df212', // from shell command `git describe`
  commit: '53df212', // from `desc` above
}

In order to retrieve the git information, this addon runs a syncronous shell command using exec-sync.

Installation

npm install --save-dev ember-cli-build-info

Usage

The data is injected into routes, controllers, and services using the buildInfo key.

In a template:

<p>Version: {{buildInfo.version}}</p>
<p>SHA: {{buildInfo.commit}}</p>

In a route, controller, or service:

var buildInfo = this.buildInfo;

Configuration Options

There is currently only 1 configurable option. Customize using the buildInfoOptions hash in your Brocfile:

var app = new EmberApp({
  buildInfoOptions: {
    metaTemplate: 'version={VERSION}'
  }
});

metaTemplate

Allows you to inject a meta tag containing the build info. Defaults to false.

Available template keys include {VERSION}, {DESC}, and {COMMIT}. These keys will be replaced by the current build info values.

The example above would yeild:

<meta name="build-info" content="version:0.0.2"/>

Collaborating

This README outlines the details of collaborating on this Ember addon.

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

Keywords

FAQs

Package last updated on 13 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc