@platformatic/watt-admin 0.6.0-alpha.1 → 0.6.0-alpha.2
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.
- package/README.md +1 -1
- package/cli.js +2 -2
- package/package.json +18 -17
- package/web/frontend/dist/index.html +9 -9
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ After installing the project dependencies, you can run the tool directly:
|
|
|
14
14
|
|
|
15
15
|
To run the CLI on a custom port, you can just pass it as an argument with `./cli.js --port 4321`.
|
|
16
16
|
|
|
17
|
-
To record a flamegraph session, and choose to profile either the `cpu` or the `heap`, you can run the CLI with `./cli.js --record --
|
|
17
|
+
To record a flamegraph session, and choose to profile either the `cpu` or the `heap`, you can run the CLI with `./cli.js --record --profile heap`. Once you will stop the process, an HTML one-file bundle will be auto-generated, and you will be able to navigate (even offline) the `watt-admin` app, looking at the flamegraph and at the metrics stored for the whole time you have run the CLI.
|
|
18
18
|
|
|
19
19
|
The tool is also available as a binary when installed globally or linked:
|
|
20
20
|
|
package/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
'use strict'
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import esmain from 'es-main'
|
|
6
6
|
import { RuntimeApiClient } from '@platformatic/control'
|
|
7
7
|
import { select } from '@inquirer/prompts'
|
|
8
8
|
import { start } from './lib/start.js'
|
|
@@ -137,7 +137,7 @@ export default async function main () {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
// Execute the main function if this script is run directly
|
|
140
|
-
if (import.meta
|
|
140
|
+
if (esmain(import.meta)) {
|
|
141
141
|
main().then((selectedRuntime) => {
|
|
142
142
|
if (!selectedRuntime) {
|
|
143
143
|
return
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@platformatic/watt-admin",
|
|
4
|
-
"version": "0.6.0-alpha.
|
|
4
|
+
"version": "0.6.0-alpha.2",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "npm run clean && npm run build",
|
|
7
7
|
"dev": "wattpm dev",
|
|
@@ -28,46 +28,47 @@
|
|
|
28
28
|
"@platformatic/gateway": "^3.11.0",
|
|
29
29
|
"@platformatic/runtime": "^3.11.0",
|
|
30
30
|
"@platformatic/service": "^3.11.0",
|
|
31
|
+
"@platformatic/ui-components": "^0.19.1",
|
|
31
32
|
"@platformatic/vite": "^3.11.0",
|
|
33
|
+
"@platformatic/wattpm-pprof-capture": "^3.13.0",
|
|
32
34
|
"@scalar/api-reference-react": "^0.7.55",
|
|
35
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
36
|
+
"autoprefixer": "^10.4.21",
|
|
33
37
|
"close-with-grace": "^2.3.0",
|
|
38
|
+
"d3": "^7.9.0",
|
|
39
|
+
"dayjs": "^1.11.18",
|
|
40
|
+
"es-main": "^1.4.0",
|
|
34
41
|
"fastify": "^5.6.1",
|
|
35
42
|
"pprof-format": "^2.2.1",
|
|
43
|
+
"react": "^19.2.0",
|
|
44
|
+
"react-dom": "^19.2.0",
|
|
36
45
|
"react-pprof": "^1.1.0",
|
|
46
|
+
"react-router-dom": "^7.9.3",
|
|
37
47
|
"react-use-websocket": "^4.13.0",
|
|
38
48
|
"split2": "^4.2.0",
|
|
49
|
+
"tailwindcss": "^3.4.18",
|
|
39
50
|
"undici": "^7.16.0",
|
|
40
|
-
"
|
|
51
|
+
"use-error-boundary": "^2.0.6",
|
|
52
|
+
"vite": "^7.1.9",
|
|
53
|
+
"vite-plugin-singlefile": "^2.3.0",
|
|
54
|
+
"wattpm": "^3.11.0",
|
|
55
|
+
"zustand": "^5.0.8"
|
|
41
56
|
},
|
|
42
57
|
"devDependencies": {
|
|
43
58
|
"@fastify/type-provider-json-schema-to-ts": "^5.0.0",
|
|
44
|
-
"@platformatic/ui-components": "^0.19.1",
|
|
45
|
-
"@platformatic/wattpm-pprof-capture": "^3.13.0",
|
|
46
59
|
"@playwright/test": "^1.56.0",
|
|
47
60
|
"@types/d3": "^7.4.3",
|
|
48
61
|
"@types/node": "^22",
|
|
49
62
|
"@types/react-dom": "^19.2.1",
|
|
50
63
|
"@types/split2": "^4.2.3",
|
|
51
64
|
"@types/ws": "^8.18.1",
|
|
52
|
-
"@vitejs/plugin-react": "^5.0.4",
|
|
53
|
-
"autoprefixer": "^10.4.21",
|
|
54
|
-
"d3": "^7.9.0",
|
|
55
|
-
"dayjs": "^1.11.18",
|
|
56
65
|
"eslint": "^9.37.0",
|
|
57
66
|
"fastify-tsconfig": "^3.0.0",
|
|
58
67
|
"massimo-cli": "^1.0.1",
|
|
59
68
|
"neostandard": "^0.12.2",
|
|
60
69
|
"playwright": "^1.56.0",
|
|
61
|
-
"react": "^19.2.0",
|
|
62
|
-
"react-dom": "^19.2.0",
|
|
63
|
-
"react-router-dom": "^7.9.3",
|
|
64
|
-
"tailwindcss": "^3.4.18",
|
|
65
70
|
"typescript": "^5.9.3",
|
|
66
|
-
"
|
|
67
|
-
"vite": "^7.1.9",
|
|
68
|
-
"vite-plugin-singlefile": "^2.3.0",
|
|
69
|
-
"vitest": "^3.2.4",
|
|
70
|
-
"zustand": "^5.0.8"
|
|
71
|
+
"vitest": "^3.2.4"
|
|
71
72
|
},
|
|
72
73
|
"bin": {
|
|
73
74
|
"watt-admin": "./cli.js"
|