check-in bower_components
This commit is contained in:
parent
4cc16bccd0
commit
9e08e74132
101 changed files with 90960 additions and 0 deletions
28
bower_components/leaflet-plugins/build/Makefile
vendored
Normal file
28
bower_components/leaflet-plugins/build/Makefile
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
JS := $(wildcard ../layer/*/*.js ../layer/*.js ../control/*js)
|
||||
#JS += control/Scale.js control/Distance.js
|
||||
#JS += control/Permalink.js $(wildcard control/Permalink.*.js)
|
||||
JS := $(shell python ./deps.py $(JS))
|
||||
|
||||
#JS_EXTRA := $(JS) $(wildcard layer/*.js)
|
||||
all: compiled.yui.js compiled.closure.js
|
||||
|
||||
compile: $(patsubst %,compiled/%,$(JS))
|
||||
|
||||
closure/%: ../%
|
||||
mkdir -p $(dir $@)
|
||||
java -jar /tmp/closure.jar --compilation_level ADVANCED_OPTIMIZATIONS --charset UTF-8 --js $< --js_output_file $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
yui/%: ../%
|
||||
mkdir -p $(dir $@)
|
||||
yui-compressor --charset UTF-8 -o $@.tmp $<
|
||||
mv $@.tmp $@
|
||||
|
||||
compiled.yui.js: $(patsubst ../%,yui/%,$(JS))
|
||||
compiled.closure.js: $(patsubst ../%,closure/%,$(JS))
|
||||
|
||||
compiled.%.js:
|
||||
for f in $^; do cat $$f >> $@.tmp; echo >> $@.tmp; done
|
||||
mv $@.tmp $@
|
||||
|
||||
.PHONY: all compile
|
||||
26
bower_components/leaflet-plugins/build/deps.py
vendored
Executable file
26
bower_components/leaflet-plugins/build/deps.py
vendored
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env python
|
||||
# vim: sts=4 sw=4 et
|
||||
|
||||
import os, sys
|
||||
|
||||
printed = set()
|
||||
|
||||
def includes(f):
|
||||
d = os.path.dirname(f)
|
||||
for l in open(f):
|
||||
if l.startswith('//#include'):
|
||||
yield os.path.join(d, l.strip().split(None, 1)[1].strip(""""'"""))
|
||||
|
||||
work = list(sys.argv[1:])
|
||||
|
||||
while work:
|
||||
f = work.pop(0)
|
||||
if f in printed:
|
||||
continue
|
||||
i = list(filter(lambda x: x not in printed, includes(f)))
|
||||
if i:
|
||||
work = i + [f] + work
|
||||
continue
|
||||
printed.add(f)
|
||||
print f
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue