Skip to content

Commit

Permalink
v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bozdoz committed Jan 4, 2017
1 parent 6cf29ce commit 628b2b9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/webgl-heatmap-leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
L.WebGLHeatMap = L.Renderer.extend({

// tested on Leaflet 1.0.1
version : '0.2.0',
version : '0.2.1',

options: {
// @option size: Number
Expand Down Expand Up @@ -140,7 +140,7 @@ L.WebGLHeatMap = L.Renderer.extend({
},

_scalepx: function (latlng) {
return options.size;
return this.options.size;
},

// data handling methods
Expand Down
7 changes: 6 additions & 1 deletion dist/webgl-heatmap-leaflet.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
var gulp = require('gulp'),
browserSync = require('browser-sync').create();
browserSync = require('browser-sync').create(),
uglify = require('gulp-uglify'),
rename = require('gulp-rename');

gulp.task('default', ['bs']);

Expand All @@ -15,4 +17,15 @@ gulp.task('bs', function() {
},
files : ['./**/*.html','./**/*.css', './**/*.js']
});
});

gulp.task('build', function () {
return gulp.src(['./dist/webgl-heatmap-leaflet.js'])
.pipe(uglify({
preserveComments : 'license'
}))
.pipe(rename({
extname : ".min.js"
}))
.pipe(gulp.dest('./dist/'));
});
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"name": "webgl-heatmap-leaflet",
"version": "0.2.0",
"version": "0.2.1",
"description": "WebGL Heatmap Library for Leaflet",
"main": "gulpfile.js",
"dependencies": {},
"devDependencies": {
"browsersync": "0.0.1-security",
"browser-sync": "^2.18.5",
"gulp": "^3.9.1",
"leaflet": "^1.0.1",
"uglify-js": "^2.7.3"
"gulp-rename": "^1.2.2",
"gulp-uglify": "^2.0.0",
"leaflet": "^1.0.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "uglifyjs dist/webgl-heatmap-leaflet.js -c -m -o dist/webgl-heatmap-leaflet.min.js"
"build": "gulp build",
"release": "./publish.sh || true"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 628b2b9

Please sign in to comment.