Skip to content

Commit

Permalink
chore: serve local dist (#5021)
Browse files Browse the repository at this point in the history
# What this PR does
provide command to serve local dist folder without running local Grafana


## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
  • Loading branch information
brojd authored Sep 13, 2024
1 parent ed6ab02 commit 4ba65b0
Show file tree
Hide file tree
Showing 3 changed files with 277 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tilt/plugin/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if not is_ci:
dir=grafana_plugin_dir,
cmd="pnpm install",
serve_dir=grafana_plugin_dir,
serve_cmd="pnpm watch",
serve_cmd="pnpm dev",
allow_parallel=True,
)

Expand Down
5 changes: 4 additions & 1 deletion grafana-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"test:e2e:gen": "pnpm playwright codegen http://localhost:3000",
"e2e-show-report": "pnpm playwright show-report --port 31000",
"generate-types": "cd ./src/network/oncall-api/types-generator && pnpm generate",
"watch": "NODE_ENV=development webpack -w -c ./webpack.config.ts --env development",
"dev": "NODE_ENV=development webpack -w -c ./webpack.config.ts --env development",
"serve": "serve -p 3001 ./dist",
"dev:serve": "concurrently --names \"serve,dev\" --prefix-colors \"blue,green\" \"pnpm serve\" \"pnpm dev\"",
"sign": "npx --yes @grafana/sign-plugin@latest",
"start": "pnpm watch",
"setversion": "setversion",
Expand Down Expand Up @@ -114,6 +116,7 @@
"sass": "1.63.2",
"sass-loader": "13.3.1",
"semver": "^7.6.0",
"serve": "^14.2.3",
"style-loader": "3.3.3",
"stylelint-config-prettier": "^9.0.3",
"stylelint-prettier": "^2.0.0",
Expand Down
Loading

0 comments on commit 4ba65b0

Please sign in to comment.