Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add build step to schema npm script
  • Loading branch information
camdecoster committed Oct 15, 2025
commit 8c441308edb5142602b12a4fd095441a5aa3fbda
7 changes: 7 additions & 0 deletions devtools/test_dashboard/build.mjs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@camdecoster After the cleanup you've done, does this step really need a separate file? Couldn't you just now add build(localDevConfig); to the beginning of the makeSchema() function in schema.mjs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a fair question. I envisioned this script as being one that could be called elsewhere, but that seems like it violates the YAGNI principle. I'll do as you suggest. We can always add it back.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { build } from 'esbuild';
import { localDevConfig } from '../../esbuild-config.js';

// Build plotly.js to be used locally, such as when generating the schema.
// This is the same process used in the test dashboard server script, but
// run only once.
build(localDevConfig);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"bundle": "node tasks/bundle.mjs",
"extra-bundles": "node tasks/extra_bundles.mjs",
"locales": "node tasks/locales.js",
"schema": "node tasks/schema.mjs",
"schema": "node devtools/test_dashboard/build.mjs && node tasks/schema.mjs",
"stats": "node tasks/stats.js",
"find-strings": "node tasks/find_locale_strings.js",
"preprocess": "node tasks/preprocess.js",
Expand Down