Skip to content

Commit 1bf621a

Browse files
committed
Fix Prettier
1 parent 6d19ed5 commit 1bf621a

File tree

3 files changed

+29
-18
lines changed

3 files changed

+29
-18
lines changed

registry/djarbz/modules/copyparty/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ module "copyparty" {
4949

5050
```tf
5151
module "copyparty" {
52-
count = data.coder_workspace.me.start_count
53-
source = "registry.coder.com/djarbz/copyparty/coder"
54-
version = "0.1.0"
55-
agent_id = coder_agent.example.id
52+
count = data.coder_workspace.me.start_count
53+
source = "registry.coder.com/djarbz/copyparty/coder"
54+
version = "0.1.0"
55+
agent_id = coder_agent.example.id
5656
subdomain = true
5757
arguments = [
58-
"-v", "/tmp:/tmp:r", # Share tmp directory (read-only)
59-
"-v", "/home/coder/:/home:rw", # Share home directory (read-write)
60-
"-v", "${local.root_dir}:/work:A:c,dotsrch", # Share work directory (All Perms)
61-
"-e2dsa", # Enables general file indexing"
62-
"--re-maxage", "900", # Rescan filesystem for changes every SEC
63-
"--see-dots", # Show dotfiles by default if user has correct permissions on volume
64-
"--xff-src=lan", # List of trusted reverse-proxy CIDRs (comma-separated) or `lan` for private IPs.
65-
"--rproxy", "1", # Which ip to associate clients with, index of X-FWD IP.
58+
"-v", "/tmp:/tmp:r", # Share tmp directory (read-only)
59+
"-v", "/home/coder/:/home:rw", # Share home directory (read-write)
60+
"-v", "${local.root_dir}:/work:A:c,dotsrch", # Share work directory (All Perms)
61+
"-e2dsa", # Enables general file indexing"
62+
"--re-maxage", "900", # Rescan filesystem for changes every SEC
63+
"--see-dots", # Show dotfiles by default if user has correct permissions on volume
64+
"--xff-src=lan", # List of trusted reverse-proxy CIDRs (comma-separated) or `lan` for private IPs.
65+
"--rproxy", "1", # Which ip to associate clients with, index of X-FWD IP.
6666
]
6767
}
6868
```

registry/djarbz/modules/copyparty/run.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ DOWNLOAD_URL="https://github.com/9001/copyparty/releases/download/$${RELEASE_TO_
6363

6464
printf "⏬ Downloading copyparty-sfx.py...\n"
6565
if ! curl -fsSL -o /tmp/copyparty-sfx.py "$${DOWNLOAD_URL}/copyparty-sfx.py"; then
66-
printf "❌ Failed to download copyparty-sfx.py.\n"
67-
exit 1
66+
printf "❌ Failed to download copyparty-sfx.py.\n"
67+
exit 1
6868
fi
6969

7070
printf "⏬ Downloading helptext.html...\n"
7171
if ! curl -fsSL -o /tmp/helptext.html "$${DOWNLOAD_URL}/helptext.html"; then
72-
# This is not a fatal error, just a warning.
73-
printf "⚠️ Could not download helptext.html. The application will still work.\n"
72+
# This is not a fatal error, just a warning.
73+
printf "⚠️ Could not download helptext.html. The application will still work.\n"
7474
fi
7575

7676
chmod +x /tmp/copyparty-sfx.py
@@ -81,7 +81,7 @@ printf "🥳 Installation complete!\n\n"
8181
# Build a clean, quoted string of the command for logging purposes only.
8282
log_command="python3 /tmp/copyparty-sfx.py -p '$${PORT}'"
8383
for arg in "$${ARGUMENTS[@]}"; do
84-
# printf "DEBUG: ARG [$${arg}]\n"
84+
# printf "DEBUG: ARG [$${arg}]\n"
8585
log_command+=" '$${arg}'"
8686
done
8787

registry/djarbz/repo_setup.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ nvm install node
1111
npm install
1212
```
1313

14-
## Install Bun
14+
## Install NPM Tooling
1515

1616
```bash
1717
npm install -g bun
18+
npm install -g prettier
1819
```
1920

2021
## Install Terraform
@@ -35,3 +36,13 @@ sudo apt-get install -y terraform
3536
## Install Extenstions
3637

3738
- hashicorp.terraform
39+
40+
## Testing
41+
42+
```bash
43+
bun run fmt
44+
npx prettier . --write
45+
# From registry namespace
46+
terraform init -upgrade
47+
terraform test -verbose
48+
```

0 commit comments

Comments
 (0)