fm-starter-cli
v2.0.0
Published
CLI tool to automate the setup of React projects from Frontend Mentor challenges.
Maintainers
Readme
fm-starter-cli
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.
Features
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 oneCopy the following folder:
design
Copy the following files:
preview.jpgREADME.mdREADME-template.mdstyle-guide.md
Merge the challenge
.gitignorewith the generated project's.gitignoreExtract all textual content from
index.htmland generate a.txtfileAutomatically install project dependencies
Requirements
- Node.js version 18 or higher
Installation (Global)
npm install -g fm-starter-cliUsage
Run 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/License
This project is licensed under the MIT License. See the LICENSE file for details.
