forked from jwhitcraft/doony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (31 loc) · 1.25 KB
/
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
35
36
37
38
39
40
41
clean:
rm -rf venv node_modules
venv:
virtualenv venv
install: venv
. venv/bin/activate; pip install flask
npm install .
gem install observr
@echo "\033[95m\n\nDone. To install the Doony theme in your local Jenkins, \
follow the 'Installation' instructions in README.md\033[0m"
serve:
. venv/bin/activate; python run.py
# Run this command to update AUTHORS.md with the latest contributors.
authors:
echo "Authors\n=======\n" > AUTHORS.md
git log --raw | grep "^Author: " | sort | uniq | cut -d ' ' -f2- | sed 's/^/- /' >> AUTHORS.md
watch:
./observr.rb
css:
scss --style expanded src/doony.scss > doony.css
scss --style compressed src/doony.scss > doony.min.css
jshint:
# Checking the file with jshint
@$(PWD)/node_modules/jshint/bin/jshint --verbose src/ProgressCircle.js src/theme.js
js: jshint
# Concatenating JS files...
@cat src/ProgressCircle.js > doony.js && \
echo ";\n// This file is generated by a build step. Edit src/theme.js instead and run \`make js\`\n" >> doony.js && \
cat src/theme.js >> doony.js
# Minifying Javascript...
@$(PWD)/node_modules/uglify-js/bin/uglifyjs --preamble "/* Doony v`cat VERSION` | (c) `date +%Y` Kevin Burke | License: MIT */" --source-map doony.js.map --compress --lint --verbose doony.js > doony.min.js