Generate a concatenated iD.css file

This commit is contained in:
John Firebaugh
2013-04-16 14:14:55 -07:00
parent dd35ed91d9
commit 24c0115190
3 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
iD.js
iD.min.js
iD.css
build
transifex.auth

View File

@@ -7,7 +7,8 @@ LOCALE ?= en_US
all: \
iD.js \
iD.min.js
iD.min.js \
iD.css
DATA_FILES = $(shell find data -type f -name '*.json' -o -name '*.md')
data/data.js: $(DATA_FILES)
@@ -71,6 +72,9 @@ iD.js: node_modules/.install Makefile
@rm -f $@
cat $(filter %.js,$^) > $@
iD.css: css/*.css
cat css/reset.css css/map.css css/app.css css/feature-icons.css > $@
node_modules/.install: package.json
npm install && touch node_modules/.install

View File

@@ -3,10 +3,7 @@
<head>
<meta charset='utf-8'>
<title>iD</title>
<link rel='stylesheet' href='css/reset.css'>
<link rel='stylesheet' href='css/map.css'>
<link rel='stylesheet' href='css/app.css'>
<link rel='stylesheet' href='css/feature-icons.css'>
<link rel='stylesheet' href='iD.css'>
<!-- mobile devices -->
<meta name='viewport' content='initial-scale=1.0 maximum-scale=1.0'>