Skip to content

Commit

Permalink
feat: add Hilo.version
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Jun 20, 2016
1 parent bebc846 commit aab1300
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ var createBuildFormatTask = function(type){
cwd:pkg.sources.dir,
base:pkg.sources.dir
})
.pipe(gulpif(function(file){
return file.path.indexOf('Hilo.js') > -1;
}, replace('{{$version}}', pkg.version)))
.pipe(replace(licenseCommentReg, ''))
.pipe(replace(apiCommentReg, '$1'))
.pipe(transformModule(type))
Expand Down
5 changes: 5 additions & 0 deletions src/core/Hilo.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ var win = window, doc = document, docElem = doc.documentElement,
uid = 0;

return {
/**
* Hilo version
* @type String
*/
version:'{{$version}}',
/**
* @language=en
* Gets a globally unique id. Such as Stage1, Bitmap2 etc.
Expand Down

0 comments on commit aab1300

Please sign in to comment.