layouts-dev
v0.0.63
Published
Add components to your apps.
Downloads
30
Maintainers
Readme
layouts-dev
A CLI for syncing layouts.dev projects with your local machine.
Usage
Creating a Layouts.dev project
Start here: app.layouts.dev
Generate a NextJS project from Layouts.dev
Use the init
command in an empty directory to generate a fully working NextJS project from your layouts.dev project.
npx layouts-dev init <PROJECT_ID>
Keep the project in sync
Use the sync
command to synchronize any intialized directory with its layouts.dev counterpart.
The command will listen to changes you make in layouts.dev in real time and apply them to your local project.
npx layouts-dev sync
Enjoy live-reload as your type on Layouts.dev
Once a project is linked to a remote layouts.dev project, running the dev
command will run the synchronization utility in parallel on NextJS.
npm run dev
Documentation
Visit https://docs.layouts.dev to view the documentation.