create-p5jsboiler

0.2.14 • Public • Published

create-p5jsBoiler

Initialise an instance of a stand alone p5js project mirroring:

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 your src folder into index.html on load.

  • setup and draw functions both found in ./src/scripts/index.js.

  • Set buildMainFile to true in the package.json to create a main.js file housing all code in the project at the time of npm run build.

Package Sidebar

Install

npm i create-p5jsboiler

Weekly Downloads

0

Version

0.2.14

License

none

Unpacked Size

2.41 kB

Total Files

3

Last publish

Collaborators

  • zwkitcher