Skip to content

feat(dx): add npm scripts for common development tasks#84

Merged
CalvinAllen merged 1 commit into
mainfrom
feat/20-npm-scripts
Dec 10, 2025
Merged

feat(dx): add npm scripts for common development tasks#84
CalvinAllen merged 1 commit into
mainfrom
feat/20-npm-scripts

Conversation

@CalvinAllen

Copy link
Copy Markdown
Contributor

Summary

Add npm scripts for common development tasks, using Node.js/npm as our task runner.

Available Scripts

Script Description
npm run format Format all Go source files
npm run lint Run golangci-lint
npm run test Run all tests
npm run test:coverage Run tests with coverage report
npm run build Build both CLI and shim binaries
npm run install Build and install to ~/.dtvem/bin
npm run clean Clean build artifacts
npm run check Run format, lint, and test

Why npm?

  • Already required for commitlint/husky
  • Cross-platform (Windows, macOS, Linux)
  • No additional dependencies needed
  • Familiar to most developers

Test plan

  • Run npm run check to verify all checks pass
  • Run npm run build to verify binaries are created
  • Run npm run install to verify local installation works

Fixes #20

Add npm scripts for:
- format: Run gofmt on source files
- lint: Run golangci-lint
- test: Run all tests
- test:coverage: Run tests with coverage report
- build: Build both CLI and shim binaries
- install: Build and install to ~/.dtvem/bin
- clean: Remove build artifacts
- check: Run format, lint, and test

Fixes #20
@CalvinAllen CalvinAllen merged commit 5b47b25 into main Dec 10, 2025
2 checks passed
@CalvinAllen CalvinAllen deleted the feat/20-npm-scripts branch December 10, 2025 21:47
@CalvinAllen

Copy link
Copy Markdown
Contributor Author

/skip-changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat(dx): npm scripts for common development tasks

1 participant