@lightdash/cli 1.48.1 → 1.50.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.
- package/README.md +30 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/handlers/apps/createApp.d.ts +21 -0
- package/dist/handlers/apps/createApp.d.ts.map +1 -0
- package/dist/handlers/apps/createApp.js +261 -0
- package/dist/handlers/apps/createApp.test.d.ts +2 -0
- package/dist/handlers/apps/createApp.test.d.ts.map +1 -0
- package/dist/handlers/apps/createApp.test.js +264 -0
- package/dist/handlers/apps/scaffolding.d.ts +1 -0
- package/dist/handlers/apps/scaffolding.d.ts.map +1 -1
- package/dist/handlers/apps/scaffolding.js +6 -1
- package/dist/handlers/apps/scaffolding.test.js +22 -5
- package/dist/index.js +15 -0
- package/dist/vendor/authoring/AGENTS.md.tmpl +2 -2
- package/dist/vendor/authoring/README.md.tmpl +3 -3
- package/dist/vendor/authoring/developing-data-apps-locally/SKILL.md +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -42,6 +42,36 @@ the AI agent runtime version.
|
|
|
42
42
|
Access lists, Slack integrations, MCP servers, documents, conversations, and
|
|
43
43
|
other runtime state stay managed in the target environment.
|
|
44
44
|
|
|
45
|
+
## Data apps as code
|
|
46
|
+
|
|
47
|
+
Create a new data app locally from the same starter used by Lightdash's data
|
|
48
|
+
app builder:
|
|
49
|
+
|
|
50
|
+
```shell
|
|
51
|
+
lightdash create app "Revenue explorer"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
This requires npm. Before writing anything, the command first warns that it
|
|
55
|
+
will download packages and run shadcn locally, then asks whether to show and
|
|
56
|
+
approve the exact direct dependencies and shadcn components. It creates
|
|
57
|
+
`lightdash/apps/revenue-explorer/` with runnable source, the
|
|
58
|
+
Lightdash data app and local-development agent skills, and a point-in-time
|
|
59
|
+
snapshot of the selected project's semantic layer. Use `--project`, `--slug`,
|
|
60
|
+
`--description`, or `--path` to override the defaults; use `--assume-yes` to
|
|
61
|
+
approve installation in a non-interactive environment.
|
|
62
|
+
|
|
63
|
+
Build and upload it with:
|
|
64
|
+
|
|
65
|
+
```shell
|
|
66
|
+
cd lightdash/apps/revenue-explorer
|
|
67
|
+
npm run build
|
|
68
|
+
lightdash upload --apps revenue-explorer
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The local build is a pre-flight check; Lightdash rebuilds the source when it is
|
|
72
|
+
uploaded. Existing apps can still be checked out with
|
|
73
|
+
`lightdash download --apps <slug>`.
|
|
74
|
+
|
|
45
75
|
## Development
|
|
46
76
|
|
|
47
77
|
First build the package
|