mirror of
https://github.com/seigler/generative
synced 2025-07-26 06:46:10 +00:00
No description
Bumps [mout](https://github.com/mout/mout) from 1.1.0 to 1.2.3. - [Release notes](https://github.com/mout/mout/releases) - [Changelog](https://github.com/mout/mout/blob/master/CHANGELOG.md) - [Commits](https://github.com/mout/mout/compare/v1.1.0...v1.2.3) --- updated-dependencies: - dependency-name: mout dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
app | ||
.gitignore | ||
brunch-config.js | ||
package-lock.json | ||
package.json | ||
README.md |
p5-brunch
Start
Start a new p5 project in seconds. Here's how:
- If you don't have brunch, get it with
npm i -g brunch
. - Run
brunch new -s mattpilla/p5-brunch
.
Develop
npm start
will start your app at http://localhost:3333, complete with hot reload.
Build for Production
npm run build
will build your app to the public/
directory, with babel, uglify, and cache-prevention.
Boring Stuff
- All source code goes in the
app/
directory. - Start your sketch in
app/sketch.js
. - p5 is in instance mode here, not global. Interface with p5 through the
sketch
object. - Your JS is ES2015 ready. Write all the
require
s you want. - Everything in the
app/assets/
directory will be copied topublic/
for builds. - All CSS in
app/
will be concatenated and minified for builds. - All JS in
app/
will be concatenated and minified for builds. - By default,
p5.min.js
andp5.sound.min.js
are included. They are copied fromnode_modules/
as is (intentionally). - Want to add another p5 plugin? In
brunch-config.js
, include its path inexports.plugins.copycat.modules
. Then, include the relevant script tag inapp/assets/index.html
. - Don't forget to edit
package.json
!