Skip to content

template: use pnpm instead of npm#700

Open
ascott18 wants to merge 8 commits intomainfrom
ascott/pnpm
Open

template: use pnpm instead of npm#700
ascott18 wants to merge 8 commits intomainfrom
ascott/pnpm

Conversation

@ascott18
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Coalesce Vue starter template and related tooling/docs to use pnpm instead of npm, including CI pipeline changes and minor template/runtime adjustments to avoid phantom dependencies that pnpm would expose.

Changes:

  • Switch template CI/build scripts from npm to pnpm (Azure Pipelines + GitHub Actions) and add pnpm configuration in the template app startup.
  • Add pnpm-lock.yaml and update template/package dependencies (including explicit date-fns / date-fns-tz) to work with pnpm’s stricter dependency model.
  • Update documentation and some runtime code paths (e.g., AppInsights trace ID generation, coalesce-vue re-export usage) to align with the new dependency structure.

Reviewed changes

Copilot reviewed 18 out of 20 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
templates/Coalesce.Vue.Template/content/azure-pipelines.yml Use pnpm for install/lint/build in Azure Pipelines.
templates/Coalesce.Vue.Template/content/.github/workflows/build-test-and-deploy.yml Use pnpm for install/lint/build in GitHub Actions.
templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/package.json Declare pnpm package manager, adjust scripts/deps, and move overrides under pnpm.
templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/pnpm-lock.yaml Add lockfile for pnpm installs.
templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/Program.cs Configure Vite dev middleware to use pnpm.
src/IntelliTect.Coalesce.Vue/DevMiddleware/ViteServerOptions.cs Add PackageManagerCommand option (default npm).
src/IntelliTect.Coalesce.Vue/DevMiddleware/ViteDevelopmentServerMiddleware.cs Improve stderr-based error reporting for missing package manager.
src/coalesce-vue/src/build.ts Skip npm-specific package version checks when not running under npm.
templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/src/composables/useAppInsights.ts Replace AppInsights trace ID generator implementation.
templates/Coalesce.Vue.Template/content/.template.config/template.json Update template exclude patterns (now includes pnpm-lock.yaml).
docs/topics/vite-integration.md Document Vite integration (includes new pnpm-related wording).
docs/stacks/vue/getting-started.md Update getting-started commands to pnpm.
templates/Coalesce.Vue.Template/content/AGENTS.md Update template agent guidance from npm to pnpm.
templates/Coalesce.Vue.Template/content/.vscode/settings.json Update tool auto-approval command to pnpm test.
CHANGELOG.md Document pnpm migration steps and isAxiosError re-export note.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/topics/vite-integration.md
Comment thread templates/Coalesce.Vue.Template/content/azure-pipelines.yml Outdated
Comment thread docs/stacks/vue/getting-started.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants