Skip to content

Instantly share code, notes, and snippets.

@svet-b
Created June 13, 2018 14:07
Show Gist options
  • Save svet-b/a35078d36eaaa18ce4e748ef70e7dd6b to your computer and use it in GitHub Desktop.
Save svet-b/a35078d36eaaa18ce4e748ef70e7dd6b to your computer and use it in GitHub Desktop.
Compile Grafana plugin (e.g. status panel) on MacOS
#!/bin/bash
# Update npm to latest
npm i npm@latest -g
# Make sure Sass is installed (requires Ruby)
gem install sass
$SRCDIR="/opt/codebase/Grafana_Status_panel"
# Install npm in local directory
cd $SRCDIR
npm install
# Run grunt (assuming Gruntfile.js and package.json are present)
grunt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment