add Vue UI [wip]
This commit is contained in:
parent
3d5656392e
commit
b47dfc579b
22 changed files with 2242 additions and 6 deletions
|
|
@ -4,4 +4,7 @@ cd "$RUN_DIR"
|
|||
|
||||
[ -z "${DEBUG:-}" ] || set -x
|
||||
|
||||
exec poetry export -o requirements.txt
|
||||
poetry export -o requirements.txt
|
||||
|
||||
cd unwind-ui
|
||||
npm run build
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ cd "$RUN_DIR"
|
|||
|
||||
[ -z "${DEBUG:-}" ] || set -x
|
||||
|
||||
exec uvicorn unwind:create_app --factory --reload
|
||||
exec honcho start
|
||||
|
|
|
|||
7
scripts/dev-server
Executable file
7
scripts/dev-server
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
cd "$RUN_DIR"
|
||||
|
||||
[ -z "${DEBUG:-}" ] || set -x
|
||||
|
||||
exec uvicorn unwind:create_app --factory --reload
|
||||
7
scripts/dev-ui
Executable file
7
scripts/dev-ui
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
cd "$RUN_DIR"/unwind-ui
|
||||
|
||||
[ -z "${DEBUG:-}" ] || set -x
|
||||
|
||||
exec npm run dev
|
||||
|
|
@ -1,8 +1,6 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
cd "$RUN_DIR"
|
||||
|
||||
[ -z "${DEBUG:-}" ] || set -x
|
||||
|
||||
isort --profile black unwind
|
||||
black unwind
|
||||
"$RUN_BIN" lint-js "$@"
|
||||
"$RUN_BIN" lint-py "$@"
|
||||
|
|
|
|||
21
scripts/lint-js
Executable file
21
scripts/lint-js
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
cd "$RUN_DIR"
|
||||
|
||||
if [ "${1:-}" = '--fix' ]; then
|
||||
mode=fix
|
||||
else
|
||||
mode=check
|
||||
fi
|
||||
|
||||
if [ "$mode" = 'fix' ]; then
|
||||
prettier_opts=--write
|
||||
else
|
||||
prettier_opts=--check
|
||||
fi
|
||||
|
||||
[ -z "${DEBUG:-}" ] || set -x
|
||||
|
||||
cd unwind-ui
|
||||
npm run lint ||:
|
||||
npx prettier $prettier_opts 'src/**/*.{js,ts,vue}'
|
||||
8
scripts/lint-py
Executable file
8
scripts/lint-py
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
cd "$RUN_DIR"
|
||||
|
||||
[ -z "${DEBUG:-}" ] || set -x
|
||||
|
||||
isort --profile black unwind
|
||||
black unwind
|
||||
Loading…
Add table
Add a link
Reference in a new issue