Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile « chroma-js « bower_components « libs - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 74831d9c7d0e0278b7cf412d6b70dfcc896d6f1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

all: chroma.min.js

clean:
	@rm chroma.js chroma.min.js license.coffee

license.coffee: LICENSE
	@echo "###*" > $@          \
	echo " * @license" >> $@  \
	echo " *" >> $@           \
	while read i              \
	do                        \
	   echo " * $i"  >> $@    \
	done < LICENSE            \
	echo "###" >> $@

chroma.js: license.coffee src/api.coffee src/color.coffee src/conversions/*.coffee  src/scale.coffee src/limits.coffee src/colors/*.coffee src/utils.coffee src/interpolate.coffee
	@coffee -o . -j $@ $^

chroma.min.js: chroma.js
	@uglifyjs --comments "@license" chroma.js > $@

test: chroma.js
	@npm test