A command-line tool for internal usage that copies specific folders from the template (boilerplate) folders into a chosen folder. This is designed to work similarly to ShadCN - the copies are independent from the template, and can be modified and customized at will.
This tool aims at helping streamline project setup by providing common functionality in the form of components for NestJS, React, and React Native apps.
AUTOGENERATED HEREON - CHECK!
# Clone the repository
git clone <your-repo-url>
cd space-cli
# Install dependencies
npm install
# Build the project
npm run build
# Link the package globally
npm link
# Create a new project using interactive prompts
space-cli create
# Create a new project with specific options
space-cli create --template react --destination ./my-react-app
# Show help
space-cli --help
nest
- NestJS templatereact
- React templatereact-native
- React Native template
By default, the CLI will use a predefined GitHub repository for templates. You can specify a different repository using the --repository
option:
space-cli create --repository https://github.com/your-org/your-templates-repo
Your template repository should have the following structure:
repository/
├── nest/
│ └── ... (NestJS template files)
├── react/
│ └── ... (React template files)
└── react-native/
└── ... (React Native template files)
# Run in development mode
npm run dev
# Build the project
npm run build
ISC