support show AriaNg version

This commit is contained in:
MaysWind 2016-08-09 00:06:05 +08:00
parent b5c783a35e
commit 8800745ba3
3 changed files with 3 additions and 1 deletions

View file

@ -44,6 +44,7 @@ gulp.task('html', ['styles', 'scripts', 'views'], function () {
return gulp.src([
'src/*.html'
]).pipe($.useref({searchPath: ['.tmp', 'src', '.']}))
.pipe($.injectVersion())
.pipe($.if('js/*.js', $.replace(/\/\/# sourceMappingURL=.*/g, '')))
.pipe($.if('css/*.css', $.replace(/\/\*# sourceMappingURL=.* \*\/$/g, '')))
.pipe($.if(['js/moment-with-locales-*.min.js', 'js/plugins.min.js', 'js/aria-ng.min.js'], $.uglify({preserveComments: 'license'})))

View file

@ -13,6 +13,7 @@
"gulp-eslint": "^2.1.0",
"gulp-htmlmin": "^2.0.0",
"gulp-if": "^2.0.1",
"gulp-inject-version": "^1.0.1",
"gulp-load-plugins": "^1.2.4",
"gulp-manifest": "^0.1.1",
"gulp-plumber": "^1.1.0",

View file

@ -43,7 +43,7 @@
<header class="main-header">
<a class="logo" href="#">
<span class="logo-mini">Aria</span>
<span class="logo-lg">AriaNg</span>
<span class="logo-lg" title="AriaNg %%GULP_INJECT_VERSION%%">AriaNg</span>
</a>
<nav class="navbar navbar-static-top" role="navigation">