Skip to content
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
9 changes: 9 additions & 0 deletions .claude/hooks/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,12 @@ bun --hot ./index.ts
```

For more information, read the Bun API docs in `node_modules/bun-types/docs/**.mdx`.


<claude-mem-context>
# Recent Activity

<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->

*No recent activity*
</claude-mem-context>
25 changes: 18 additions & 7 deletions .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "bun /Users/elvis/Documents/Git/HomeLab-Tools/dokploy/.claude/hooks/index.ts Notification"
"command": "bun /opt/dokploy/.worktrees/feature/add-codecov-workflow/.claude/hooks/index.ts Notification"
}
]
}
Expand All @@ -17,7 +17,7 @@
"hooks": [
{
"type": "command",
"command": "bun /Users/elvis/Documents/Git/HomeLab-Tools/dokploy/.claude/hooks/index.ts Stop"
"command": "bun /opt/dokploy/.worktrees/feature/add-codecov-workflow/.claude/hooks/index.ts Stop"
}
]
}
Expand All @@ -28,7 +28,7 @@
"hooks": [
{
"type": "command",
"command": "bun /Users/elvis/Documents/Git/HomeLab-Tools/dokploy/.claude/hooks/index.ts PreToolUse"
"command": "bun /opt/dokploy/.worktrees/feature/add-codecov-workflow/.claude/hooks/index.ts PreToolUse"
}
]
}
Expand All @@ -39,7 +39,7 @@
"hooks": [
{
"type": "command",
"command": "bun /Users/elvis/Documents/Git/HomeLab-Tools/dokploy/.claude/hooks/index.ts PostToolUse"
"command": "bun /opt/dokploy/.worktrees/feature/add-codecov-workflow/.claude/hooks/index.ts PostToolUse"
}
]
}
Expand All @@ -50,7 +50,7 @@
"hooks": [
{
"type": "command",
"command": "bun /Users/elvis/Documents/Git/HomeLab-Tools/dokploy/.claude/hooks/index.ts SubagentStop"
"command": "bun /opt/dokploy/.worktrees/feature/add-codecov-workflow/.claude/hooks/index.ts SubagentStop"
}
]
}
Expand All @@ -61,7 +61,7 @@
"hooks": [
{
"type": "command",
"command": "bun /Users/elvis/Documents/Git/HomeLab-Tools/dokploy/.claude/hooks/index.ts UserPromptSubmit"
"command": "bun /opt/dokploy/.worktrees/feature/add-codecov-workflow/.claude/hooks/index.ts UserPromptSubmit"
}
]
}
Expand All @@ -72,7 +72,18 @@
"hooks": [
{
"type": "command",
"command": "bun /Users/elvis/Documents/Git/HomeLab-Tools/dokploy/.claude/hooks/index.ts PreCompact"
"command": "bun /opt/dokploy/.worktrees/feature/add-codecov-workflow/.claude/hooks/index.ts PreCompact"
}
]
}
],
"SessionStart": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "bun /opt/dokploy/.worktrees/feature/add-codecov-workflow/.claude/hooks/index.ts SessionStart"
}
]
}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<claude-mem-context>
# Recent Activity

<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->

*No recent activity*
</claude-mem-context>
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,19 @@ yarn-error.log*
tmp/
temp/
SESSION_LOG.md

# Git worktrees
.worktrees/

# Node.js
node_modules/
package-lock.json

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

package-lock.json should not be in .gitignore. This file is crucial for ensuring that the exact same dependency versions are used across all environments (developer machines, CI/CD pipelines, etc.), which prevents "works on my machine" issues. By committing it, you guarantee reproducible builds.


# Testing
coverage/
.nyc_output/
*.tsbuildinfo

# Build
dist/
build/
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Dokploy Templates + Cloudflare Integration - AI Coding Agent System

**Version:** 1.0.0
**Last Updated:** December 24, 2025
**Repository:** https://github.com/enuno/dokploy
[![codecov](https://codecov.io/github/enuno/dokploy/graph/badge.svg?token=51RJO0LXYK)](https://codecov.io/github/enuno/dokploy)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-critical critical

The Codecov token is exposed in the badge URL. This is a security risk, as tokens should be kept secret. For public repositories, the token is not required to display the badge. Please remove the token from the URL.

Suggested change
[![codecov](https://codecov.io/github/enuno/dokploy/graph/badge.svg?token=51RJO0LXYK)](https://codecov.io/github/enuno/dokploy)
[![codecov](https://codecov.io/github/enuno/dokploy/graph/badge.svg)](https://codecov.io/github/enuno/dokploy)


**Version:** 1.0.0
**Last Updated:** December 24, 2025
**Repository:** https://github.com/enuno/dokploy
**Project Lead:** Ryno Crypto Mining Services - ServerDomes Network Engineering

---
Expand Down Expand Up @@ -495,6 +497,10 @@ All templates must meet:
- ✅ **Documentation:** Complete and clear
- ✅ **No Secrets:** Hardcoded credentials forbidden

### Code Coverage Visualization

![Coverage Sunburst](https://codecov.io/github/enuno/dokploy/graphs/sunburst.svg?token=51RJO0LXYK)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-critical critical

The Codecov token is exposed in the sunburst graph URL. This is a security risk, as tokens should be kept secret. For public repositories, the token is not required to display the graph. Please remove the token from the URL.

Suggested change
![Coverage Sunburst](https://codecov.io/github/enuno/dokploy/graphs/sunburst.svg?token=51RJO0LXYK)
![Coverage Sunburst](https://codecov.io/github/enuno/dokploy/graphs/sunburst.svg)


---

## 🔄 Contributing
Expand Down
11 changes: 11 additions & 0 deletions __tests__/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<claude-mem-context>
# Recent Activity

<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->

### Jan 27, 2026

| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #498 | 11:36 PM | 🟣 | Added infrastructure smoke tests for Jest and TypeScript | ~284 |
</claude-mem-context>
20 changes: 20 additions & 0 deletions __tests__/infrastructure.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Infrastructure smoke test
* Verifies that Jest, TypeScript, and coverage collection work correctly
*/

describe('Testing Infrastructure', () => {
test('Jest can run tests', () => {
expect(true).toBe(true);
});

test('TypeScript compilation works', () => {
const value: string = 'test';
expect(typeof value).toBe('string');
});

test('Basic assertions work', () => {
const sum = (a: number, b: number): number => a + b;
expect(sum(2, 3)).toBe(5);
});
});
31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "dokploy-templates",
"version": "1.0.0",
"description": "Production-ready Dokploy application templates with Cloudflare integration",
"private": true,
"scripts": {
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"**/__tests__/**/*.ts",
"**/?(*.)+(spec|test).ts"
],
"collectCoverageFrom": [
"**/*.ts",
"!**/*.d.ts",
"!**/node_modules/**",
"!**/__tests__/**"
]
}
}
18 changes: 18 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"lib": ["ES2020"],
"outDir": "./dist",
"rootDir": "./",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"types": ["jest", "node"]
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "dist"]
}