custom-install-all-dependencies

Installs backend Composer packages and frontend npm dependencies for a Laravel Sail project.

1|Updated Apr 3, 2021
One-click install
npx skills add https://github.com/NaoyaMiyagawa/dotfiles --skill custom-install-all-dependencies-naoyamiyagawa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: custom-install-all-dependencies
Source: https://github.com/NaoyaMiyagawa/dotfiles/tree/main/.ai/skills/custom-install-all-dependencies
Command: npx skills add https://github.com/NaoyaMiyagawa/dotfiles --skill custom-install-all-dependencies-naoyamiyagawa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up a local development environment requires running separate dependency installation commands for the backend and frontend, which is repetitive and easy to forget when onboarding or resetting a project. ## Core Features & Use Cases - Backend Dependency Installation: Runs vendor/bin/sail composer install to install PHP dependencies inside the Laravel Sail Docker environment. - Frontend Dependency Installation: Runs ni to install Node.js packages using the project's detected package manager. - Use Case: After cloning a Laravel project repository, trigger this Skill to install all backend and frontend dependencies in one step instead of running each command manually. ## Quick Start Ask the assistant to install all dependencies for the backend and frontend of this project.

Frequently Asked Questions about custom-install-all-dependencies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install all dependencies for a Laravel project at once?

Run vendor/bin/sail composer install for backend PHP packages and ni for frontend Node.js packages. This Skill executes both commands together so the full project environment is ready in one step.

What does the ni command do for frontend dependencies?

The ni command, from the @antfu/ni tool, detects the project's package manager (npm, yarn, or pnpm) from the lockfile and runs the correct install command. It removes the need to remember which package manager the project uses.

Can I use composer install with Laravel Sail?

Yes, run vendor/bin/sail composer install to execute Composer inside the Sail Docker container. This ensures dependencies are installed with the container's PHP version rather than the host machine's PHP.

Why does composer install fail outside the Sail container?

Composer install can fail on the host when the local PHP version or extensions differ from the project's requirements. Running it through vendor/bin/sail uses the container's consistent environment, avoiding version mismatches.

When should I not use this dependency installation workflow?

Avoid it when the project does not use Laravel Sail or when only one side (backend or frontend) needs updating. In those cases, run the individual composer or package manager command directly.