ZAF Toolbox, a project developed with 🩷 by Zendesk Labs. This toolbox is designed to accelerate the development of applications within the Zendesk Apps Framework (ZAF).
At Zendesk Labs, we focus on innovation and experimentation rather than production-level outputs. Our mission is to > create functional tools and solutions that enhance the ZAF application development experience. While this project is a work > in progress and may not be fully polished or bulletproof, we are committed to improving its stability every day. We welcome contributions from everyone! If you’re interested in helping us enhance this toolbox, your input and collaboration are greatly appreciated.
- Node 18 or higher
- Add the package into a ZAF application
To build the authorizationToken
, you can use the following command:
echo -n "<your-api-key-id>:<your-api-secret-key>" | base64
A tool has been developed to help you generate this token, follow this link
This package is deployed using GitHub Packages, to install it you will need to follow this guide.
Here is a TL;DR; version of the installation guide:
- Create a personal GitHub access token (classic) with the
read:packages
permission - Using GitHub interface, allow the token to be used on Zendesk organizations (Configure SSO button)
- On your terminal, execute:
The username to use is your GitHub username, the password is the token created at step 1
npm login --registry=https://npm.pkg.github.com
- If you need to install any
@zendesk
npm packages (i.e.@zendesk/zcli
), do it now - Create a
.npmrc
file at the root of your repository and copy the following on it:@zendesk:registry=https://npm.pkg.github.com
- Execute the following command:
The
npm i @zendesk/zaf-toolbox --legacy-peer-deps
--legacy-peer-deps
is needed because of the@zendesk/sell-zaf-app-toolbox
dependency of this package.
For more information on package installing through GitHub packages, see "Installing a package".
Use the package locally, first build the package by executing:
npm run build
On the package.json
of your project, add the following:
{
"dependencies": {
"@zendesk/zaf-toolbox": "file:<path-to-repository>"
}
}
Enjoy!
Copyright 2024 Zendesk, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.