1.0.0-beta.3 • Published 9 years ago
generator-p5js v1.0.0-beta.3
p5 Yeoman Generator
A yeoman generator for a p5 project, based off of pflannery's p5 generator
Getting Started
Install Yeoman (and bower and gulp)
- (If you haven't already installed it, install yeoman:
npm install -g yo gulp bower). - If you're having trouble with permissions, npm recommends the following:
npm config get prefix(Important: It should show/usr/localif not, follow option two here)sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
Usage
- Assuming you have a directory called $DIRECTORY_NAME:
npm install -g generator-p5jsmkdir $DIRECTORY_NAMEcd $DIRECTORY_NAMEyo p5jsgulp serve- Open $DIRECTORY_NAME up in your favourite text editor and live your life. Every time you save, your browser window will update the new sketch.
Notes
- Feel free to run
git initinside $DIRECTORY_NAME. We've already created a.gitignorefor you. - Also,
p5.dom.jsandp5.sound.jsare included but commented out inindex.html. You'll need to uncomment those. - Finally, assets will be stored in and served from the
assetsfolder. This is useful for sound files, images, and the like.
License
Licensed under the MIT License. See LICENSE in the project root for license information.
1.0.0-beta.3
9 years ago
1.0.0-beta.2
9 years ago