Skip to content

1.1.0

Compare
Choose a tag to compare
@ariaieboy ariaieboy released this 04 Apr 11:56
· 29 commits to main since this release
df999a8

added 2 new alias for laravel sail:
s cinit for installing composer dependencies in existing applications using composer docker image.
s ninit for installing npm packages in existing applications using npm docker image.

when you pull an existing application from remote services like github the composer and npm dependencies are not installed.
for running sail commands you need to install composer dependencies first you need to have php and composer installed on your local machine or you can use this new s cinit command to install composer deps using docker.

use case of s ninit with laravel is when you use laravel octane with --watch flag if you don't install the npm packages ,octane gonna crash because the --watch flag is depends on chokedir that is a npm package so you need install npm packages before you want run sail up.

in both commands you can pass the version of the php or node using the second argument:
for example :
s cinit 80 will run composer using php 8.0
and
s ninit 16 will run npm using node 16

by default s cinit use php 8.1 and s ninit use node 17