Make Table Formulas a built-in feature
The formula engine, the rendered results, and the formula help now come from src/lib/formulas/. The editor and the renderer call this module directly. The tableFormulas contribution type is removed. - Add the tableFormulas general setting (default on) and a switch in Settings > General. When it is off, formulas show as source text. - Do not load an installed runestone.table-formulas package. Settings > Plug-ins marks it as included with RuneStone and tells the user that it can be removed. The user's files stay in place. - Translate the formula help and the error descriptions into French, Japanese, and Simplified Chinese. - Port the plugin unit tests. Test the setting and use a test-only contribution for the generic plugin lifecycle tests. - Smoke tests load only Terminal. The formula and lifecycle tests use the built-in feature and its setting. - Remove scripts/buildPlugins.mjs, the build:plugins script, and the plugin-packages requirement of the smoke runner. - Remove RuneStone_Table_Formulas from the menu audit scope. It had no menu surfaces. - Update the README, the user guides, and the developer references.
This commit is contained in:
@@ -115,24 +115,6 @@ In user instructions, do not tell users to load JSON, select a build folder, ren
|
||||
Each example is specific to one plugin. Read the package scripts of a plugin before you build it.
|
||||
For the RuneStone source setup, see [Run from source](development.md#run-from-source).
|
||||
|
||||
### Example: Table Formulas
|
||||
|
||||
Source: [Table Formulas repository](https://git.knottywyvern.com/kwyvern/RuneStone_TableFormulas) and the host script `scripts/buildPlugins.mjs`.
|
||||
|
||||
| Item | Value |
|
||||
| --- | --- |
|
||||
| Prerequisites | Node.js 24, pnpm 10, and the RuneStone source setup. A Table Formulas checkout in `RuneStone_Table_Formulas` beside the RuneStone folder, with `pnpm install --frozen-lockfile` complete. |
|
||||
| Working folder | The RuneStone repository root |
|
||||
| Command | `pnpm build:plugins` |
|
||||
| Output | `<Table Formulas>/releases/runestone.table-formulas-<version>.zip` |
|
||||
|
||||
The `build:plugins` script builds only Table Formulas. It runs the plugin's `scripts/build.mjs`, which compiles without a type check.
|
||||
It copies the compiled files to `plugin-packages/table-formulas/` in RuneStone. Host tests read that folder.
|
||||
Set `RUNESTONE_TABLE_FORMULAS_ROOT` when the Table Formulas checkout is in a different location.
|
||||
|
||||
The plugin also has its own command. In the Table Formulas folder, `pnpm package:plugin` runs the type check, the build, and the RuneStone packager.
|
||||
It finds the packager in `../RuneStone`. Set `RUNESTONE_ROOT` when the RuneStone checkout is in a different location.
|
||||
|
||||
### Example: Terminal
|
||||
|
||||
Source: [Terminal repository](https://git.knottywyvern.com/kwyvern/RuneStone_Terminal), its `package.json`, and its `scripts/build.mjs`.
|
||||
@@ -364,7 +346,6 @@ Only one enabled plugin can own each key. The host removes contributions before
|
||||
| Key | Purpose | Owner |
|
||||
| --- | --- | --- |
|
||||
| `terminal` | Mounts terminal controls in a host element. Returns update, command, and dispose functions. | Terminal plugin |
|
||||
| `tableFormulas` | Evaluates and renders formulas in Markdown tables. | Table Formulas plugin |
|
||||
| `git` | Supplies line blame for the editor. | Git plugin |
|
||||
| `browser` | The built-in browser. | RuneStone |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user