forked from andreax79/airflow-code-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (49 loc) · 1.69 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
55
56
57
58
59
60
61
SHELL=/bin/bash -e
help:
@echo "- make clean Clean"
@echo "- make tag Create version tag"
@echo "- make test Run tests"
@echo "- make coverage Run tests coverage"
@echo "- make lint Run lint"
@echo "- make codemirror Update CodeMirror"
@echo "- make webserver Start Airflow webserver"
@echo "- make scheduler Start Airflow scheduler"
@echo "- make npm-build Run npm build"
@echo "- make npm-watch Run npm build when files change"
lint:
python3 setup.py flake8
tag:
@grep -q "## $$(cat airflow_code_editor/VERSION)" changelog.txt || (echo "Missing changelog !!! Update changelog.txt"; exit 1)
@git tag -a "v$$(cat airflow_code_editor/VERSION)" -m "version v$$(cat airflow_code_editor/VERSION)"
webserver:
@./scripts/airflow.sh webserver
scheduler:
@./scripts/airflow.sh scheduler
build: clean
python3 setup.py bdist_wheel
python3 setup.py sdist bdist_wheel
clean:
-rm -rf build dist
-rm -rf *.egg-info
test:
@./scripts/tests.sh
coverage:
@./scripts/coverage.sh
codemirror:
@rm -rf codemirror_src codemirror.zip
@curl -O https://codemirror.net/codemirror.zip
@unzip codemirror.zip -d codemirror_src
@mv codemirror_src/codemirror-*/* codemirror_src
@rm codemirror.zip
@cp codemirror_src/lib/codemirror.js airflow_code_editor/static/
@cp codemirror_src/lib/codemirror.css airflow_code_editor/static/css/
@cp -a codemirror_src/theme airflow_code_editor/static/css/
@cp -a codemirror_src/addon airflow_code_editor/static/
@cp -a codemirror_src/keymap/*.js airflow_code_editor/static/
@cp -a codemirror_src/mode airflow_code_editor/static/
@rm -rf codemirror_src
@python3 update_themes_js.py
npm-build:
@npm run build
npm-watch:
@npm run watch