Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing step to custom build documentation, clarified additional details. #3434

Merged
merged 1 commit into from
Jan 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
coreygo marked this conversation as resolved.
Show resolved Hide resolved

## 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.