[Build] Move version comment header into template file

Fixes #1541
This commit is contained in:
Victor Woeltjen 2017-06-02 12:29:14 -07:00
parent 485944a782
commit c1128c3156
2 changed files with 8 additions and 9 deletions

View File

@ -78,15 +78,7 @@ gulp.task('scripts', function () {
var requirejsOptimize = require('gulp-requirejs-optimize');
var replace = require('gulp-replace-task');
var header = require('gulp-header');
var comment = [
'/**',
' * Open MCT https://nasa.github.io/openmct/',
' * Version: ${version}',
' * Built: ${timestamp}',
' * Revision: ${revision}',
' * Branch: ${branch}',
' */\n'
].join('\n');
var comment = fs.readFileSync('src/about.frag');
return gulp.src(paths.main)
.pipe(sourcemaps.init())

7
src/about.frag Normal file
View File

@ -0,0 +1,7 @@
/**
* Open MCT https://nasa.github.io/openmct/
* Version: ${version}
* Built: ${timestamp}
* Revision: ${revision}
* Branch: ${branch}
*/