From 6edc91aca89f17fff8c4fa8c69909f7960e41c82 Mon Sep 17 00:00:00 2001 From: Dominik Prokop Date: Wed, 23 Oct 2019 14:09:25 +0200 Subject: [PATCH] Add info about static files (#19965) --- packages/grafana-toolkit/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/grafana-toolkit/README.md b/packages/grafana-toolkit/README.md index 48676123781..36b9789b7f3 100644 --- a/packages/grafana-toolkit/README.md +++ b/packages/grafana-toolkit/README.md @@ -213,6 +213,9 @@ module.exports = { }; ``` +### How do I add 3rd party dependencies that are not npm packages? +You can add such dependencies by putting them in `static` directory in the root of your project. The `static` directory will be copied when building the plugin. + ## Contribute to grafana-toolkit You can contribute to grafana-toolkit in the by helping develop it or by debugging it. @@ -226,7 +229,7 @@ Typically plugins should be developed using the `@grafana/toolkit` installed fro ### Debug grafana-toolkit -To debug grafana-toolkit you can use standard [NodeJS debugging methods](https://nodejs.org/de/docs/guides/debugging-getting-started/#enable-inspector) (`node --inspect`, `node --inspect-brk`). +To debug grafana-toolkit you can use standard [NodeJS debugging methods](https://nodejs.org/de/docs/guides/debugging-getting-started/#enable-inspector) (`node --inspect`, `node --inspect-brk`). To run grafana-toolkit in a debugging session use the following command in the toolkit's directory: