BetterWebhooks is built in part using the Splunk UI toolkit. The instructions below for building come from that portion of the app.
For app docs, go here.
- Clone the repo.
- Install yarn (>= 1.2) if you haven't already:
npm install --global yarn
. - Run the setup task:
yarn run setup
.
After this step, the following tasks will be available:
start
– Run thestart
task for each projectbuild
– Create a production bundle for all projectstest
– Run unit tests for each projectlint
– Run JS and CSS linters for each projectformat
– Run prettier to auto-format*.js
,*.jsx
and*.css
files. This command will overwrite files without asking,format:verify
won't.
Running yarn run setup
once is required to enable all other tasks. The command might take a few minutes to finish.
Commands run from the root directory will be applied to all packages. This is handy when working on multiple packages
simultaneously. Commands can also be run from individual packages. This may be better for performance and reporting when
only working on a single package. All of the packages have similar developer scripts, but not all scripts are implemented
for every package. See the package.json
of the package in question to see which scripts are available there.
For more granular control of development scripts, consider using Lerna directly.
BetterWebhooks uses prettier to ensure consistent code formatting. It is recommended to add a prettier plugin to your editor/ide.