パッケージの詳細

ember-cli-deploy-display-revisions

ember-cli-deploy57.3kMIT3.0.0

Display a list of deployed revisions using ember-cli-deploy.

ember-addon, ember-cli-deploy-plugin

readme

Ember-cli-deploy-display-revisions

Display a list of deployed revisions using ember-cli-deploy. This plugin is for ember-cli-deploy >= 0.5.0.

Installation

  • ember install ember-cli-deploy-display-revisions

Configuration Options

Defaults

  ENV['display-revisions'] = {
    amount: 10,
    revisions: function(context) {
      return context.revisions;
    }
  }

amount

Number of revisions displayed in the results table

Default: 10

revisions

The data to be displayed

Default: context.revisions, usually received from fetchRevisions

Usage

  • ember deploy:list <environment> to list the latest 10 revisions
  • ember deploy:list --amount <N> <environment> to list the latest <N> revisions

Passing revisions

ember-cli-deploy-display-revisions expects the fetchRevisions to be implemented by your index plugin, filling the revisions variable in context in the following format:

[
  {
    revision: 'abc123', // mandatory
    version: 'v1',
    timestamp: 1438232435000, // milliseconds since epoch
    deployer: 'cats'
  },
  {
    revision: 'def456',
    version: 'v2',
    timestamp: 1032123128000,
    deployer: 'dogs',
    active: true // indicate whether this revision is activated
  }
]

Omitted keys are not displayed in listing the results.

Tests

  • yarn test

Why ember build and ember test don't work

Since this is a node-only ember-cli addon, this package does not include many files and dependencies which are part of ember-cli's typical ember build and ember test processes.

更新履歴

v3.0.0 (2023-06-02)

:boom: Breaking Change

  • #71 [BREAKING] Update dependencies and node.js version requirements (@lukemelia)
  • #57 [breaking] Switch to Github Actions for CI (@jrjohnson)

Committers: 3

v2.1.2 (2020-10-27)

:bug: Bug Fix

  • #42 Luxon Take 3: Use fromJSDate instead of fromISO for ember-cli-deploy-revision-data (@kpfefferle)

Committers: 1

v2.1.1 (2020-10-23)

:bug: Bug Fix

Committers: 1

v2.1.0 (2020-10-02)

:house: Internal

Committers: 1

v2.0.0 (2020-05-16)

:boom: Breaking Change

  • #24 [BREAKING] Require node 10 or higher, and update ember-cli (@lukemelia)

:house: Internal

Committers: 1

Change Log

1.0.1 (2018-12-12)

Full Changelog

Merged pull requests:

v1.0.0 (2017-04-06)

Full Changelog

No changes from 1.0.0-beta.0

v1.0.0-beta.0 (2017-03-25)

Full Changelog

Merged pull requests:

v0.2.2 (2016-06-15)

Full Changelog

Merged pull requests:

  • Resolve core-object deprecation warnings. #12 (blimmer)

v0.2.1 (2016-04-01)

Full Changelog

Merged pull requests:

  • Move lodash to be a dependency instead of a devDependency #10 (lukemelia)

v0.2.0 (2016-04-01)

Full Changelog

Merged pull requests:

v0.1.2 (2016-02-23)

Full Changelog

Merged pull requests:

v0.1.1 (2016-02-07)

Full Changelog

Merged pull requests:

v0.1.0 (2015-10-25)

Full Changelog

Merged pull requests:

0.0.1 (2015-07-31)

* This Change Log was automatically generated by github_changelog_generator