Skip to content

Commit

Permalink
Merge pull request #3434 from coreygo/patch-1
Browse files Browse the repository at this point in the history
Added missing step to custom build documentation, clarified additional details.
  • Loading branch information
lmccart authored Jan 2, 2019
2 parents 2981ec4 + 2051ff1 commit 1de199f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions developer_docs/custom_p5_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ Currently, the usage is through invoking a Grunt task manually from the command
git clone https://github.com/processing/p5.js.git
cd p5.js
npm install
grunt combineModules:module_x:module_y
npm run grunt
npm run grunt combineModules:module_x:module_y
```

Here, `module_n` refers to the name of the module which you want to select. Multiple modules must be passed as shown above. Also, these modules must have the same name is their folders in `/src` directory to work correctly.
Here, `module_n` refers to the name of the module which you want to select. Multiple modules must be passed as shown above. Also, these modules must have the same name is their folders in `/src` directory to work correctly. While `core` is included by default, `core/shape` needs to be included for shapes like line() and other core features to work.

## Example

`grunt combineModules:color:util:events:io`
`npm run grunt combineModules:core/shape:color:math:image`

This will generate your bundle in the `lib/modules` directory.
This will generate your `p5Custom.js` bundle in the `lib/modules` directory.

0 comments on commit 1de199f

Please sign in to comment.