Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding builder and upgrading version required by the Studio #20

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .lugo/info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"studio": {
"major": 1,
"minor": 0
"minor": 1
},
"language": "js"
}
14 changes: 13 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,27 @@ services:
environment:
- HOME_TEAM_NAME=${HOME_TEAM_NAME:-HOME}
- AWAY_TEAM_NAME=${AWAY_TEAM_NAME:-AWAY}
builder:
image: node:18
working_dir: /app
command:
- /bin/sh
- -c
- npm install && umask 000
volumes:
- ${PROJECT_PATH:-./}:/app
watcher:
image: node:18
working_dir: /app
command:
- /bin/sh
- -c
- npm install && umask 000 && node_modules/.bin/tsc-watch --project .lugo/tsconfig.json --onCompilationStarted "rm -f .lugo/.done" --onSuccess "touch .lugo/.done"
- (rm -f .lugo/.done || echo "continue") && node_modules/.bin/tsc-watch --project .lugo/tsconfig.json --onCompilationStarted "rm -f .lugo/.done" --onSuccess "touch .lugo/.done"
volumes:
- ${PROJECT_PATH:-./}:/app
depends_on:
builder:
condition: service_completed_successfully
healthcheck:
test: bash -c "[ -f /app/.lugo/.done ]"
interval: 2s
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "the-dummies-js",
"version": "0.0.4",
"version": "v2.0.3",
"description": "",
"main": ".dist/main.js",
"scripts": {
Expand Down