Skip to content

Commit 73a3389

Browse files
Stuff
1 parent e2cf5d0 commit 73a3389

9 files changed

Lines changed: 129 additions & 2 deletions

File tree

src/test/fixtures/workspace/Taskfile.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
version: '3'
22

3+
# Global variables
4+
vars:
5+
GREETING: Hello
6+
37
tasks:
48
build:
59
desc: Build the project
@@ -8,10 +12,38 @@ tasks:
812

913
test:
1014
desc: Run tests
15+
deps: [build]
1116
cmds:
1217
- echo "Testing..."
1318

1419
lint:
1520
desc: Run linter
1621
cmds:
1722
- echo "Linting..."
23+
24+
deploy:
25+
description: 'Deploy to production'
26+
deps: [build, test]
27+
cmds:
28+
- echo "Deploying..."
29+
30+
clean:
31+
desc: "Clean build artifacts"
32+
vars:
33+
OUTPUT_DIR: dist
34+
cmds:
35+
- echo "Cleaning {{.OUTPUT_DIR}}..."
36+
37+
format:
38+
cmds:
39+
- echo "Formatting..."
40+
41+
generate:
42+
desc:
43+
cmds:
44+
- echo "Generating..."
45+
46+
setup-env:
47+
desc: Setup development environment
48+
cmds:
49+
- echo "Setting up..."

src/test/fixtures/workspace/build.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,16 @@
2121
<target name="" description="Empty name should be skipped">
2222
<echo message="Skip" />
2323
</target>
24+
25+
<target name='package' description='Create distribution package'>
26+
<echo message="Packaging..." />
27+
</target>
28+
29+
<target name="validate" description="">
30+
<echo message="Validating..." />
31+
</target>
32+
33+
<target name="init">
34+
<echo message="Initializing..." />
35+
</target>
2436
</project>

src/test/fixtures/workspace/deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"test": "deno test",
66
"lint": "deno lint",
77
"fmt": "deno fmt",
8-
"check": "deno check main.ts && deno test --coverage && deno lint --compact && echo done with a very long command that should trigger truncation"
8+
"check": "deno check main.ts && deno test --coverage && deno lint --compact && echo done with a very long command that should trigger truncation",
9+
"bench": "deno bench --allow-read --allow-write --allow-net --allow-env --unstable-kv benchmarks/main_bench.ts"
910
}
1011
}

src/test/fixtures/workspace/docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,23 @@ services:
1111
environment:
1212
POSTGRES_PASSWORD: secret
1313

14+
# Cache service
1415
redis:
1516
image: redis:7
17+
18+
app-1:
19+
build: ./app
20+
depends_on:
21+
- db
22+
- redis
23+
24+
cache_store:
25+
image: memcached:latest
26+
ports:
27+
- "11211:11211"
28+
29+
# Worker service for background jobs
30+
worker_2:
31+
build: ./worker
32+
environment:
33+
QUEUE: default
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Empty Document
3+
---
4+
5+
```bash
6+
echo "This is just a code block"
7+
```
8+
9+
```python
10+
print("Another code block")
11+
```

src/test/fixtures/workspace/justfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,19 @@ lint fix="false":
2121
# Format source code
2222
format:
2323
echo "Formatting..."
24+
25+
# Run benchmarks with options
26+
bench iterations="100" output="json":
27+
echo "Running {{iterations}} benchmarks as {{output}}"
28+
29+
# Generate documentation
30+
docs src dst="./output":
31+
echo "Generating docs from {{src}} to {{dst}}"
32+
33+
# Hidden helper
34+
_setup-deps:
35+
echo "Installing dependencies..."
36+
37+
# Check all the things
38+
check:
39+
echo "Checking..."

src/test/fixtures/workspace/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"build": "echo 'Building main project'",
66
"test": "echo 'Running tests'",
77
"lint": "echo 'Linting code'",
8-
"start": "echo 'Starting application'"
8+
"start": "echo 'Starting application'",
9+
"clean": "rimraf dist coverage .cache",
10+
"prebuild": "npm run clean",
11+
"postbuild": "echo 'Build complete'",
12+
"bench": "vitest bench --reporter=verbose --outputFile=benchmark-results.json --coverage --run --passWithNoTests && echo done"
913
}
1014
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Deploy all services to the target cluster
3+
# @param cluster Target cluster
4+
#
5+
# This script handles full deployment
6+
# @param region AWS region (default: us-east-1)
7+
8+
echo "Deploying to $1 in $2"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<#
2+
.SYNOPSIS
3+
Run all test suites
4+
5+
.PARAMETER TestSuite
6+
The test suite to run
7+
8+
.PARAMETER Verbose
9+
Enable verbose logging
10+
#>
11+
12+
# @param TestSuite The suite to run (default: unit)
13+
# @param
14+
# @param Timeout Max seconds to wait
15+
# Regular comment that is not a param
16+
# Another regular comment
17+
18+
param(
19+
$TestSuite = "unit",
20+
$Timeout,
21+
$Verbose
22+
)
23+
24+
# This is a regular comment
25+
Write-Host "Running $TestSuite tests with timeout $Timeout"

0 commit comments

Comments
 (0)