Skip to content

Commit 628b2b9

Browse files
author
bozdoz
committed
v0.2.1
1 parent 6cf29ce commit 628b2b9

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

dist/webgl-heatmap-leaflet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
L.WebGLHeatMap = L.Renderer.extend({
88

99
// tested on Leaflet 1.0.1
10-
version : '0.2.0',
10+
version : '0.2.1',
1111

1212
options: {
1313
// @option size: Number
@@ -140,7 +140,7 @@ L.WebGLHeatMap = L.Renderer.extend({
140140
},
141141

142142
_scalepx: function (latlng) {
143-
return options.size;
143+
return this.options.size;
144144
},
145145

146146
// data handling methods

dist/webgl-heatmap-leaflet.min.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
var gulp = require('gulp'),
2-
browserSync = require('browser-sync').create();
2+
browserSync = require('browser-sync').create(),
3+
uglify = require('gulp-uglify'),
4+
rename = require('gulp-rename');
35

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

@@ -15,4 +17,15 @@ gulp.task('bs', function() {
1517
},
1618
files : ['./**/*.html','./**/*.css', './**/*.js']
1719
});
20+
});
21+
22+
gulp.task('build', function () {
23+
return gulp.src(['./dist/webgl-heatmap-leaflet.js'])
24+
.pipe(uglify({
25+
preserveComments : 'license'
26+
}))
27+
.pipe(rename({
28+
extname : ".min.js"
29+
}))
30+
.pipe(gulp.dest('./dist/'));
1831
});

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{
22
"name": "webgl-heatmap-leaflet",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "WebGL Heatmap Library for Leaflet",
55
"main": "gulpfile.js",
66
"dependencies": {},
77
"devDependencies": {
8-
"browsersync": "0.0.1-security",
8+
"browser-sync": "^2.18.5",
99
"gulp": "^3.9.1",
10-
"leaflet": "^1.0.1",
11-
"uglify-js": "^2.7.3"
10+
"gulp-rename": "^1.2.2",
11+
"gulp-uglify": "^2.0.0",
12+
"leaflet": "^1.0.1"
1213
},
1314
"scripts": {
1415
"test": "echo \"Error: no test specified\" && exit 1",
15-
"build": "uglifyjs dist/webgl-heatmap-leaflet.js -c -m -o dist/webgl-heatmap-leaflet.min.js"
16+
"build": "gulp build",
17+
"release": "./publish.sh || true"
1618
},
1719
"repository": {
1820
"type": "git",

0 commit comments

Comments
 (0)