-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (36 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
42
43
44
default:
@echo "To make and view a static page with Grist in it:"
@echo " git submodule update --init"
@echo " make requirements"
@echo " make build"
@echo " make serve"
@echo " # now visit http://localhost:3030/page/"
requirements:
cd ext && yarn install --frozen-lockfile --modules-folder=../node_modules --verbose
cd core && yarn install --frozen-lockfile --verbose
cd core && test -e ext && echo ext present || ln -s ../ext ext
cd core && yarn run install:python
cd core/sandbox/pyodide && make setup
cd core/sandbox && ./bundle_as_wheel.sh && cp dist/*.whl pyodide/_build/packages/
node scripts/pyodide-pyc-ify.js
update-lock:
cd ext && yarn install --modules-folder=../node_modules --verbose
cd core && yarn install
build:
cd core && yarn run build:prod
# This will keep the code built as you edit it; the server it runs is
# useless, just ignore it.
start:
cd core && GRIST_SESSION_SECRET=something yarn start
link:
./scripts/link_page_resources.sh
copy:
./scripts/link_page_resources.sh copy
package:
./scripts/build_dist.sh
serve:
@echo "========================================="
@echo "See http://localhost:3030/page"
@echo "========================================="
./scripts/link_page_resources.sh
python3 -m http.server 3030