ember-cli-deploy-html-revision-tagging
v0.0.1
Published
An ember-cli-deploy plugin to tag ember-cli-deploy-revision-data generated tag to your html file
Downloads
6
Maintainers
Readme
ember-cli-deploy-html-revision-tagging
An ember-cli-deploy plugin to tag the key generated from ember-cli-deploy-revision-data to your html file. It reads the
tagVariable
from your config file, and do a simple replacement to the same string in your html file with the revision key.
What is an ember-cli-deploy plugin?
A plugin is an addon that can be executed as a part of the ember-cli-deploy pipeline. A plugin will implement one or more of the ember-cli-deploy's pipeline hooks.
For more information on what plugins are and how they work, please refer to the Plugin Documentation.
Quick Start
To get up and running quickly, do the following:
Ensure ember-cli-deploy-revision-data and ember-cli-deploy-build are installed and configured
Install this plugin
Installation
Run the following command in your terminal:
ember install ember-cli-deploy-html-revision-tagging
ember-cli-deploy Hooks Implemented
For detailed information on what plugin hooks are and how they work, please refer to the Plugin Documentation.
didPrepare
Configuration Options
For detailed information on how configuration of plugins works, please refer to the Plugin Documentation.
Defaults
ENV["html-revision-tagging"] = {
tagVariable: '$ui-version'
}
Prerequisites
The following properties are expected to be present on the deployment context
object:
revisionKey
(provided by ember-cli-deploy-revision-data)distDir
(provided by ember-cli-deploy-build)