-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
40 lines (31 loc) · 1.16 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
.PHONY: clear-esm-cache clear-headless-cache start install hooks loading-screen landing-page clear-freezer-dir clean clean-install
clear-esm-cache:
rm -rf esm_cache
mkdir esm_cache
clear-headless-cache:
rm -r lively.headless/chrome-data-dir
mkdir lively.headless/chrome-data-dir && touch lively.headless/chrome-data-dir/.gitkeep
artifacts: classes-runtime landing-page loading-screen
classes-runtime:
rm -rf lively.server/.module_cache
rm -rf lively.classes/build
env CI=true npm --prefix lively.classes run build
landing-page:
rm -rf lively.server/.module_cache
rm -rf lively.freezer/landing-page
env CI=true npm --prefix lively.freezer run build-landing-page
loading-screen:
rm -rf lively.server/.module_cache
rm -rf lively.freezer/loading-screen
env CI=true npm --prefix lively.freezer run build-loading-screen
clear-freezer-dir:
rm -rf lively.freezer/landing-page
rm -rf lively.freezer/loading-screen
hooks:
git config --local core.hooksPath $(shell pwd)/.githooks
clean: clear-freezer-dir clear-headless-cache clear-esm-cache
rm -rf lively.server/.module_cache
rm -rf custom-npm-modules/*
rm -rf lively.next-node_modules/*
clean-install: clean
./install.sh