mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 23:20:50 +00:00
[Build] Simplify header template
This commit is contained in:
parent
6de5f73d78
commit
beb24adf7a
10
gulpfile.js
10
gulpfile.js
@ -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));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user