Snippets
Copy-paste-ready boilerplate for the root-level files.
Copy-paste-ready snippets for the files that govern the repository as a whole.
.gitignore
Section titled “.gitignore”# Operating System.DS_Store
# Dependenciesnode_modules/
# Builddist/
# TypeScripttsbuild/tsconfig.tsbuildinfo
# Nx.nx/
# Alchemy.alchemy/
# Agents.claude/package.json
Section titled “package.json”{ "name": "project-name", "version": "0.0.0", "private": true, "workspaces": [ "applications/*", "libraries/domain/*", "libraries/foundation/*", "orchestrators/*", "services/*" ], "scripts": { "dev": "alchemy dev", "graph": "nx graph", "types:check": "nx run-many -t types:check", "format": "vp fmt", "format:check": "vp fmt --check", "lint": "vp lint --fix", "lint:check": "vp lint" }, "devDependencies": { "@commitlint/cli": "21.0.0", "@commitlint/config-conventional": "21.0.0", "@effect/platform-bun": "4.0.0-beta.57", "@effect/platform-node": "4.0.0-beta.57", "@nx/js": "22.7.1", "@types/bun": "1.3.13", "alchemy": "2.0.0-beta.13", "effect": "4.0.0-beta.57", "nx": "22.7.1", "typescript": "6.0.2", "vite-plus": "0.1.20" }, "commitlint": { "extends": ["@commitlint/config-conventional"] }}bunfig.toml
Section titled “bunfig.toml”[install]exact = trueglobalStore = truelinker = "isolated"minimumReleaseAge = 259200nx.json
Section titled “nx.json”{ "$schema": "./node_modules/nx/schemas/nx-schema.json", "analytics": true, "neverConnectToCloud": true, "tui": { "enabled": false }, "plugins": [ { "plugin": "@nx/js/typescript", "options": { "compiler": "tsgo", "typecheck": { "targetName": "types:check" }, "build": false } } ]}vite.config.ts
Section titled “vite.config.ts”import { defineConfig } from 'vite-plus';
export default defineConfig({ fmt: { singleQuote: true, }, staged: { '*': 'vp check --fix', },});.vite-hooks/pre-commit
Section titled “.vite-hooks/pre-commit”vp staged.vite-hooks/commit-msg
Section titled “.vite-hooks/commit-msg”commitlint --edit "$1"alchemy.run.ts
Section titled “alchemy.run.ts”import * as Alchemy from 'alchemy';import * as Cloudflare from 'alchemy/Cloudflare';import * as Effect from 'effect/Effect';
export default Alchemy.Stack( 'RepositoryName', { providers: Cloudflare.providers(), state: Cloudflare.state(), }, Effect.gen(function* () { return 'Deployment stack is empty.'; }),);