Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sheepreaper/typescript-p5-quickstart
After faffing around trying to get a simple canvas to prototype stuff on but with typescript, I found a combination of minimal packages and a bundler to get up and coding quickly.
https://github.com/sheepreaper/typescript-p5-quickstart
canvas eslint p5js parcel prettier quickstart template typescript vscode yarn2
Last synced: 3 months ago
JSON representation
After faffing around trying to get a simple canvas to prototype stuff on but with typescript, I found a combination of minimal packages and a bundler to get up and coding quickly.
- Host: GitHub
- URL: https://github.com/sheepreaper/typescript-p5-quickstart
- Owner: SheepReaper
- License: gpl-3.0
- Created: 2021-05-27T06:26:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-23T03:46:56.000Z (8 months ago)
- Last Synced: 2024-05-23T04:55:44.438Z (8 months ago)
- Topics: canvas, eslint, p5js, parcel, prettier, quickstart, template, typescript, vscode, yarn2
- Language: HTML
- Homepage:
- Size: 514 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
# Typescript + p5.js quick-start template
This template is a variation of [this template](https://github.com/SheepReaper/typescript-quickstart) that includes a wrapped version of p5.js (p5i) and a canvas all ready to go.
This template allows you to just start coding in src/index.ts and live-edit an app without having to mess about with dependencies.
This template provides lots of help as well:
Features:
- Yarn 2 - awesome package manager, configured for zero-install
- Prettier - tidy up your code
- Eslint - find design-time errors
- Yarn sdks (IDE support) - allow eslint, prettier, typescript, and their respective vscode extensions to use yarn 2's virtual packages
- Parcel - this bundler can build an run your application with HMR support. It can also build a static version, ready to be served.Usage:
Put your code into src/index.ts
```shell
yarn dev
```Will start parcel's development server after building your app.
You can then (if using vscode) hit F5 to start a debugging session from vscode, launching chrome to browse your app.
Alternatively:
```shell
yarn build
```Will build and output your app to dist/ ready to be served.