diff --git a/.gitignore b/.gitignore index f4f268b81..249326bd3 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,7 @@ yarn-error.log* # Generated files .docusaurus .cache-loader -docusaurus/docs/signing-your-plugin.md \ No newline at end of file +docusaurus/docs/signing-your-plugin.md + +# Allow vscode config inside templates +!packages/create-plugin/templates/*/.vscode \ No newline at end of file diff --git a/packages/create-plugin/templates/backend-app/.vscode/launch.json b/packages/create-plugin/templates/backend-app/.vscode/launch.json new file mode 100644 index 000000000..b4c5a8f7b --- /dev/null +++ b/packages/create-plugin/templates/backend-app/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Standalone debug mode", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/pkg", + "env": {}, + "args": [ + "-standalone" + ] + } + ] +} \ No newline at end of file diff --git a/packages/create-plugin/templates/backend-app/go.mod b/packages/create-plugin/templates/backend-app/go.mod index a7e6a62aa..4c003a3e2 100644 --- a/packages/create-plugin/templates/backend-app/go.mod +++ b/packages/create-plugin/templates/backend-app/go.mod @@ -2,7 +2,7 @@ module github.com/{{ kebabCase orgName }}/{{ kebabCase pluginName }} go 1.19 -require github.com/grafana/grafana-plugin-sdk-go v0.155.0 +require github.com/grafana/grafana-plugin-sdk-go v0.156.0 require ( github.com/BurntSushi/toml v1.2.1 // indirect diff --git a/packages/create-plugin/templates/backend-app/go.sum b/packages/create-plugin/templates/backend-app/go.sum index f1229ca72..f3afa66ad 100644 --- a/packages/create-plugin/templates/backend-app/go.sum +++ b/packages/create-plugin/templates/backend-app/go.sum @@ -112,8 +112,8 @@ github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e h1:JKmoR8x90Iww1 github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/grafana/grafana-plugin-sdk-go v0.155.0 h1:i6yQu3RegxxFph2poE2+DOG8EHT1R9LS5WDbTglIhSQ= -github.com/grafana/grafana-plugin-sdk-go v0.155.0/go.mod h1:Wj4WD+sfoUB/q5UG016IvUQBM7HBJaNEAc88b++4szs= +github.com/grafana/grafana-plugin-sdk-go v0.156.0 h1:LPR5gpROmdwkkvm5oGihl0mSKyWNHWIjAjzzTxk3k7M= +github.com/grafana/grafana-plugin-sdk-go v0.156.0/go.mod h1:Wj4WD+sfoUB/q5UG016IvUQBM7HBJaNEAc88b++4szs= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= diff --git a/packages/create-plugin/templates/backend/.vscode/launch.json b/packages/create-plugin/templates/backend/.vscode/launch.json new file mode 100644 index 000000000..b4c5a8f7b --- /dev/null +++ b/packages/create-plugin/templates/backend/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Standalone debug mode", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/pkg", + "env": {}, + "args": [ + "-standalone" + ] + } + ] +} \ No newline at end of file diff --git a/packages/create-plugin/templates/backend/go.mod b/packages/create-plugin/templates/backend/go.mod index bd3bb40ec..2a04000ee 100644 --- a/packages/create-plugin/templates/backend/go.mod +++ b/packages/create-plugin/templates/backend/go.mod @@ -2,7 +2,7 @@ module github.com/{{ kebabCase orgName }}/{{ kebabCase pluginName }} go 1.19 -require github.com/grafana/grafana-plugin-sdk-go v0.155.0 +require github.com/grafana/grafana-plugin-sdk-go v0.156.0 require ( github.com/BurntSushi/toml v1.2.1 // indirect diff --git a/packages/create-plugin/templates/backend/go.sum b/packages/create-plugin/templates/backend/go.sum index f1229ca72..f3afa66ad 100644 --- a/packages/create-plugin/templates/backend/go.sum +++ b/packages/create-plugin/templates/backend/go.sum @@ -112,8 +112,8 @@ github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e h1:JKmoR8x90Iww1 github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/grafana/grafana-plugin-sdk-go v0.155.0 h1:i6yQu3RegxxFph2poE2+DOG8EHT1R9LS5WDbTglIhSQ= -github.com/grafana/grafana-plugin-sdk-go v0.155.0/go.mod h1:Wj4WD+sfoUB/q5UG016IvUQBM7HBJaNEAc88b++4szs= +github.com/grafana/grafana-plugin-sdk-go v0.156.0 h1:LPR5gpROmdwkkvm5oGihl0mSKyWNHWIjAjzzTxk3k7M= +github.com/grafana/grafana-plugin-sdk-go v0.156.0/go.mod h1:Wj4WD+sfoUB/q5UG016IvUQBM7HBJaNEAc88b++4szs= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=