-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
34 lines (25 loc) · 805 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# GNU Make 3.8.2 and above
PATH := $(PATH):node_modules/.bin
SHELL := /bin/bash
.ONESHELL:
.SILENT:
all: clean
make sprites html js css
babel dist/index.js --presets=env | uglifyjs -o dist/index.js -c -m
postcss dist/style.css -u autoprefixer -o dist/style.css -m
cleancss dist/style.css -o dist/style.css --source-map --source-map-inline-sources
html-minifier --collapse-whitespace dist/index.html -o dist/index.html
rm dist/index.js.map dist/style.css.map
clean:
rm -rf dist
mkdir -p dist/tmp
html:
cp src/index.html dist/index.html
js:
rollup src/index.js -o dist/index.js -f iife -c -m
css:
node-sass src/style.scss -o dist --source-map true --source-map-contents
sprites:
bin/sprites.js $(shell find src/sprites/ -type f -name '*.png')
deploy: all
gh-pages -d dist -m "updates"