-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 705 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 705 Bytes
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
STATIC_DIR = ./sickmuse/static
install-static:
# Install Bower components
# Requires bower
cd ${STATIC_DIR} && bower install
build-css:
# Build CSS from LESS
# Requires LESS
# Copy font-awesome fonts
mkdir -p ${STATIC_DIR}/fonts/
cp ${STATIC_DIR}/libs/font-awesome/font/* ${STATIC_DIR}/font/
lessc -x ${STATIC_DIR}/less/sickmuse.less ${STATIC_DIR}/css/sickmuse.css
build-js:
# Build optimized JS
# Requires r.js
cd ${STATIC_DIR}/js && r.js -o name=sickmuse out=sickmuse-built.js baseUrl=. mainConfigFile=sickmuse.js
lint-js:
# Check JS for any problems
jshint ${STATIC_DIR}/js/sickmuse.js
jshint ${STATIC_DIR}/js/models/host-plugin.js
jshint ${STATIC_DIR}/js/views/plugin-graph.js