mirror of
https://github.com/nasa/openmct.git
synced 2025-01-11 15:32:56 +00:00
Merge pull request #1606 from nasa/headers-1541
[Build] Remove/reorganize version headers
This commit is contained in:
commit
ecdcebce0c
12
gulpfile.js
12
gulpfile.js
@ -78,22 +78,14 @@ gulp.task('scripts', function () {
|
|||||||
var requirejsOptimize = require('gulp-requirejs-optimize');
|
var requirejsOptimize = require('gulp-requirejs-optimize');
|
||||||
var replace = require('gulp-replace-task');
|
var replace = require('gulp-replace-task');
|
||||||
var header = require('gulp-header');
|
var header = require('gulp-header');
|
||||||
var comment = [
|
var comment = fs.readFileSync('src/about.frag');
|
||||||
'/**',
|
|
||||||
' * Open MCT https://nasa.github.io/openmct/',
|
|
||||||
' * Version: ${pkg.version}',
|
|
||||||
' * Built: ${pkg.timestamp}',
|
|
||||||
' * Revision: ${pkg.revision}',
|
|
||||||
' * Branch: ${pkg.branch}',
|
|
||||||
'*/\n'
|
|
||||||
].join('\n');
|
|
||||||
|
|
||||||
return gulp.src(paths.main)
|
return gulp.src(paths.main)
|
||||||
.pipe(sourcemaps.init())
|
.pipe(sourcemaps.init())
|
||||||
.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));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
7
src/about.frag
Normal file
7
src/about.frag
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Open MCT https://nasa.github.io/openmct/
|
||||||
|
* Version: ${version}
|
||||||
|
* Built: ${timestamp}
|
||||||
|
* Revision: ${revision}
|
||||||
|
* Branch: ${branch}
|
||||||
|
*/
|
@ -20,14 +20,6 @@
|
|||||||
* at runtime from the About dialog for additional information.
|
* at runtime from the About dialog for additional information.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
/**
|
|
||||||
* Open MCT https://nasa.github.io/openmct/
|
|
||||||
* Version @@version
|
|
||||||
* Built @@timestamp
|
|
||||||
* Revision @@revision
|
|
||||||
* Branch @@branch
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function (root, factory) {
|
(function (root, factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
define([], factory);
|
define([], factory);
|
||||||
|
Loading…
Reference in New Issue
Block a user