Preset – A command line tool for applying existing presets to your freshly scaffolded projects
Published on by Eric L. Barnes
Preset is a command-line tool for kickstarting your application’s development by applying presets on top of it. If you’ve ever tried a boilerplate, then you might have gotten frustrated with all the changes it makes behind the scenes and how you usually are expected to do things the way the creator designed it. Preset is an alternative to this setup, and the beauty of it is each “preset” describes the exact changes needed for the features to be added. By reading the preset’s code, you know the exact changes it brings.
You can get started using it by using the npx use-preset
command. Then you can use existing presets via the command line.
npx use-preset your-github-username/your-preset
Some of the pre-existing preset’s include:
- Laravel TALL – Adds Tailwind CSS, Alpine.js and Livewire to a fresh Laravel application.
- Laravel Inertia – Adds Tailwind CSS, Inertia and Vue to a fresh Laravel application.
- Laravel + Tailwind CSS – Adds Tailwind CSS to Laravel.
- Laravel + Pest – Adds Pest to Laravel.
- Vite + Tailwind CSS – Adds Tailwind CSS to a fresh Vite application, or creates the Vite application.
- Preset – A preset for making presets.
The documentation includes all the details on getting started and building your own presets.
Eric is the creator of Laravel News and has been covering Laravel since 2012.