Scripts


Launchpad Next includes utility scripts that help you customize the template and remove optional features before deployment.


Documentation Cleanup

Some Launchpad Next templates ship with a complete documentation system to help you learn the codebase, showcase components, and provide product documentation.

This includes:

app/(docs)
components/docs-layout
content/docs

While useful during development, many production SaaS applications do not need a public documentation section.

To help keep your project clean, Launchpad Next includes a script that removes all documentation-related files.


Remove Documentation

Run:

npm run remove-docs

What Gets Removed

The script permanently removes:

app/(docs)
components/docs-layout
content/docs

This removes:

  • Documentation routes
  • Documentation layouts
  • Documentation content
  • Documentation-specific components

When Should I Use This?

Use this script if:

  • You are building a client project
  • You do not need a documentation section
  • You want a smaller production codebase
  • You only plan to use the SaaS application itself

If you plan to publish product documentation, guides, or component examples, you should keep the documentation system.


Before Running

It is recommended to commit your project before running cleanup scripts.

git add .
git commit -m "Backup before removing docs"

This allows you to restore the documentation later if needed.


Restore Documentation

The cleanup script permanently removes files.

If you are using Git, you can restore them from version control.

Example:

git restore .

or restore specific directories:

git checkout HEAD -- app/(docs)
git checkout HEAD -- components/docs-layout
git checkout HEAD -- content/docs

Example

Before

app/
├── (docs)
 
components/
├── docs-layout
 
content/
├── docs

After

app/
 
components/
 
content/

All other template functionality remains unchanged.


Notes

  • The documentation system is optional.
  • Removing documentation does not affect the marketing site or application functionality.
  • This script is intended for projects that do not require public-facing documentation.
  • Always create a backup or commit your changes before running cleanup scripts.