diff --git a/.gitignore b/.gitignore index b375316..038c82d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ public/components .settings/ components/ css/bundle.css +js/bowr.js diff --git a/GAnalytics.js b/GAnalytics.js new file mode 100644 index 0000000..c36f57f --- /dev/null +++ b/GAnalytics.js @@ -0,0 +1 @@ +!function(e,n,t,a,i,c,o){e.GoogleAnalyticsObject=i,e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},e[i].l=1*new Date,c=n.createElement(t),o=n.getElementsByTagName(t)[0],c.async=1,c.src=a,o.parentNode.insertBefore(c,o)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-60676910-1","auto"),ga("send","pageview");var appInsights=window.appInsights||function(e){function n(e){i[e]=function(){var n=arguments;i.queue.push(function(){i[e].apply(i,n)})}}var t,a,i={config:e},c=document,o=window,r="script",s=c.createElement(r);for(s.src=e.url||"//az416426.vo.msecnd.net/scripts/a/ai.0.js",c.getElementsByTagName(r)[0].parentNode.appendChild(s),i.cookie=c.cookie,i.queue=[],t=["Event","Exception","Metric","PageView","Trace"];t.length;)n("track"+t.pop());return e.disableExceptionTracking||(t="onerror",n("_"+t),a=o[t],o[t]=function(e,n,c,o,r){var s=a&&a(e,n,c,o,r);return s!==!0&&i["_"+t](e,n,c,o,r),s}),i}({instrumentationKey:"8ca49161-65fa-4f75-af00-fc302149575f"});window.appInsights=appInsights,appInsights.trackPageView(); diff --git a/bower.json b/bower.json index 6a17975..990c184 100644 --- a/bower.json +++ b/bower.json @@ -7,13 +7,9 @@ "components" ], "dependencies": { - "jquery": "~2.1.4", - "bootstrap": "~3.3.5", "mustache": "~2.1.2", "jquery-rss": "~1.5.1", "install": "~1.0.4", - "jquery.easing": "~1.3.1", - "lodestoneapi.min": "http://xivsync.com/lodestoneapi.min.js", - "font-awesome": "~4.3.0" + "jquery.easing": "~1.3.1" } } diff --git a/deploy.cmd b/deploy.cmd index a9fe181..d8fa239 100644 --- a/deploy.cmd +++ b/deploy.cmd @@ -108,7 +108,7 @@ IF EXIST "%DEPLOYMENT_TARGET%\package.json" ( :: 4. Install gulp IF EXIST "%DEPLOYMENT_TARGET%\gulpfile.js" ( pushd "%DEPLOYMENT_TARGET%" - call :ExecuteCmd !NPM_CMD! install gulp gulp-cache-bust gulp-concat-css gulp-uglify html-minifier + call :ExecuteCmd !NPM_CMD! install gulp gulp-cache-bust gulp-concat-css gulp-uglify html-minifier gulp-concat call .\node_modules\.bin\gulp publish IF !ERRORLEVEL! NEQ 0 goto error popd diff --git a/gulpfile.js b/gulpfile.js index 52bb07d..191db64 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -7,7 +7,8 @@ var gulp = require('gulp'), cachebust = require('gulp-cache-bust'), minifyCss = require('gulp-minify-css'), minify = require('html-minifier').minify, - fs = require("fs"); + fs = require("fs"), + concat = require('gulp-concat'); @@ -58,8 +59,15 @@ gulp.task('develop', function () { }); gulp.task('minifyJs', function() { - return gulp.src('js/*.js') + return gulp.src(['js/*.js', 'components/**/*.min.js']) .pipe(uglify()) + .pipe(concat('bowr.js')) + .pipe(gulp.dest('js')); +}); + +gulp.task('combineJs', function() { + return gulp.src(['js/*.js', 'components/**/*.min.js']) + .pipe(concat('bowr.js')) .pipe(gulp.dest('js')); }); @@ -82,6 +90,7 @@ gulp.task('publish', [ gulp.task('default', [ 'develop', + 'combineJs', 'combineCss', 'watch' ]); diff --git a/index.html b/index.html index f31288c..71f26b4 100644 --- a/index.html +++ b/index.html @@ -11,9 +11,9 @@ - + - + @@ -23,8 +23,7 @@ - - +