| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains the core plugins for Perses
As prerequisites, you need:
You should first run npm install at the root of the repository.
Then in perses repository:
Update the Perses configuration config.yaml to use development server for this plugin:
plugin:
enable_dev: trueStart the backend: ./scripts/api_backend_dev.sh
Login percli to the backend percli login http://localhost:8080
Start the plugin development server: percli plugin start /path/to/the/plugin/dir
Run npm run lint for the regular Oxlint checks, including the React Doctor rules configured in .oxlintrc.json. Run npm run doctor for the full React Doctor project scan. Pull requests and pushes to main also run the scan in GitHub Actions.
This will allow you to use the updates from perses core in your plugin so you can test the changes.
Copy the name of your snapshot, for example v0.0.0-snapshot-panel-actions-520389b.
In perses/plugin, navigate to the plugin you are changing and install the snapshot npm packages, this should be installed as "dependencies" NOT "peerDependencies" for example:
# perses/plugins/timeserieschart/package.json
"dependencies": {
"color-hash": "^2.0.2"
+ "@perses-dev/components": "v0.0.0-snapshot-panel-actions-520389b",
+ "@perses-dev/plugin-system": "v0.0.0-snapshot-panel-actions-520389b"
},
"peerDependencies": {
"@emotion/react": "^11.7.1",
"@emotion/styled": "^11.6.0",
"@hookform/resolvers": "^3.2.0",
- "@perses-dev/components": "^0.51.0-rc.1",
- "@perses-dev/plugin-system": "^0.51.0-rc.1",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
"echarts": "5.5.0",
"lodash": "^4.17.21",
"react": "^17.0.2 || ^18.0.0",
"react-dom": "^17.0.2 || ^18.0.0",
"use-resize-observer": "^9.0.0",
"immer": "^10.1.1"
}
| Back | FazBrowse Home | New Git URL |