ImageGrid/Viewer/version.js.tpl
Alex A. Naanou 6306a48f0e some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2022-01-29 00:34:49 +03:00

33 lines
1.2 KiB
Smarty

/**********************************************************************
*
* NOTE: version.js is generated automatically by Makefile from a template
* do not edit directly.
* Edit version.js.tpl instead.
*
* Build: $BUILD
* Commit: $COMMIT
*
* NOTE: the build/commit data is of the time the version.js was built
* but may not be the current/latest...
*
**********************************************************************/
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)
(function(require){ var module={} // make module AMD/node compatible...
/*********************************************************************/
// The version lives in package.json
//
// We need to be able to read the correct version in the folowing
// contexts:
// - nodejs/electron - can load JSON directly
// - browser (remote) - can load json via the require('json!package.json')
// - browser (local) - can't get access to .json files
// Thus the only way around this is to generate this file from a template.
module.version = '$VERSION'
/**********************************************************************
* vim:set ts=4 sw=4 ft=javascript : */ return module })