@msdkx/cli v0.1.1
msdkx CLI
msdkx CLI is a versatile command-line tool developed by alphadevking to streamline the creation of applications and packages within the msdkx monorepo. Leveraging Turborepo and pnpm, the CLI ensures consistent project setups, enhancing productivity for large teams.
Features
- Framework Support: Scaffold Next.js (App & Pages Router) and Vite applications.
- Styling Options: Choose between TailwindCSS or traditional CSS.
- Package Manager Flexibility: Select from pnpm, npm, or Yarn.
- Custom Templates: Utilize internal templates for standardized project structures.
- Git Integration: Optionally initialize a Git repository with the initial commit.
Installation
Install the msdkx CLI globally using your preferred package manager.
Using pnpm
pnpm add -g @msdkx/cliUsing npm
npm install -g @msdkx/cliUsing Yarn
yarn global add @msdkx/cliUsage
Create a New Application
Use the create command followed by your desired application name.
msdkx create <app-name>Example:
msdkx create my-new-appInteractive Prompts:
Choose a Framework:
- Next.js (App Router)
- Next.js (Pages Router)
- Vite
Add TailwindCSS?
- Yes / No
Choose a Package Manager:
- pnpm
- npm
- yarn
Initialize a Git Repository?
- Yes / No
What Happens Next:
- Template Selection: Based on your choices, the CLI selects the appropriate template.
- Project Scaffolding: Copies the selected template to a new directory named after your project.
- Template Processing: Renders any EJS templates, injecting dynamic values like the project name.
- Dependency Installation: Installs dependencies using your chosen package manager.
- Git Initialization (Optional): Initializes a Git repository and makes the initial commit.
Start the Development Server
Navigate to your project directory and start the development server.
cd <app-name>
pnpm dev
# or
npm run dev
# or
yarn devContributing
Contributions are welcome! To contribute to the msdkx CLI, follow these steps:
Fork the Repository
git clone https://github.com/alphadevking/msdkx.git cd msdkxNavigate to the CLI Package
cd packages/cliInstall Dependencies
pnpm installMake Your Changes
Build the CLI
pnpm buildLink the CLI Locally (for testing)
pnpm link --globalCommit and Push Your Changes
Open a Pull Request
Please ensure your code follows the project's coding standards and includes relevant tests.
License
This project is licensed under the MIT License.
Contact
For questions or support, please open an issue on the GitHub repository.