-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25d108e
commit c9360d6
Showing
17 changed files
with
1,739 additions
and
6,059 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM ubuntu:23.10 | ||
RUN apt-get update && apt-get install -y python3-setuptools pipenv npm | ||
|
||
# chromium dependencies | ||
RUN apt-get install -y fonts-noto-color-emoji libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libxkbcommon0 libxdamage1 libpango-1.0-0 libcairo2 libasound2 | ||
|
||
USER ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["ms-python.python", "Lencerf.beancount"] | ||
} | ||
}, | ||
"postCreateCommand": "make deps", | ||
"forwardPorts": [5000] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
frontend/node_modules: frontend/package-lock.json | ||
cd frontend; npm install | ||
touch -m frontend/node_modules | ||
deps-js: | ||
cd frontend; npm install && npx puppeteer browsers install chrome | ||
|
||
.PHONY: build | ||
build: frontend/node_modules | ||
deps-py: | ||
cd example; pipenv install -d | ||
|
||
deps: deps-js deps-py | ||
|
||
build-js: | ||
cd frontend; npm run build | ||
|
||
.PHONY: watch | ||
watch: frontend/node_modules | ||
watch-js: | ||
cd frontend; npm run watch | ||
|
||
.PHONY: test | ||
test: frontend/node_modules | ||
cd frontend; npm run test | ||
test-js: | ||
cd frontend; LANG=en npm run test | ||
|
||
test-js-update: | ||
cd frontend; LANG=en npm run test -- -u | ||
|
||
run: | ||
cd example; pipenv run fava example.beancount | ||
|
||
.PHONY: format | ||
format: | ||
cd frontend; npx --no-install -- prettier -w . ../src/fava_dashboards/templates/*.css | ||
black src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py | ||
cd frontend; npx prettier -w . ../src/fava_dashboards/templates/*.css | ||
cd example; pipenv run black ../src/fava_dashboards/__init__.py ../scripts/format_js_in_dashboard.py | ||
cd example; find . -name '*.beancount' -exec pipenv run bean-format -c 59 -o "{}" "{}" \; | ||
./scripts/format_js_in_dashboard.py example/dashboards.yaml | ||
find example -name '*.beancount' -exec bean-format -c 59 -o "{}" "{}" \; | ||
|
||
ci: | ||
make run & | ||
make test-js | ||
make format | ||
git diff --exit-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.