-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add tilt #14
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
chore: add tilt #14
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| node_modules/ | ||
| dist/ | ||
| .astro/ | ||
| agent/node_modules/ | ||
| *.log |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "recommendations": ["astro-build.astro-vscode"], | ||
| "recommendations": ["astro-build.astro-vscode", "tilt-dev.tiltfile"], | ||
| "unwantedRecommendations": [] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,124 @@ | ||
| # Docs-v2 Development Environment | ||
|
|
||
| # --- Guard: vale required for writing check --- | ||
| _vale_installed = str(local("which vale 2>/dev/null || echo ''", quiet=True)).strip() != "" | ||
|
|
||
| local_resource( | ||
| "install", | ||
| cmd="bun install", | ||
| dir=".", | ||
| labels=["setup"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "dev", | ||
| serve_cmd="bun dev", | ||
| serve_dir=".", | ||
| resource_deps=["install"], | ||
| links=["http://localhost:4321"], | ||
| labels=["services"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "preview", | ||
| cmd="bun run build", | ||
| serve_cmd="bun preview", | ||
| serve_dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| links=["http://localhost:4322"], | ||
|
ptlc8 marked this conversation as resolved.
|
||
| labels=["services"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "build", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion(non-blocking): your "build" resource doesnt seem useful, it's never used as a dep and the "preview" resource is already building
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This is what I wanted originally, but If it would be better to auto-init There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This behaviour is really weird, I don't know why it does this |
||
| cmd="bun run build", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["build"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "check", | ||
| cmd="bun run check", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["checks"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "check:format", | ||
| cmd="bun run check:format", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["checks"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "check:lint", | ||
| cmd="bun run check:lint", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["checks"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "check:type", | ||
| cmd="bun run check:type", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["checks"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "check:links", | ||
| cmd="bun run check:link", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["checks"], | ||
| ) | ||
|
|
||
| if _vale_installed: | ||
| local_resource( | ||
| "check:writing", | ||
| cmd="bun run check:writing", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["checks"], | ||
| ) | ||
| else: | ||
| warn("vale not found in PATH. 'check:writing' resource disabled. See https://vale.sh/docs/vale-cli/installation/ for install instructions.") | ||
|
|
||
| local_resource( | ||
| "fix", | ||
| cmd="bun run fix", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["utils"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "fix:format", | ||
| cmd="bun run fix:format", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["utils"], | ||
| ) | ||
|
|
||
| local_resource( | ||
| "fix:lint", | ||
| cmd="bun run fix:lint", | ||
| dir=".", | ||
| resource_deps=["install"], | ||
| auto_init=False, | ||
| labels=["utils"], | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.