ember-cli-deploy-version-file

0.1.0 • Public • Published

ember-cli-deploy-version-file

A small ember-cli-deploy plugin to generate a version.json file which will be deployed.

Compatibility

  • Node.js v10 or above

Installation

ember install ember-cli-deploy-version-file

Usage

// config/deploy.js

let ENV = {
  // other plugins...

  'version-file': {},
};

By default, it will use the version from package.json and expose it in the file /version.json at the root of your build:

{ "version": "1.0.0" }

You can also overwrite the defaults by providing configuration:

// config/deploy.js

let ENV = {
  // other plugins...

  'version-file': {
    version: '1.2.0',
    fileName: 'assets/custom-version.json',
    propertyName: 'release',
  },
};

Will result in a file assets/custom-version.json with the content:

{ "release": "1.2.0" }

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i ember-cli-deploy-version-file

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

4.29 kB

Total Files

5

Last publish

Collaborators

  • mydea