@lbdudc/linea-cli 0.0.0-stage → 0.1.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 +268 -2
- package/dist/analysis/wheels/micropip-0.6.0-py3-none-any.whl +0 -0
- package/dist/analysis/wheels/packaging-23.2-py3-none-any.whl +0 -0
- package/dist/chunk-0kg4evyp.js +58 -0
- package/dist/chunk-6y69424k.js +45138 -0
- package/dist/chunk-byt4gzdm.js +9071 -0
- package/dist/chunk-e0n1mfcb.js +12 -0
- package/dist/chunk-fnmh0b0b.js +35 -0
- package/dist/chunk-gmz1f6fc.js +27 -0
- package/dist/chunk-pb6gdhgt.js +3210 -0
- package/dist/chunk-r3nqk2zv.js +50157 -0
- package/dist/chunk-tg9jv9kp.js +11 -0
- package/dist/chunk-x95qa7s6.js +35 -0
- package/dist/chunk-ymrp07ym.js +2452 -0
- package/dist/core/analysisWorker.js +45 -0
- package/dist/index.js +40 -0
- package/dist/line/templates/core/extra.js +54 -0
- package/dist/line/templates/core/transformation.js +208 -0
- package/dist/line/templates/pipeline/.gitlab-ci.yml +51 -0
- package/dist/line/templates/pipeline/ci/test-client.sh +16 -0
- package/dist/line/templates/pipeline/ci/test-server.sh +16 -0
- package/dist/line/templates/pipeline/github-ci.yml +50 -0
- package/dist/line/templates/pipeline/spl-gitlab-ci.yml +182 -0
- package/package.json +52 -4
- package/src/index.tsx +58 -0
package/README.md
CHANGED
|
@@ -1,3 +1,269 @@
|
|
|
1
|
-
#
|
|
1
|
+
# linea-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The terminal side of LINEA. It does what the web interface does, and it also lets you **take SPLs, products, modules and metamodels
|
|
4
|
+
onto your machine**, work on them in your editor, and send the changes back.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
linea login # once: the server and your git host (GitLab or GitHub)
|
|
8
|
+
linea get gis-apps # the SPL and its products, as real git clones (again later: updates them)
|
|
9
|
+
cd ~/linea/gis-apps
|
|
10
|
+
linea open # VS Code, with the SPL and the modules it uses
|
|
11
|
+
linea check # do the modules fit? do the products' models?
|
|
12
|
+
linea push -m "Add reports" # checks, commits, pushes a branch and opens the merge/pull request
|
|
13
|
+
linea open --web # the same SPL in the web interface
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Every command works in two ways, with the same words: as `linea <command>` in a shell (scripts, CI), and as `<command>` (or
|
|
17
|
+
`/<command>`) in the interactive window that `linea` alone opens.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
Requires [Bun](https://bun.sh) and `git`.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
cd linea-core && bun link # one-time per machine: the CLI uses the library from this checkout
|
|
25
|
+
cd ../linea-cli && bun install && bun run build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
To type `linea` from anywhere, make it a command of your shell that runs the bundle with Bun (`bun link` alone does not do that):
|
|
29
|
+
|
|
30
|
+
```powershell
|
|
31
|
+
# PowerShell, once:
|
|
32
|
+
Add-Content $PROFILE 'function linea { bun --no-env-file C:\path\to\linea-cli\dist\index.js @args }'
|
|
33
|
+
```
|
|
34
|
+
```bash
|
|
35
|
+
# bash/zsh, once:
|
|
36
|
+
echo 'linea() { bun --no-env-file /path/to/linea-cli/dist/index.js "$@"; }' >> ~/.bashrc
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
(`dist/index.js` needs Bun, not Node.)
|
|
40
|
+
|
|
41
|
+
`bun run build` makes `dist/index.js`, which is what `linea` runs: it works from **any folder** (running `src/index.tsx` directly
|
|
42
|
+
needs this folder's `bunfig.toml`, so only do that to develop the CLI: `bun run dev`).
|
|
43
|
+
|
|
44
|
+
`linea doctor` says whether everything is in place: git, the workspace, an editor, the git host and, with `--online`, the server.
|
|
45
|
+
|
|
46
|
+
## Who does what
|
|
47
|
+
|
|
48
|
+
| You… | Typical session |
|
|
49
|
+
|---|---|
|
|
50
|
+
| **develop an SPL** | `get gis-apps` → `cd` → `open` → edit → `check` → `push` |
|
|
51
|
+
| **configure products** | `product new shop --features A,B` → `product show shop` → `open shop:datamodel` → `check shop` → `generate shop` |
|
|
52
|
+
| **write modules or metamodels** | `module new auth` → edit → `check auth` → `module publish auth --bump minor --to my-group`; to change one that exists: `get github:acme/auth` |
|
|
53
|
+
| **use LINEA from CI** | `linea --json check` (exit code 1 when something does not fit) |
|
|
54
|
+
| **start on your laptop** | `spl new gis --local` → `module list --remote` → `spl add github:acme/auth` → `push` (uploads it to LINEA when you are ready) |
|
|
55
|
+
|
|
56
|
+
## Where you are decides what is meant
|
|
57
|
+
|
|
58
|
+
Like `git`, a command acts on what the current folder is:
|
|
59
|
+
|
|
60
|
+
- inside a **product** (`gis-apps/shop`): `check`, `generate`, `product show`, `open`… are about that product;
|
|
61
|
+
- inside an **SPL** (`gis-apps`): about the SPL, and `status`, `get`, `push` also take its products along;
|
|
62
|
+
- inside a **module or metamodel** folder: `check`, `module publish`… are about that package.
|
|
63
|
+
|
|
64
|
+
Anywhere else, name what you mean (`check shop`, `open auth`, `product show shop`), or move there: in a shell with your own `cd`, in the
|
|
65
|
+
window with `cd <spl>` (`cd gis-apps`, `cd shop`: the names, not paths).
|
|
66
|
+
|
|
67
|
+
A **workspace** is a folder (`linea init`) with `modules/` and `metamodels/` next to your SPLs, the way the modules an SPL uses are looked
|
|
68
|
+
for. `linea config workspace <folder>` sets the default one; standing in a workspace uses it.
|
|
69
|
+
|
|
70
|
+
## Between LINEA and your machine: two verbs
|
|
71
|
+
|
|
72
|
+
- **`get`** brings things down: `get gis-apps` clones the SPL and its products; if you already have them it updates them (`get` on its own,
|
|
73
|
+
inside an SPL, updates that SPL and its products; in your workspace, all of them).
|
|
74
|
+
- **`push`** sends things up: it checks, commits, pushes a branch and opens the merge/pull request. If the SPL was made here and LINEA
|
|
75
|
+
does not have it yet, `push` uploads it first.
|
|
76
|
+
|
|
77
|
+
And what you create goes where you are working: signed in, `spl new` makes the SPL **on LINEA and brings it to your folder**, and
|
|
78
|
+
`product new`, inside an SPL that is on LINEA, makes the product there and brings it into the SPL's folder. `--local` makes it only
|
|
79
|
+
here (`push` will upload it later). `spl list` shows both sides in one list: *here + LINEA*, *here only*, *LINEA only*.
|
|
80
|
+
|
|
81
|
+
There is no mode to think about: a command acts on the folder you are in, and goes to LINEA only when it has to (`get`, `push`, `spl list`,
|
|
82
|
+
`spl new`, `product new`, `generate --remote`, and the few commands that only exist there: `product logs`, `product conflicts`,
|
|
83
|
+
`reconcile`, `namespaces`). `--local` means "do not talk to the server" for one command.
|
|
84
|
+
|
|
85
|
+
Changing something that LINEA has is always the same loop: `get` it, change it in your folder, `push` it. That is why there is no
|
|
86
|
+
`rename`, `delete` or `update` of things on the server from here: do those in the web interface, and `get` the result.
|
|
87
|
+
|
|
88
|
+
## Configuration
|
|
89
|
+
|
|
90
|
+
| | Default | Purpose |
|
|
91
|
+
|---|---|---|
|
|
92
|
+
| `LINEA_BASE_URL` / `config server <url>` | `http://localhost:3000` | the LINEA server |
|
|
93
|
+
| `config workspace <folder>` | OS data folder | where SPLs, modules and metamodels live |
|
|
94
|
+
| `config editor <command>` | `$VISUAL`, `$EDITOR`, then `code`, `cursor`, `codium`, `windsurf` | what `open` starts |
|
|
95
|
+
| `config theme <name>` / `LINEA_THEME` | `linea` | the colours of the window: `linea` (the web interface, dark), `linea-light`, `ember` (orange on neutral dark), `mono`; `config theme` lists them. Applies the next time `linea` opens |
|
|
96
|
+
| `GITLAB_TOKEN` / `GITHUB_TOKEN` / `LINEA_GIT_TOKEN`, `GIT_PROVIDER`, `GITLAB_HOSTNAME`… | from `login` | the git host, when you work without the server |
|
|
97
|
+
| `LINEA_TRUSTED_NAMESPACES` | anywhere | where modules and metamodels may come from (they carry scripts that run here) |
|
|
98
|
+
| `LINEA_REGISTRY` | unset | the repository with the catalog of registered modules and metamodels (`gitlab:group/repo`, `github:owner/repo`): `module list --remote` shows what is registered there (otherwise every repository with the topic); `registry list/add/remove` manage it. It only lists: it does not limit what an SPL may use |
|
|
99
|
+
| `LINEA_TOKEN` | – | a development JWT that replaces `login` |
|
|
100
|
+
| `LINEA_OAUTH_PORT` | `53682` | the port `login` listens on (it has to be registered as a redirect URI) |
|
|
101
|
+
| `LINEA_DEBUG` | unset | `1`: the git credential helper writes one line per request to `~/.linea/credential.log` (host, answered or not; never the token) |
|
|
102
|
+
| `LINEA_HOME` | `~` | where `.linea/credentials.json` is kept (mode 0600) |
|
|
103
|
+
|
|
104
|
+
Bun reads a `.env` in the folder you start from; `bun --no-env-file` ignores it.
|
|
105
|
+
|
|
106
|
+
## Signing in
|
|
107
|
+
|
|
108
|
+
`linea login` opens your browser on the git host (the same OAuth the web interface uses), and when it comes back the CLI has
|
|
109
|
+
**both** things it needs: a session on the LINEA server, and your own access to the git host, which the server hands over once
|
|
110
|
+
(`/api/users/git-credentials`). Nothing else is to be set up.
|
|
111
|
+
|
|
112
|
+
If your LINEA server is older and gives no git access (`whoami` shows `git access: none`), or you would rather use your own, give a
|
|
113
|
+
**personal access token** for your git host (GitLab: scope `api`; GitHub: `repo`): `linea login --token <token or path of a file
|
|
114
|
+
holding it>`. The host is the one the server says it is on; it is asked whether it accepts the token before it is kept, the token is
|
|
115
|
+
never printed, and it is kept over whatever the server says later. Git access belongs to the server it came from: switching servers
|
|
116
|
+
(`config server …`) leaves the other's behind, and `doctor` says where the access in use comes from.
|
|
117
|
+
|
|
118
|
+
The access is also what `git` uses: a clone is configured with `linea` as its credential helper for that host, so a plain `git push`
|
|
119
|
+
or `git pull` inside it works too, and no token is written into any repository.
|
|
120
|
+
|
|
121
|
+
## Commands
|
|
122
|
+
|
|
123
|
+
`linea help` lists them, `linea help <command>` explains one (`help product`, `help spl new`).
|
|
124
|
+
Anything marked `local` or `cloud` works only there.
|
|
125
|
+
|
|
126
|
+
### Get started
|
|
127
|
+
|
|
128
|
+
| | |
|
|
129
|
+
|---|---|
|
|
130
|
+
| `login`, `logout`, `whoami` | the server and the git host (cloud) |
|
|
131
|
+
| `config [workspace\|editor\|server] [value]` | the settings |
|
|
132
|
+
| `init [folder]` | make a folder a workspace |
|
|
133
|
+
| `cd [name]` | in the window: move into an SPL, a product, a module or a metamodel **by its name** (a product of the SPL you are in first, then an SPL of your workspace); `cd ..` goes up, `cd` alone to the workspace. Tab completes the names. A shell has its own `cd` |
|
|
134
|
+
| `doctor [--online]` | check that everything is in place |
|
|
135
|
+
|
|
136
|
+
### LINEA ⇄ your machine
|
|
137
|
+
|
|
138
|
+
| | |
|
|
139
|
+
|---|---|
|
|
140
|
+
| `get [spl[:product]] [--products all\|none\|a,b] [--dir folder]` | bring an SPL and its products (real git clones; the products sit inside the SPL's folder), or update what you have. Tab after `get ` completes the SPLs LINEA has, marking which you already have |
|
|
141
|
+
| `status [--fetch]` | branch, changes and what to push or get, for the SPL and each product |
|
|
142
|
+
| `push [-m message] [--direct] [--no-check]` | check, commit, push a branch `linea/<you>/<what>` and open the merge/pull request. An SPL made here is uploaded first. `--direct` pushes to the default branch |
|
|
143
|
+
| `open [what] [--editor name] [--print]` | the SPL (as a VS Code workspace with its modules), a product, `shop:datamodel`, `fm`, a module, a path |
|
|
144
|
+
| `open --web`, `open --repo` | the same thing in the LINEA web interface, or on the GitLab/GitHub page |
|
|
145
|
+
|
|
146
|
+
Some commands were folded into others and no longer appear in `help`, but still work: `clone`, `pull` and `link` are `get` and `push`; `web` and `repo` are `open --web` and `--repo`; `spl modules` is in `spl show`; `product models` and `product conflicts` are in `product show`; `fm edit` is `open fm`; `module clone` is `get gitlab:group/project`.
|
|
147
|
+
|
|
148
|
+
### SPLs, the feature model and products
|
|
149
|
+
|
|
150
|
+
| | |
|
|
151
|
+
|---|---|
|
|
152
|
+
| `spl list`, `spl show [spl]` | your SPLs, here and on LINEA in one list, coloured by where each is (green: here and on LINEA, yellow: only here, cyan: only on LINEA); what one is made of (for one of modules: the modules it names and what they bring in), its products, and whether LINEA has it |
|
|
153
|
+
| `spl new <name> [--modules gitlab:g/m,…] [--plain] [--local]` | made of modules by default; `--plain` is the classic kind (a feature model and nothing else: the data model and the sensors are metamodels of modules). Signed in it is made on LINEA and comes to your folder; `--local` keeps it here |
|
|
154
|
+
| `spl add <module> [range]`, `spl remove <module>` | choose the modules; what they need comes with them |
|
|
155
|
+
| `spl update [module]` | take the newest versions the ranges allow and pin them in `linea.lock.json` |
|
|
156
|
+
| `spl delete <spl> --yes` | delete it from this machine (irreversible, products included); LINEA keeps its own copy |
|
|
157
|
+
| `check [product\|module\|metamodel]` | an SPL (its modules fit), a product (its models and features fit) or a package, by what you name or where you are |
|
|
158
|
+
| `fm show\|convert\|analyze\|metric` | the feature model (to change it: `open fm`) |
|
|
159
|
+
| `product new <name> [--features A,B] [--from spec.json] [--local]` | a product; in an SPL that is on LINEA it is made there and comes into the folder. For an SPL of modules it starts with a model of each metamodel it needs |
|
|
160
|
+
| `product list\|show\|rename\|delete` | the products of the SPL you are in (here, on this machine); `show` has its features, its models and what is missing, and the merge requests LINEA knows of |
|
|
161
|
+
| `product features <product> [--add A,B] [--remove C]` | the features a product selects |
|
|
162
|
+
| `generate [product] [--preview [dir]] [--zip [file]] [--remote [--bump patch\|minor\|major] [--no-wait]]` | derive it here, into the product's folder (then `push`); `--preview` and `--zip` leave it alone; `--remote` has LINEA derive it, open its merge requests and follow its pipeline (`--no-wait` does not) |
|
|
163
|
+
| `product pipeline [product] [--retry] [--watch]` | the pipeline of the last commit on LINEA: its jobs, and what the failed one printed; `--retry` runs the failed jobs again |
|
|
164
|
+
| `product changes [product] [version]` | what a version changed in its specification against the one before it |
|
|
165
|
+
| `product deployment [product]` | what is saved on LINEA that no generation has put in the code yet |
|
|
166
|
+
| `product rollback <version> [product] [--no-generate]` | go back to the content of an earlier version: restored, and generated on LINEA as a new version |
|
|
167
|
+
|
|
168
|
+
### Modules and metamodels (the same verbs for both)
|
|
169
|
+
|
|
170
|
+
| | |
|
|
171
|
+
|---|---|
|
|
172
|
+
| `module list [search] [--remote]` | those of your workspace, or on your git host |
|
|
173
|
+
| `module show <name\|location>` | versions, what it requires and offers, and which SPLs use it |
|
|
174
|
+
| `module new <name>` | make one in your workspace |
|
|
175
|
+
| `get gitlab:group/project \| github:owner/repo` | get one of the host to change it (a module or a metamodel, whichever it is) |
|
|
176
|
+
| `module check [name]` | check it on its own, as the registry does before publishing |
|
|
177
|
+
| `module publish [name] [--bump patch\|minor\|major] [--to group-or-owner] [--dry-run]` | check, raise the version, and publish it as a tag `vX.Y.Z` |
|
|
178
|
+
| `publish <group or owner> [name]` | publish everything in the workspace |
|
|
179
|
+
|
|
180
|
+
`metamodel …` is the same list. A package is used from an SPL by its location, `gitlab:group/project` or `github:owner/repo`;
|
|
181
|
+
`--remote` shows what is on the host.
|
|
182
|
+
|
|
183
|
+
### On the server
|
|
184
|
+
|
|
185
|
+
`reconcile spls|products`, `namespaces`, `product logs`, `product pipeline`, `product changes`, `product deployment`, `product rollback`; they need you signed in and say so when you are not.
|
|
186
|
+
|
|
187
|
+
## Scripts and CI
|
|
188
|
+
|
|
189
|
+
- `--json` prints data instead of text (`status`, `check`, `module list`, `doctor`…); `--local` says no server.
|
|
190
|
+
- The exit code is `0` when it worked, `1` when it did not or a check found problems, `2` when the command was used wrong.
|
|
191
|
+
- Normal output goes to stdout, errors and notes to stderr.
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
linea --json check || exit 1
|
|
195
|
+
linea module publish --bump patch --to my-group
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Worth knowing
|
|
199
|
+
|
|
200
|
+
- **`push` never touches the default branch** unless you say `--direct`: it makes a branch and a merge/pull request. What does not
|
|
201
|
+
check out is not sent (`--no-check` overrides it).
|
|
202
|
+
- **`generate` is local.** It writes into the product's folder and bumps its version; `push` sends it. `generate --remote` is the one
|
|
203
|
+
that runs on LINEA, from what LINEA has: push first. `--preview` and `--zip` refuse to write into a workspace or SPL folder.
|
|
204
|
+
- **Deleting is local too.** `spl delete` and `product delete` remove the folder from this machine and say that LINEA still has its copy.
|
|
205
|
+
The feature model of an SPL made of modules is composed from its modules: it is read-only. Change the file of a plain SPL with `open fm`.
|
|
206
|
+
- **Not committed by the CLI**: `.linea/origin.json` (where a copy came from), `.linea/composed-model.uvl` (a cache) and the
|
|
207
|
+
`.code-workspace` file are kept out of the repositories through `.git/info/exclude`.
|
|
208
|
+
|
|
209
|
+
## Product spec file
|
|
210
|
+
|
|
211
|
+
`product new --from <file>` reads a JSON spec:
|
|
212
|
+
|
|
213
|
+
```json
|
|
214
|
+
{
|
|
215
|
+
"basicData": { "name": "MyProduct", "version": "0.0.0", "languages": ["en"], "SRID": "4326" },
|
|
216
|
+
"dataModel": { "cells": [] },
|
|
217
|
+
"features": ["Foo", "Bar"],
|
|
218
|
+
"statics": []
|
|
219
|
+
}
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Names allow `[a-zA-Z0-9_.-]`, versions must be `x.y.z`, and the selection is validated against the SPL's feature model.
|
|
223
|
+
|
|
224
|
+
## The window
|
|
225
|
+
|
|
226
|
+
`linea` on its own opens it. It starts with a panel that says where you are (the SPL, product or package of the folder, its branch and
|
|
227
|
+
what is waiting to be pushed) and the few commands worth running *there*: outside an SPL it offers `spl list`, `get` and `spl new`; inside
|
|
228
|
+
one with changes, `push` comes first; inside a product, `open`, `product show`, `check`. The same suggestions order the menu and the top
|
|
229
|
+
of `help`.
|
|
230
|
+
|
|
231
|
+
Commands are plain text (`get gis-apps`, `spl list`); a leading `/` is optional. Start typing and the menu follows the first word,
|
|
232
|
+
with the suggested commands first and what each does *right now*; `/` on its own shows the whole menu.
|
|
233
|
+
|
|
234
|
+
| | |
|
|
235
|
+
|---|---|
|
|
236
|
+
| Tab, Enter | complete the highlighted suggestion (Enter runs the line once it is a whole command) |
|
|
237
|
+
| ↑ / ↓ | move through the menu; recall earlier commands when there is none |
|
|
238
|
+
| `?` | the keyboard shortcuts |
|
|
239
|
+
| Esc, Ctrl+U, Ctrl+W | clear the line, clear it, delete the last word |
|
|
240
|
+
| Ctrl+L | clear the screen |
|
|
241
|
+
| Ctrl+C | quit |
|
|
242
|
+
|
|
243
|
+
The line under the prompt shows the SPL or product you are in, its branch, `●n` changes, `↑n` to push, `↓n` to get, and which side
|
|
244
|
+
commands act on.
|
|
245
|
+
|
|
246
|
+
## Where the logic lives
|
|
247
|
+
|
|
248
|
+
The CLI reads what you typed, runs one operation of a library, and says the result in words. It does not decide anything about SPLs,
|
|
249
|
+
products or git itself:
|
|
250
|
+
|
|
251
|
+
| | In | What |
|
|
252
|
+
|---|---|---|
|
|
253
|
+
| SPLs, products, modules and metamodels as folders: create, check, derive, resolve; versions and feature selection; `findContext` (where a folder stands); `.linea/origin.json` | `linea-core` (`@lbdudc/linea-core/workspace`) | the workspace; it needs a metamodel engine, which this program gives it (bango) in `src/core/workspace.ts` |
|
|
254
|
+
| Metamodels and their models | `bango` | through linea-core |
|
|
255
|
+
| git: clone, pull, push with a merge request, upload a folder as an SPL, state of a checkout, where checkouts are, getting a package of the host, the credential-helper protocol | `linea-git` (`checkout`) | git itself, and the host's API |
|
|
256
|
+
| What is of a terminal program: the grammar and flags, the window, what to suggest, which credential helper git is given (this program), where the token is kept, and the words | `linea-cli` | |
|
|
257
|
+
|
|
258
|
+
## Development
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
bun run dev # the window from source
|
|
262
|
+
bun run typecheck
|
|
263
|
+
bun test # ~220 tests: the commands, real git against bare repositories, the git host in memory
|
|
264
|
+
bun run build # dist/index.js, what `linea` runs
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
The tests that touch git run the real `git`; the LOCAL ones stub `fetch` to throw, so a stray network call fails them.
|
|
268
|
+
`@lbdudc/linea-git/testing` serves an in-memory GitLab and GitHub that also speak git over HTTP, which is what the dev stack
|
|
269
|
+
(`linea/server/dev`) uses, so `get` and `push` can be tried against it without a real host.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// package.json
|
|
3
|
+
var package_default = {
|
|
4
|
+
name: "@lbdudc/linea-cli",
|
|
5
|
+
version: "0.1.0",
|
|
6
|
+
type: "module",
|
|
7
|
+
description: "LINEA from the terminal: manage software product lines and generate products. Needs the Bun runtime.",
|
|
8
|
+
main: "src/index.tsx",
|
|
9
|
+
bin: {
|
|
10
|
+
linea: "dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
scripts: {
|
|
13
|
+
start: "bun run src/index.tsx",
|
|
14
|
+
dev: "bun run src/index.tsx",
|
|
15
|
+
build: "bun run scripts/build.ts",
|
|
16
|
+
typecheck: "tsc --noEmit",
|
|
17
|
+
test: "bun test",
|
|
18
|
+
prepublishOnly: "npm run build"
|
|
19
|
+
},
|
|
20
|
+
engines: {
|
|
21
|
+
bun: ">=1.1"
|
|
22
|
+
},
|
|
23
|
+
dependencies: {
|
|
24
|
+
"@lbdudc/bango": "^0.2.0",
|
|
25
|
+
"@lbdudc/linea-core": "^0.1.1",
|
|
26
|
+
"@lbdudc/linea-git": "^0.1.0",
|
|
27
|
+
"@opentui/core": "^0.4.5",
|
|
28
|
+
"@opentui/solid": "^0.4.5",
|
|
29
|
+
langium: "^4.4.0",
|
|
30
|
+
open: "^10.1.0",
|
|
31
|
+
"solid-js": "1.9.12"
|
|
32
|
+
},
|
|
33
|
+
devDependencies: {
|
|
34
|
+
"@types/bun": "^1.3.14",
|
|
35
|
+
typescript: "^5.7.0"
|
|
36
|
+
},
|
|
37
|
+
license: "Apache-2.0",
|
|
38
|
+
author: "Laboratorio de Bases de Datos (LBD) - Universidade da Coru\xF1a",
|
|
39
|
+
repository: {
|
|
40
|
+
type: "git",
|
|
41
|
+
url: "git+https://github.com/lbdudc/linea.git",
|
|
42
|
+
directory: "packages/cli"
|
|
43
|
+
},
|
|
44
|
+
homepage: "https://github.com/lbdudc/linea/tree/main/packages/cli",
|
|
45
|
+
bugs: {
|
|
46
|
+
url: "https://github.com/lbdudc/linea/issues"
|
|
47
|
+
},
|
|
48
|
+
publishConfig: {
|
|
49
|
+
access: "public",
|
|
50
|
+
provenance: true
|
|
51
|
+
},
|
|
52
|
+
files: [
|
|
53
|
+
"dist",
|
|
54
|
+
"README.md"
|
|
55
|
+
]
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { package_default };
|