build scripts

This commit is contained in:
javi 2013-07-30 10:45:35 +02:00
parent 19fa7a908f
commit 0cea6f3b09
6 changed files with 1791 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea/ .idea/
.DS_Store .DS_Store
*.swp *.swp
node_modules

25
Makefile Normal file
View 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

File diff suppressed because one or more lines are too long

1709
dist/torque.uncompressed.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -10,6 +10,8 @@
<div id="map"></div> <div id="map"></div>
<script src="../vendor/leaflet.js"></script> <script src="../vendor/leaflet.js"></script>
<script src="../dist/torque.uncompressed.js"></script>
<!--
<script src="../lib/torque/request.js"></script> <script src="../lib/torque/request.js"></script>
<script src="../lib/torque/leaflet/leaflet_tileloader_mixin.js"></script> <script src="../lib/torque/leaflet/leaflet_tileloader_mixin.js"></script>
<script src="../lib/torque/leaflet/canvas_layer.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.json.js"></script>
<script src="../lib/torque/provider.jsonarray.js"></script> <script src="../lib/torque/provider.jsonarray.js"></script>
<script src="../lib/torque/leaflet/torque.js"></script> <script src="../lib/torque/leaflet/torque.js"></script>
-->
<script> <script>

26
package.json Normal file
View 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"
}
}