-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (40 loc) · 1.1 KB
/
Makefile
File metadata and controls
56 lines (40 loc) · 1.1 KB
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
55
56
.PHONY: setup install dev test build publish clean lint format doctor build-node build-binaries run-node doctor-node build-dotnet pack-dotnet
setup: install dev
install:
pip install -r requirements.txt
dev:
pip install -r requirements-dev.txt
pip install -e .
test:
pytest
lint:
python -m pyflakes explain_this_repo
format:
python -m black explain_this_repo
python -m isort explain_this_repo
build: clean
python -m build
publish: build
twine upload dist/*
doctor:
python -m explain_this_repo --doctor
# Node targets
build-node:
cd node_version && npm install && npm run build
build-binaries:
python scripts/build_pyinstaller.py
run-node:
node node_version/dist/cli.js facebook/react
doctor-node:
node node_version/dist/cli.js --doctor
# .NET targets
build-dotnet:
cd dotnet_version && dotnet build
pack-dotnet:
cd dotnet_version && dotnet pack -c Release
clean:
rm -rf dist build *.egg-info
rm -rf __pycache__ explain_this_repo/__pycache__
rm -rf node_version/dist node_version/node_modules
rm -f node_version/*.tgz *.tgz
rm -rf dotnet_version/bin dotnet_version/obj dotnet_version/nupkg