0.2.3 • Published 4 years ago
sampleprodtest v0.2.3
zfj-common-components
Repo for all the common components that we would develop pertaining to Jira in general so that the same can be used across multiple products
Steps to create a common UI app for Atlassian Cloud and Atlassian Server addon
- Create a branch from
master
with the name of your app. - Checkout the created branch.
- Update
package.json
package name to the name of your app. For e.g.ZephyrFeedback
- Update the
main
property inpackage.json
tobuild/[Appname].js
- Update the
name
property inconfig/library.js
to the name of your app. - Edit
Feedback.js
or add react components to match the app requirements. - Update
index.js
export to app's exported component. - Run
npm run build
to generate the bundle. Output:[Appname].js, polyfill.js, [Appname.css]
- Tag the commit with a name to use it as a release.
[https://github.com/SmartBear/zfj-common-components/releases]
Usage in Atlassian Cloud addon
- Update the addon's
package.json
with the release of the app created. For e.g."ZephyrFeedback": "git+ssh://git@github.com/SmartBear/zfj-common-components.git#0.1.0"
- Import the component in the application. For e.g.
import { Feedback } from 'ZephyrFeedback';
- Render the component. For e.g.
<Feedback />
- Add
[Appname].css
in the addon project.
Usage in Atlassian Server addon
- Add the
[Appname].js, polyfill.js and [Appname].css
created in the above step to a directory and use the directory location in aweb-resource
. - Add the
web-resource
to the template or to the controller that renders the UI. - In the application js, use
[Appname].render()
method to render the component.
0.2.3
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.4
4 years ago
0.1.5
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.6
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago