forked from Appdynamics/jekyll-rtd-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (43 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
DEBUG=JEKYLL_GITHUB_TOKEN=blank PAGES_API_URL=http://0.0.0.0
ALIAS=jekyll-rtd-theme
help:
@echo "HomePage: https://github.com/rundocs/${ALIAS}\n"
@echo "Usage:"
@echo " make [subcommand]\n"
@echo "Subcommands:"
@echo " install Install the theme dependencies"
@echo " format Format all files"
@echo " report Make a report from Google lighthouse"
@echo " clean Clean the workspace"
@echo " dist Build the theme css and script"
@echo " status Display status before push"
@echo " theme Make theme as gem and install"
@echo " build Build the test site"
@echo " server Make a livereload jekyll server to development"
@echo " checkout Reset the theme minified css and script to last commit"
checkout:
@git checkout _config.yml
@git checkout assets/js/theme.min.js
@git checkout assets/css/theme.min.css
install:
@gem install jekyll bundler
@npm install
@bundle install
format:
@npm run format
report:
@npm run report
clean:
@bundle exec jekyll clean
dist: format clean
@npm run build
status: format clean checkout
@git status
theme: dist
@gem uninstall ${ALIAS}
@gem build *.gemspec
@gem install *.gem && rm -f *.gem
build: dist
@${DEBUG} bundle exec jekyll build --safe --profile
server: dist
@${DEBUG} bundle exec jekyll server --safe --livereload