create-p5jsboiler v0.2.14
create-p5jsBoiler
Initialise an instance of a stand alone p5js project mirroring:
Boilerplate to clone for an easy setup to start a P5js project.
To create a clone, run
npx create-p5jsboiler+app-name.
npx create-p5jsboiler app-name
cd app-nameIt will create a directory called app-name inside the current folder.
Inside that directory, it will generate the initial project structure.
app-name
├── README.md
├── _require.js
├── fileScraper.js
├── index.html
├── package.json
├── src
├── images
└── p5jsBoiler.ico
└── css
└── style.css
└── src
├── classes
└── demo.js
└── scripts
├── index.js
└── initialise.jsRun
npm run buildafter creating new script files to create/remake the_requre.jsfile that will import the files from yoursrcfolder into index.html on load.setupanddrawfunctions both found in./src/scripts/index.js.Set
buildMainFileto true in thepackage.jsonto create amain.jsfile housing all code in the project at the time ofnpm run build.
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago