clean gulp build and crunched gfx

This commit is contained in:
Martin Donnelly 2018-02-27 11:02:22 +00:00
parent 1c4e281548
commit 0e154e6ccc
25 changed files with 17 additions and 9 deletions

View File

@ -20,12 +20,12 @@ gulp.task('bundleBackbone', function () {
return b.bundle()
.pipe(source('app.js'))
.pipe(buffer())
// .pipe(stripDebug())
.pipe(stripDebug())
.pipe(rename('bundle.js'))
.pipe(sourcemaps.init({ 'loadMaps': true }))
// Add transformation tasks to the pipeline here.
// .pipe(uglify())
.pipe(uglify())
.on('error', gutil.log)
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./live/js'));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 464 KiB

After

Width:  |  Height:  |  Size: 447 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -44,6 +44,7 @@ const GreetView = Backbone.View.extend({
},
'updateLocation': function(l) {
console.log('>> Location has changed...');
console.log(JSON.stringify(l.changed));
if (l.has('location')) {
const location = l.get('location');
@ -56,7 +57,7 @@ const GreetView = Backbone.View.extend({
console.log('>> No location yet');
},
'render': function() {
console.log('>> Render greet');
console.info('>> Greet:Render');
const todaySegment = this.model.get('todaySegment');
const atHome = this.model.get('atHome');
const atWork = this.model.get('atWork');

View File

@ -97,7 +97,8 @@ const LocationModel = Backbone.Model.extend({
// console.log('>> NewLocation', JSON.stringify(newLocation));
// const distanceFromLast = distance(current.latitude, current.longitude, latitude, longitude);
if (!current /* || distanceFromLast > 1.5*/)
if (!current /* || distanceFromLast > 1.5*/) {
console.info('>> Location:geocoder request');
geocoder.reverse(latlong)
.then(function(res) {
console.log(JSON.stringify(res));
@ -112,6 +113,8 @@ const LocationModel = Backbone.Model.extend({
console.error(err);
this.set('location', newLocation);
});
}
else {
newLocation.city = current.city;
const distanceFromLast = distance(current.latitude, current.longitude, latitude, longitude);
@ -128,6 +131,7 @@ const LocationModel = Backbone.Model.extend({
}
else if (distanceFromLastGeocode >= 2.0 || (timestamp - lastGeocode.timestamp > 1.8e+6) ) {
console.log('Moved from previous', (timestamp - lastGeocode.timestamp > 1.8e+6));
console.info('>> Location:geocoder request');
geocoder.reverse(latlong)
.then(function(res) {
newLocation.city = res[0].city;

View File

@ -67,6 +67,7 @@ const NearbyModel = Backbone.Model.extend({
const hour = parseInt((new Date()).getHours().toString(), 10);
const section = this.get('section');
console.log('>> Nearby section:', hour, section);
console.info('>> Nearby:request');
request({
'url': `${window.loc}/fsexplore`,
'method': 'GET',
@ -129,7 +130,7 @@ const NearbyView = Backbone.View.extend({
console.log('nearby render');
},
'render': function() {
console.log('Nearby:Render');
console.info('>> Nearby:Render');
const totalResults = this.model.get('totalResults');
console.log('>> totalResults', totalResults);
this.$el.empty();

View File

@ -57,6 +57,7 @@ const NewsModel = Backbone.Model.extend({
},
'getNews': function() {
// const ll = this.get('llShort');
console.info('>> News:request');
request({
'url': `${window.loc}/news`,
'method': 'GET'
@ -115,7 +116,7 @@ const NewsView = Backbone.View.extend({
},
'render': function() {
console.log('News:Render');
console.info('>> News:Render');
this.$el.empty();

View File

@ -29,7 +29,7 @@ const ByMeModel = Backbone.Model.extend({
},
'getByMe': function() {
const llSix = this.get('llFixed');
console.info('>> ByMe:request');
// const section = (partOfDay >= 11 && partOfDay <= 14) ? 'food' : 'topPicks';
request({
'url': `${window.loc}/rightbyme`,
@ -124,7 +124,7 @@ const ByMeView = Backbone.View.extend({
console.log('>> ByMe No location yet');
},
'render': function() {
console.log('>> ByMe render');
console.info('>> ByMe:render');
// console.log(this.model);
// console.log(this.model);

View File

@ -92,6 +92,7 @@ const WeatherModel = Backbone.Model.extend({
},
'getWeather': function() {
// const ll = this.get('llShort');
console.info('>> Weather:request');
const llFixed = this.get('llFixed');
request({
'url': `${window.loc}/weather`,
@ -174,7 +175,7 @@ const WeatherView = Backbone.View.extend({
console.log('>> Weather No location yet');
},
'render': function() {
console.log('Weather:Render');
console.info('>> Weather:Render');
this.$el.empty();
const item = this.wCollection.first();