build scripts
This commit is contained in:
parent
19fa7a908f
commit
0cea6f3b09
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.idea/
|
||||
.DS_Store
|
||||
*.swp
|
||||
node_modules
|
||||
|
25
Makefile
Normal file
25
Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
UGLIFYJS=./node_modules/.bin/uglifyjs
|
||||
|
||||
JS_CLIENT_FILES= lib/torque/*.js \
|
||||
lib/torque/renderer/*.js \
|
||||
lib/torque/gmaps/*.js \
|
||||
lib/torque/leaflet/*.js
|
||||
|
||||
dist/torque.uncompressed.js: dist_folder $(JS_CLIENT_FILES)
|
||||
cat $(JS_CLIENT_FILES) > dist/torque.uncompressed.js
|
||||
|
||||
dist/torque.js: dist_folder dist/torque.uncompressed.js
|
||||
$(UGLIFYJS) dist/torque.uncompressed.js > dist/torque.js
|
||||
|
||||
dist_folder:
|
||||
mkdir -p dist
|
||||
|
||||
dist: dist_folder dist/torque.js
|
||||
|
||||
all: dist/torque.js
|
||||
clean:
|
||||
rm -rf dist
|
||||
|
||||
.PHONY: clean dist_folder
|
||||
|
27
dist/torque.js
vendored
Normal file
27
dist/torque.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1709
dist/torque.uncompressed.js
vendored
Normal file
1709
dist/torque.uncompressed.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -10,6 +10,8 @@
|
||||
<div id="map"></div>
|
||||
|
||||
<script src="../vendor/leaflet.js"></script>
|
||||
<script src="../dist/torque.uncompressed.js"></script>
|
||||
<!--
|
||||
<script src="../lib/torque/request.js"></script>
|
||||
<script src="../lib/torque/leaflet/leaflet_tileloader_mixin.js"></script>
|
||||
<script src="../lib/torque/leaflet/canvas_layer.js"></script>
|
||||
@ -18,6 +20,7 @@
|
||||
<script src="../lib/torque/provider.json.js"></script>
|
||||
<script src="../lib/torque/provider.jsonarray.js"></script>
|
||||
<script src="../lib/torque/leaflet/torque.js"></script>
|
||||
-->
|
||||
|
||||
|
||||
<script>
|
||||
|
26
package.json
Normal file
26
package.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "torque.js",
|
||||
"version": "1.0.00-dev",
|
||||
"description": "Torque javascript library",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/CartoDB/torque.git"
|
||||
},
|
||||
"author": {
|
||||
"name": "CartoDB",
|
||||
"url": "http://cartodb.com/",
|
||||
"email": "wadus@cartodb.com"
|
||||
},
|
||||
"contributors": [
|
||||
"Javier Alvarez <jmedina@vizzuality.com>",
|
||||
"Javier Alvarez <xabel@vizzuality.com>",
|
||||
"Javier Arce <javierarce@vizzuality.com>",
|
||||
"Javier Santana <jsantana@vizzuality.com>"
|
||||
],
|
||||
"licenses": [{
|
||||
"type": "BSD"
|
||||
}],
|
||||
"devDependencies": {
|
||||
"uglify-js": "1.3.3"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user