create-p5jsboiler
v0.2.14
Published
Initialise an instance of a stand alone p5js project mirroring: - https://github.com/ZKitcher/p5js-Boilerplate
Downloads
2
Maintainers
Readme
create-p5jsBoiler
Initialise an instance of a stand alone p5js project mirroring:
https://github.com/ZKitcher/p5js-Boilerplate
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-name
It 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.js
Run
npm run build
after creating new script files to create/remake the_requre.js
file that will import the files from yoursrc
folder into index.html on load.setup
anddraw
functions both found in./src/scripts/index.js
.Set
buildMainFile
to true in thepackage.json
to create amain.js
file housing all code in the project at the time ofnpm run build
.