Skip to content

justino/p5ts-skeleton

Repository files navigation

P5.js Typescript Skeleton Project

Quickly get up and running with a p5.js typescript project.

Quick Start

Clone this project, and re-initialize it for your project.

git clone https://github.com/justino/p5ts-skeleton <project name>
cd <project name>
rm -rf .git
git init .
git add .
git commit -m 'Initial Setup'
npm install
npm start

Access

You can access the development server via https://localhost:1234/

Build

You can simply build your project with:

npm run build

Build artifacts are created in the dist subdirectory.

Tech

Makes use of the Parcel build system.

Pre-configured with Sass support.

Pre-configured with Normalize.css.

Optional Tech

Supports VSCode Devcontainers with a handful of pre-configured VSCode extensions. Modify ./devcontainer/devcontainer.json with your project name so that the container name makes sense.

Supports Editorconfig with some basic settings.

Notes

p5.js will run in instance mode only. No cluttering of the global space.

License

MIT License, see LICENSE for details.