Welcome to the p5.js Project Creator! This command-line tool helps you quickly set up a new p5.js project with a predefined template and necessary configurations.
```bash
npx new-p5-app
```
- Quickly create a new p5.js project with a template.
- Automatically installs the necessary TypeScript definitions for p5.js.
- Generates a
jsconfig.json
file for better IDE support.
- [ ] npx invocation + documentation
- [ ] PWA Support
- [ ] Deploy Template (Dockerfile, Nginx ?)
- Node.js (version 18 or higher)
- npm (Node Package Manager)
-
Clone this repository to your local machine:
git clone https://github.com/TimJ0212/create-p5-app.git
-
Navigate to the project directory:
cd create-p5-app
-
Install the necessary dependencies:
npm install
To create a new p5.js project, run the following command in your terminal:
node index.js
You will be prompted to enter a project name. After you provide a name, the tool will:
- Copy the template files to a new directory with the specified project name.
- Install the necessary TypeScript definitions for p5.js.
- Generate a
jsconfig.json
file for IDE support.
Once the process is complete, you will see a success message in the terminal.
You can customize the template files located in the template
directory to fit your project's needs. Modify the HTML, JavaScript, and CSS files as necessary.
Contributions are welcome! If you have suggestions for improvements or new features, please open an issue or submit a pull request.
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes.
- Push to the branch.
- Open a pull request.