npm install # Install dependencies
npm run dev # Start development server with hot reload
npm run server # Start Grafana in Dockernpm run build # Production build
npm run clean # Remove build artifactsnpm run lint # Check code quality
npm run lint:fix # Auto-fix linting issues
npm run format # Format code with Prettier
npm run typecheck # TypeScript type checkingnpm test # Interactive tests (watch mode)
npm run test:ci # Run all tests (CI mode)
npm run e2e # End-to-end testsnpm run package # Create distribution ZIP
npm run sign # Sign plugin (requires GRAFANA_ACCESS_POLICY_TOKEN)cybertec-pev-panel/
├── src/ # Source code
│ ├── components/ # React components
│ ├── services/ # Business logic
│ ├── types/ # TypeScript types
│ ├── utils/ # Utilities
│ ├── module.ts # Entry point
│ └── plugin.json # Plugin metadata
├── scripts/ # Build scripts (Node.js)
│ ├── build.js # Production build
│ ├── clean.js # Clean artifacts
│ └── package.js # Create ZIP
├── .github/workflows/ # CI/CD pipelines
├── dist/ # Build output (gitignored)
└── tests/ # Test files
git clone <repo-url>
cd cybertec-pev-panel
npm install
npm run dev# Make changes to src/
npm run lint # Check quality
npm run typecheck # Check types
npm run build # Build
npm run package # Create ZIP# 1. Update version in src/plugin.json
# 2. Commit and tag
git commit -am "Release v1.2.0"
git tag v1.2.0
git push origin main --tags
# 3. GitHub Actions will automatically:
# - Run tests and linting
# - Build the plugin
# - Sign it (if configured)
# - Create GitHub Release
# - Upload artifacts- Get token from https://grafana.com/orgs
- Go to: Repository → Settings → Secrets → Actions
- Add secret:
- Name:
GRAFANA_ACCESS_POLICY_TOKEN - Value: Your token
- Name:
Push a version tag:
git tag v1.0.0
git push --tagsnpm run clean
npm install
npm run buildnpm run test:ci -- --verbose# Ensure dist/ exists
npm run build
# Then package
npm run package# Check Node.js version (must be 18+)
node --version
# Reinstall dependencies
rm -rf node_modules package-lock.json
npm install- ✅ Windows (10/11)
- ✅ macOS (12+)
- ✅ Linux (Ubuntu, Debian, Fedora, etc.)
- ❌ PowerShell
- ❌ Bash
- ❌ Platform-specific tools
- ✅ Node.js (built-in modules)
- ✅ npm scripts
- ✅ Cross-platform paths
- CONTRIBUTING.md - Developer guide
- src/README.md - User documentation
- scripts/README.md - Build scripts guide
- .github/workflows/README.md - CI/CD guide
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Docs: See README files above