Skip to content

Add shell script to automate full Inertia.js dependency installation and package setup #2444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

michaelnabil230
Copy link

This PR introduces a new shell script (install.sh) to streamline the development setup process for the Inertia.js monorepo.

Key Features:

  • Verifies the existence of pnpm and provides installation instructions if missing.
  • Installs root dependencies using pnpm install.
  • Recursively installs dependencies for:
    • All packages in ./packages/*
    • All playgrounds in ./playgrounds/*
    • The main test app (tests/app)
    • Individual test apps in packages/react/test-app, packages/svelte/test-app, and packages/vue3pp
  • Builds all packages using pnpm build:all.
  • Displays a summary of useful pnpm commands for development and testing.

This script helps reduce setup errors, ensure consistent environments, and improve onboarding efficiency for contributors.

@pascalbaljet
Copy link
Member

Thanks for this, but you don't need to run pnpm install in all the subdirectories. pnpm takes care of that since we're using workspaces. I've recently rewritten the Contributing Guide, and since the move to pnpm, it's much easier to get started. So I'd rather have people reading that document and fully understanding the structure than another script that we have to maintain.

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