Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit ebf0d2a

Browse files
authored
Core and heatmap (#1)
Basic bindings and heatmap
1 parent b3bf805 commit ebf0d2a

31 files changed

+12530
-37
lines changed

.gitignore

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,7 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
6-
# Runtime data
7-
pids
8-
*.pid
9-
*.seed
10-
11-
# Directory for instrumented libs generated by jscoverage/JSCover
12-
lib-cov
13-
14-
# Coverage directory used by tools like istanbul
15-
coverage
16-
17-
# nyc test coverage
18-
.nyc_output
19-
20-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21-
.grunt
22-
23-
# node-waf configuration
24-
.lock-wscript
25-
26-
# Compiled binary addons (http://nodejs.org/api/addons.html)
27-
build/Release
28-
29-
# Dependency directories
30-
node_modules
31-
jspm_packages
32-
33-
# Optional npm cache directory
34-
.npm
35-
36-
# Optional REPL history
37-
.node_repl_history
1+
/bower_components/
2+
/node_modules/
3+
/.pulp-cache/
4+
/output/
5+
/example/index.js
6+
/.psc*
7+
/.psa*

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: node_js
2+
dist: trusty
3+
sudo: required
4+
node_js: 6
5+
install:
6+
- npm install -g bower
7+
- npm install && bower install
8+
script:
9+
- npm run build:browser
10+
after_success:
11+
- >-
12+
test $TRAVIS_TAG &&
13+
echo $GITHUB_TOKEN | pulp login &&
14+
echo y | pulp publish --no-push

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Basic bindings to leaflet.js only parts of API is supported.
2+
3+
This repo also has port of [simpleheat](https://github.com/mourner/simpleheat) and
4+
[Leaflet.heat](https://github.com/Leaflet/Leaflet.heat)

bower.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "purescript-leaflet",
3+
"ignore": [
4+
"**/.*",
5+
"node_modules",
6+
"bower_components",
7+
"output"
8+
],
9+
"dependencies": {
10+
"purescript-prelude": "^3.0.0",
11+
"purescript-eff": "^3.1.0",
12+
"purescript-dom": "^4.2.0",
13+
"purescript-dom-classy": "^2.1.0",
14+
"purescript-transformers": "^3.2.0",
15+
"purescript-control": "^3.0.0",
16+
"purescript-uri": "^3.0.0",
17+
"purescript-colors": "^3.0.0",
18+
"purescript-symbols": "^3.0.0",
19+
"purescript-canvas": "^3.0.0",
20+
"purescript-math": "^2.0.0",
21+
"purescript-st": "^3.0.0",
22+
"purescript-partial": "^1.2.0",
23+
"purescript-refs": "^3.0.0"
24+
},
25+
"devDependencies": {
26+
"purescript-debug": "^3.0.0",
27+
"purescript-random": "^3.0.0",
28+
"purescript-gen": "^1.1.0"
29+
}
30+
}

entry.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require("./output/Main/index.js").main();

example/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>
5+
purescript-leaflet
6+
</title>
7+
<link rel="stylesheet" href="leaflet.css">
8+
<script type="text/javascript" src="index.js"></script>
9+
</head>
10+
<style>
11+
#map, #heatmap-leaflet { width: 600px; height: 600px }
12+
</style>
13+
<body>
14+
<div id="map"></div>
15+
<div id="heatmap-leaflet"></div>
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)