Name: meteor-build-info
Owner: practicalmeteor
Description: null
Created: 2016-01-09 05:24:42.0
Updated: 2016-03-18 01:49:54.0
Pushed: 2016-01-09 23:17:39.0
Homepage: null
Size: 9
Language: CoffeeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A meteor build plugin that adds the following fields to a global BuildInfo object, both server side and client side:
The CI (continuous integration) build number, if it exists, or 0, if it doesn't.
Checks for the following environment variables:
Stored as an integer.
The date and time at which the meteor app was built, stored as a string in simplified extended ISO 8601 format.
Any data found in build-info.json is added to BuildInfo too.
Create a build-info.json file in the root of your meteor app. It can be either an empty json or include any data you want to add to BuildInfo.
I recommend you add at least an appVersion field, in semver format (i.e. 1.0.0), that you should update from time to time.
Alternatively, you can also add the build-info.json file from a package, using:
addFiles('build-info.json');
Support the following placeholder substitutions in build-info.json:
Environment variable substitution, in the bash like format: ${ENV_VAR_NAME}
Command substitution, in the bash like format: $(cmd)
Predefined support for more more git, github and CI related properties, such as repo name, branch name, commit hash, committer, etc.
Support specifying server only properties in build-info.json
MIT