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.
- 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.
Install the msdkx CLI globally using your preferred package manager.
pnpm add -g @msdkx/cli
npm install -g @msdkx/cli
yarn global add @msdkx/cli
Use the create
command followed by your desired application name.
msdkx create <app-name>
Example:
msdkx create my-new-app
Interactive 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.
Navigate to your project directory and start the development server.
cd <app-name>
pnpm dev
# or
npm run dev
# or
yarn dev
Contributions are welcome! To contribute to the msdkx CLI, follow these steps:
-
Fork the Repository
git clone https://github.com/alphadevking/msdkx.git cd msdkx
-
Navigate to the CLI Package
cd packages/cli
-
Install Dependencies
pnpm install
-
Make Your Changes
-
Build the CLI
pnpm build
-
Link the CLI Locally (for testing)
pnpm link --global
-
Commit and Push Your Changes
-
Open a Pull Request
Please ensure your code follows the project's coding standards and includes relevant tests.
This project is licensed under the MIT License.
For questions or support, please open an issue on the GitHub repository.