This document explains all available pnpm scripts in the project.
-
pnpm run devStarts Next.js development server with hot module replacement athttp://localhost:3000. -
pnpm run dev:turboStarts Next.js development server using TurboPack (experimental faster Rust-based engine). -
pnpm run dev:allRuns full-stack development: Next.js + Cloudflare Workers simulator + Trigger.dev background jobs. -
pnpm run wranglerStarts Cloudflare Workers development server with local environment simulation athttp://localhost:8788. -
pnpm run triggerStarts Trigger.dev development server for background job management.
-
pnpm run buildCompiles Next.js application for production. -
pnpm run build:allBuilds both Next.js and OpenNext.js Cloudflare adapter for complete deployment preparation. -
pnpm run build:opennextCompiles the application using OpenNext.js Cloudflare adapter for Cloudflare Workers deployment. -
pnpm run build:opennext:profileCompiles with --noMinify flag for performance profiling and debugging (unminified code).
-
pnpm run previewBuilds and runs the Cloudflare application locally to test the production build. -
pnpm run preview:profileBuilds with profiling settings and runs locally for performance analysis.
-
pnpm run deploy:devBuilds and deploys to the development Cloudflare Worker (allthingslinux-dev) with separate R2/KV bindings. -
pnpm run deploy:prodBuilds and deploys to the production Cloudflare Worker (allthingslinux-prod) with separate R2/KV bindings. -
pnpm run deployAlias for production deployment - the default deploy command.
-
pnpm run version:uploadCreates a new version in the development Cloudflare Worker without deploying it immediately. -
pnpm run version:deployDeploys the latest uploaded version to the development Cloudflare Worker. -
pnpm run version:listLists all versions of the development Cloudflare Worker with metadata.
-
pnpm run secrets:devUploads secrets from.env.secrets.devto the development Cloudflare Worker (uses.github/scripts/secrets.sh). -
pnpm run secrets:prodUploads secrets from.env.secrets.prodto the production Cloudflare Worker (uses.github/scripts/secrets.sh).
-
pnpm run lintRuns ESLint to check JavaScript/TypeScript code quality. -
pnpm run formatRuns Prettier to format all code files. -
pnpm run checkRuns all code quality checks: TypeScript, formatting, and MDX validation. -
pnpm run check:tsRuns TypeScript compiler to validate types. -
pnpm run check:formatChecks if files are properly formatted with Prettier. -
pnpm run check:mdxValidates MDX files in the blog content directory.
-
pnpm run setup:bindingsSets up Cloudflare bindings (R2 buckets, KV namespaces). IMPORTANT: Update wrangler.jsonc with the KV ID from the script output. -
pnpm run cf:typegenGenerates TypeScript types for Cloudflare Workers bindings and environment variables. -
pnpm run testRuns the test suite using Vitest with Cloudflare Workers testing capabilities. -
pnpm run analyze:bundleProvides guidance for bundle size analysis using ESBuild Bundle Analyzer on the built worker code. -
pnpm run coc:generateGenerates the Code of Conduct markdown file from TOML configuration.