[Build] Simplify header template

This commit is contained in:
Victor Woeltjen 2017-06-02 12:23:57 -07:00
parent 6de5f73d78
commit beb24adf7a

View File

@ -81,10 +81,10 @@ gulp.task('scripts', function () {
var comment = [ var comment = [
'/**', '/**',
' * Open MCT https://nasa.github.io/openmct/', ' * Open MCT https://nasa.github.io/openmct/',
' * Version: ${pkg.version}', ' * Version: ${version}',
' * Built: ${pkg.timestamp}', ' * Built: ${timestamp}',
' * Revision: ${pkg.revision}', ' * Revision: ${revision}',
' * Branch: ${pkg.branch}', ' * Branch: ${branch}',
'*/\n' '*/\n'
].join('\n'); ].join('\n');
@ -93,7 +93,7 @@ gulp.task('scripts', function () {
.pipe(requirejsOptimize(options.requirejsOptimize)) .pipe(requirejsOptimize(options.requirejsOptimize))
.pipe(sourcemaps.write('.')) .pipe(sourcemaps.write('.'))
.pipe(replace(options.replace)) .pipe(replace(options.replace))
.pipe(header(comment, { pkg: options.replace.variables})) .pipe(header(comment, options.replace.variables))
.pipe(gulp.dest(paths.dist)); .pipe(gulp.dest(paths.dist));
}); });