New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup and class #14
Rollup and class #14
Changes from 3 commits
78571c7
3379f9f
eec47d1
dd853bf
7366a75
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
"version": "v2.0.0-beta.1", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lets get rid of the |
||
"main": "dist/esri-leaflet-heatmap-feature-layer.js", | ||
"dependencies": { | ||
"leaflet": "^1.0.0-beta.1", | ||
"esri-leaflet": "^2.0.0-beta.4", | ||
"esri-leaflet": "^2.0.0", | ||
"leaflet": "^1.0.0-rc.3", | ||
"leaflet.heat": "^0.1.3" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you bump leaflet.heat to |
||
}, | ||
"ignore": [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
<script src="../node_modules/esri-leaflet/dist/esri-leaflet.js"></script> | ||
|
||
<!-- load heatmap feature layer source for debugging --> | ||
<script src="../dist/esri-leaflet-heatmap-feature-layer.js"></script> | ||
<script src="../dist/esri-leaflet-heatmap-debug.js"></script> | ||
|
||
<style> | ||
body { | ||
|
@@ -52,14 +52,14 @@ | |
|
||
<script> | ||
/* | ||
make a copy of this file in the same file if you'd like git to ignore your local changes | ||
make a copy of this file in the same directory if you'd like git to ignore your local changes | ||
*/ | ||
|
||
var map = L.map('map').setView([ 40.706, -73.926], 14); | ||
|
||
L.esri.basemapLayer('Gray').addTo(map); | ||
L.esri.Heat.heatmapFeatureLayer({ | ||
url: 'http://services.arcgis.com/rOo16HdIMeOBI4Mb/ArcGIS/rest/services/Graffiti_Reports/FeatureServer/0', | ||
L.esri.Heat.featureLayer({ | ||
url: 'https://services.arcgis.com/rOo16HdIMeOBI4Mb/ArcGIS/rest/services/Graffiti_Reports/FeatureServer/0', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch (moving to 'https') |
||
radius: 12 | ||
}).addTo(map); | ||
</script> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,76 +3,62 @@ | |
"description": "Esri Leaflet plugin for visualizing Feature Layers as heatmaps with L.heat.", | ||
"version": "2.0.0-beta.1", | ||
"author": "Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)", | ||
"browserify": { | ||
"transform": [ | ||
[ | ||
"babelify", | ||
{ | ||
"whitelist": [ | ||
"es6.modules" | ||
], | ||
"loose": [ | ||
"es6.modules" | ||
] | ||
} | ||
] | ||
] | ||
}, | ||
"contributors": [ | ||
"Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)", | ||
"John Gravois <jgravois@esri.com> (http://johngravois.com)" | ||
], | ||
"dependencies": { | ||
"leaflet": "^1.0.0-beta.1", | ||
"esri-leaflet": "^2.0.0-beta.4", | ||
"esri-leaflet": "^2.0.0", | ||
"leaflet": "^1.0.0-rc.3", | ||
"leaflet.heat": "^0.1.3" | ||
}, | ||
"devDependencies": { | ||
"babelify": "^6.1.3", | ||
"chai": "2.3.0", | ||
"gh-release": "^2.0.0", | ||
"http-server": "^0.9.0", | ||
"isparta": "^3.0.3", | ||
"istanbul": "gotwarlost/istanbul.git#source-map", | ||
"istanbul": "^0.4.2", | ||
"karma": "^0.12.24", | ||
"karma-chai-sinon": "^0.1.3", | ||
"karma-coverage": "douglasduteil/karma-coverage#next", | ||
"karma-coverage": "^0.5.3", | ||
"karma-mocha": "^0.1.0", | ||
"karma-mocha-reporter": "^0.2.5", | ||
"karma-phantomjs-launcher": "^0.1.4", | ||
"karma-sourcemap-loader": "^0.3.5", | ||
"mkdirp": "^0.5.1", | ||
"node-sass": "^3.2.0", | ||
"phantomjs": "^1.9.17", | ||
"rollup": "^0.10.0", | ||
"rollup": "^0.25.4", | ||
"rollup-plugin-json": "^2.0.0", | ||
"rollup-plugin-node-resolve": "^1.4.0", | ||
"rollup-plugin-uglify": "^0.3.1", | ||
"semistandard": "^7.0.2", | ||
"sinon": "^1.11.1", | ||
"sinon-chai": "2.7.0", | ||
"uglify-js": "^2.4.23" | ||
"snazzy": "^2.0.1", | ||
"watch": "^0.17.1" | ||
}, | ||
"homepage": "https://github.com/Esri/esri-leaflet-heatmap-feature-layer", | ||
"jsnext:main": "src/HeatmapFeatureLayer.js", | ||
"jspm": { | ||
"files": [ | ||
"src/*.js", | ||
"dist/*" | ||
], | ||
"registry": "npm", | ||
"format": "es6" | ||
}, | ||
"license": "Apache-2.0", | ||
"main": "src/HeatmapFeatureLayer.js", | ||
"main": "dist/esri-leaflet-heatmap-debug.js", | ||
"readmeFilename": "README.md", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:Esri/esri-leaflet-heatmap-feature-layer.git" | ||
}, | ||
"scripts": { | ||
"prebuild": "mkdirp dist", | ||
"build": "./scripts/build.js", | ||
"lint": "semistandard src/*.js && semistandard spec/*.js", | ||
"build": "rollup -c profiles/debug.js & rollup -c profiles/production.js", | ||
"lint": "semistandard src/*.js && semistandard spec/*.js | snazzy", | ||
"prepublish": "npm run build", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. jspm needs a |
||
"pretest": "npm run build", | ||
"release": "./scripts/release.sh", | ||
"release": "node ./scripts/release.sh", | ||
"start": "watch 'npm run build' src & http-server -p 6789 -c-1 -o", | ||
"test": "npm run lint && karma start" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import config from '../node_modules/esri-leaflet/profiles/base.js'; | ||
|
||
config.entry = 'src/HeatmapFeatureLayer.js'; | ||
config.moduleName = 'L.esri.Heat'; | ||
|
||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import config from './base.js'; | ||
|
||
config.dest = 'dist/esri-leaflet-heatmap-debug.js'; | ||
config.sourceMap = 'inline'; | ||
|
||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import uglify from 'rollup-plugin-uglify'; | ||
import config from './base.js'; | ||
|
||
config.dest = 'dist/esri-leaflet-heatmap.js'; | ||
config.sourceMap = 'dist/esri-leaflet-heatmap.js.map'; | ||
|
||
// use a Regex to preserve copyright text | ||
config.plugins.push(uglify({ output: { comments: /Institute, Inc/ } })); | ||
|
||
export default config; |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets bump the cdn version in the README code sample too.