@grafana/create-plugin 0.8.1 → 0.8.2-canary.167.f98dad9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,9 +191,13 @@ function printSuccessMessage(answers) {
191
191
  var commands = __spreadArray(__spreadArray([
192
192
  "- `cd ./".concat(directory, "`"),
193
193
  '- `yarn install` to install frontend dependencies.',
194
- '- `docker-compose up` to start a grafana development server.',
195
194
  '- `yarn dev` to build (and watch) the plugin frontend code.'
196
- ], (answers.hasBackend ? ['- `mage -v build:linux` to build the plugin backend code.'] : []), true), [
195
+ ], (answers.hasBackend
196
+ ? [
197
+ '- `mage -v build:linux` to build the plugin backend code. Rerun this command every time you edit your backend files.',
198
+ ]
199
+ : []), true), [
200
+ '- `docker-compose up` to start a grafana development server. Restart this command after each time you run mage to run your new backend code.',
197
201
  '- Open http://localhost:3000 in your browser to create a dashboard to begin developing your plugin.',
198
202
  ], false);
199
203
  var msg = "\nCongratulations on scaffolding a Grafana ".concat(answers.pluginType, " plugin! \uD83D\uDE80\n\n## What's next?\n\nRun the following commands to get started:\n").concat(commands.map(function (command) { return command; }).join('\n'), "\n\n_Note: We strongly recommend creating a new Git repository by running `git init` in ./").concat(directory, " before continuing._\n\n- View ./").concat(directory, "/README.md\n- Learn more about Grafana Plugins at https://grafana.com/docs/grafana/latest/plugins/developing/development/\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "0.8.1",
3
+ "version": "0.8.2-canary.167.f98dad9.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "directory": "packages/create-plugin",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=16"
62
62
  },
63
- "gitHead": "7e37e9a641ecc2845c6fad2e51bd5892f2196b26"
63
+ "gitHead": "f98dad9d9991915c7830d22203e038c681766d4b"
64
64
  }
@@ -252,9 +252,13 @@ function printSuccessMessage(answers: CliArgs) {
252
252
  const commands = [
253
253
  `- \`cd ./${directory}\``,
254
254
  '- `yarn install` to install frontend dependencies.',
255
- '- `docker-compose up` to start a grafana development server.',
256
255
  '- `yarn dev` to build (and watch) the plugin frontend code.',
257
- ...(answers.hasBackend ? ['- `mage -v build:linux` to build the plugin backend code.'] : []),
256
+ ...(answers.hasBackend
257
+ ? [
258
+ '- `mage -v build:linux` to build the plugin backend code. Rerun this command every time you edit your backend files.',
259
+ ]
260
+ : []),
261
+ '- `docker-compose up` to start a grafana development server. Restart this command after each time you run mage to run your new backend code.',
258
262
  '- Open http://localhost:3000 in your browser to create a dashboard to begin developing your plugin.',
259
263
  ];
260
264
 
@@ -8,8 +8,8 @@ App plugins can let you create a custom out-of-the-box monitoring experience by
8
8
 
9
9
  ## Getting started
10
10
 
11
- -- INSERT FRONTEND GETTING STARTED --
12
11
  {{#if hasBackend}}-- INSERT BACKEND GETTING STARTED --{{/if}}
12
+ -- INSERT FRONTEND GETTING STARTED --
13
13
 
14
14
  -- INSERT DISTRIBUTING YOUR PLUGIN --
15
15
 
@@ -8,8 +8,8 @@ Grafana supports a wide range of data sources, including Prometheus, MySQL, and
8
8
 
9
9
  ## Getting started
10
10
 
11
- -- INSERT FRONTEND GETTING STARTED --
12
11
  {{#if hasBackend}}-- INSERT BACKEND GETTING STARTED --{{/if}}
12
+ -- INSERT FRONTEND GETTING STARTED --
13
13
 
14
14
  -- INSERT DISTRIBUTING YOUR PLUGIN --
15
15
 
@@ -11,7 +11,6 @@ Use panel plugins when you want to do things like visualize data returned by dat
11
11
  ## Getting started
12
12
 
13
13
  -- INSERT FRONTEND GETTING STARTED --
14
- {{#if hasBackend}}-- INSERT BACKEND GETTING STARTED --{{/if}}
15
14
 
16
15
  -- INSERT DISTRIBUTING YOUR PLUGIN --
17
16