new-p5-app
v1.0.3
Published
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.
Downloads
2
Readme
p5.js Project Creator
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.
Quickstart:
```bash
npx new-p5-app
```
Table of Contents
Features
- 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.
Future Features
- [ ] npx invocation + documentation
- [ ] PWA Support
- [ ] Deploy Template (Dockerfile, Nginx ?)
Requirements
- Node.js (version 18 or higher)
- npm (Node Package Manager)
Installation
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
Usage
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.
Customization
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.
Contributing
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.