Grafana Sdk Mocks
Description
Mocks package for the Grafana SDK to be used when developing TypeScript plugins for Grafana. Includes typings so that the plugin can be built and mocks for the Grafana SDK so that Karma tests will work.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
NOTE, this is no longer the recommended way to develop Grafana Plugins:
We recommend copying one of the following projects and using its config files:
- https://github.com/grafana/simple-angular-panel
- https://github.com/grafana/simple-react-panel (ALPHA -- the interfaces are still a work in progress)
- https://github.com/grafana/simple-json-datasource
Grafana SDK Mocks for Plugins
This package facilitates writing Grafana plugins in TypeScript.
- provides Typescript typings for the most common Grafana classes.
- provides some simple fakes and util files to test plugins with Karma
Setup
With npm, Grunt, karma and mocha.js
This shows how to setup a project with Grunt as the build system, using npm to install the packages (yarn is very similar), karma for unit testing and mocha with expect.js for unit testing.
npm install --save systemjs lodash moment(lodash and moment are optional)npm install --save-dev grunt grunt-contrib-clean grunt-contrib-copy grunt-contrib-watch grunt-typescript karma karma-expect karma-mocha karma-chrome-launcher karma-sinon karma-systemjs karma-phantomjs-launcher plugin-typescript q sinon- Install this package:
npm install --save-dev grafana/grafana-sdk-mocks - Here is an example Gruntfile for building TypeScript. It expects the TypeScript files to be located in a
srcsubdirectory.
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-typescript');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
clean: ['dist'],
copy: {
dist_js: {
expand: true,
cwd: 'src',
src: ['**/*.ts', '**/*.d.ts'],
dest: 'dist'
},
dist_html: {
expand: true,
flatten: true,
cwd: 'src/partials',
src: ['*.html'],
dest: 'dist/partials/'
},
dist_statics: {
expand: true,
flatten: true,
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11