π DevMagic Installation Scripts
Main DevMagic Installation
Install DevMagic dev container to your project:
curl -fsSL https://devmagic.run/install | bashOr view the script: https://devmagic.run/install (curl/wget only)
Additional Installation Scripts
Quick setup scripts for common development tools. Run with curl:
Dev Container
Alias for the main DevMagic installer β generates a complete dev container setup (devcontainer.json, docker-compose.yml, Dockerfile) from the templates, with your project name and container user baked in
- curl
- Docker + VS Code (to actually use the generated container)
- Download the devcontainer templates
- Fill in your project folder name (sanitized) and container user
- Write ready-to-use files into .devcontainer/
curl -fsSL https://devmagic.run/install/devcontainer | bashView script: https://devmagic.run/install/devcontainer (curl/wget only)
Prettier
Install and configure Prettier with Husky and lint-staged for automatic code formatting
- Node.js project with package.json
- Git repository (for Husky)
- Install Prettier with exact version
- Create .prettierrc and .prettierignore files
- Create .editorconfig file
- Install and configure Husky
- Install and configure lint-staged
- Add lint-staged configuration to package.json
- Create GitHub Actions workflow for format checking
curl -fsSL https://devmagic.run/install/prettier | bash# npm
curl -fsSL https://devmagic.run/install/prettier?pm=npm | bash
# yarn
curl -fsSL https://devmagic.run/install/prettier?pm=yarn | bash
# bun
curl -fsSL https://devmagic.run/install/prettier?pm=bun | bashView script: https://devmagic.run/install/prettier (curl/wget only)
Project Templates
Ready-to-use config files for new projects, downloaded into the current directory. Existing files are never overwritten unless you add ?force=1 to the URL.
EditorConfig
Sensible .editorconfig defaults (2-space indent, LF, UTF-8, per-language tweaks for Python, shell, F#, Markdown and more)
.editorconfig
curl -fsSL https://devmagic.run/install/editorconfig | bashView the generated installer: https://devmagic.run/install/editorconfig (curl/wget only)
Prettier config
Just the Prettier configuration files (defaults-first .prettierrc plus a .prettierignore for common artifacts) β use the `prettier` script instead for the full setup with Husky and lint-staged
.prettierrc.prettierignore
curl -fsSL https://devmagic.run/install/prettier-config | bashView the generated installer: https://devmagic.run/install/prettier-config (curl/wget only)
Gitignore (Node)
A .gitignore for Node/TypeScript projects (dependencies, builds, coverage, env files, pnpm store, editor leftovers)
.gitignore
curl -fsSL https://devmagic.run/install/gitignore | bashView the generated installer: https://devmagic.run/install/gitignore (curl/wget only)
Changelog (git-cliff)
Conventional-commits changelog generation with git-cliff β the cliff.toml config plus a GitHub Actions workflow that keeps CHANGELOG.md updated on every push to main
cliff.toml.github/workflows/changelog.yml
- The changelog links use your repository URL, auto-detected from git remote origin β if detection fails, edit the URL placeholder in cliff.toml
- Optional: add package.json scripts: "changelog": "git-cliff -o CHANGELOG.md" and "changelog:unreleased": "git-cliff --unreleased"
- Local generation needs git-cliff (e.g. pnpm add -D git-cliff); the GitHub workflow needs nothing extra
curl -fsSL https://devmagic.run/install/changelog | bashView the generated installer: https://devmagic.run/install/changelog (curl/wget only)