Skip to content

Commit cc82c20

Browse files
committed
chore: Add dtvem to itself to manage node for commit hooks
1 parent eba32be commit cc82c20

4 files changed

Lines changed: 34 additions & 0 deletions

File tree

.dtvem/runtimes.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/dtvem/dtvem/main/schemas/runtimes.schema.json",
3+
"node": "22.0.0"
4+
}

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,21 @@ func init() {
489489

490490
- Go 1.23 or higher
491491
- Git
492+
- Node.js (for git hooks) - managed via dtvem, see `.dtvem/runtimes.json`
493+
494+
### Setup
495+
496+
```bash
497+
# Clone the repository
498+
git clone https://github.com/dtvem/dtvem.git
499+
cd dtvem
500+
501+
# Install Node.js via dtvem (if not already installed)
502+
dtvem install
503+
504+
# Install dev dependencies (sets up git hooks for conventional commits)
505+
npm install
506+
```
492507

493508
### Building
494509

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "dtvem",
3+
"version": "0.0.0",
4+
"private": true,
5+
"description": "Development dependencies for dtvem - requires Node.js via dtvem",
6+
"scripts": {
7+
"prepare": "husky"
8+
},
9+
"devDependencies": {
10+
"@commitlint/cli": "^19.0.0",
11+
"@commitlint/config-conventional": "^19.0.0",
12+
"husky": "^9.0.0"
13+
}
14+
}

0 commit comments

Comments
 (0)