CLI tool to automate the setup of React projects from Frontend Mentor challenges.
This tool creates a new React project using Vite and copies the relevant challenge files into the new project structure, removing the need for manual setup when starting a new Frontend Mentor project.
When provided with the directory of a Frontend Mentor challenge, the CLI will:
-
Create a new React project using Vite
-
Move the
assetsfolder intosrc/assets, replacing the existing one -
Copy the following folder:
design
-
Copy the following files:
preview.jpgREADME.mdREADME-template.mdstyle-guide.md
-
Merge the challenge
.gitignorewith the generated project's.gitignore -
Extract all textual content from
index.htmland generate a.txtfile -
Automatically install project dependencies
- Node.js version 18 or higher
npm install -g fm-starter-cliRun the command and provide the path to your Frontend Mentor challenge folder:
fm-starter-cli C:\path\to\frontend-mentor-challengeA new folder will be created in your current working directory using the challenge folder name as the base:
challenge-name-react/This project is licensed under the MIT License. See the LICENSE file for details.