Skip to content

Build scripts in the repo root (buildDashboard.sh etc.): keep, move, combine or delete? #799

Todo

Description

@dwertheimer

There are three build scripts in the repo root. All were added in commits by you this year:

File Added What it does
buildDashboard.sh Jan 2026 ("Tooling updates") Rebuilds the Dashboard's React bundles (performRollup.node.js), builds and installs the plugin (npc plugin:dev jgclark.Dashboard -nc), then opens the Dashboard
buildDemoDashboard.sh Jul 2026 The same, but opens the Demo Dashboard
buildShared.sh Feb 2026 Rebuilds np.Shared's React bundles and builds the plugin

The question: did you mean to have these in the repo root, or were they working files (possibly created by an AI assistant) that got committed along with other changes? Options:

  1. Keep them as they are. If so, fix the header comment in buildShared.sh. It was copied from the Dashboard script and says "Build Dashboard, and then run it".
  2. Move them to scripts/ (or a plugin's own folder), and update the references below.
  3. Replace them with one general command that takes the plugin name, e.g. npm run build:react -- jgclark.Dashboard. It would run that plugin's performRollup.node.js and then npc plugin:dev <plugin> -nc. They're near-copies of each other, so one command would cover all three and any other React plugin.
  4. Delete them, and just run the two commands by hand.

Why something like them is useful: npc plugin:dev doesn't rebuild a React plugin's requiredFiles/ bundles (it has no rollup option as of noteplan-cli v3.20.0). So building a React plugin always takes two steps, and that's easy to forget.

References to update if they move or go:

  • agents/docs/programming.md ("Dashboard one-shot: ./buildDashboard.sh")
  • agents/docs/react-html.md ("Dashboard shortcut: ./buildDashboard.sh")
  • .cursor/commands/np-plugin-commands.md ("Dashboard: ./buildDashboard.sh")

Context: #798 just removed some other stray files from the root. It deliberately left these, so you can decide.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions