Skip to content
Merged

Dev #75

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4233fff
Fix: correct changelog location.
bjones1 Aug 23, 2025
bd1f5cd
Fix: correct test delays.
bjones1 Aug 23, 2025
97ab439
Clean: removed unused file.
bjones1 Aug 23, 2025
423741d
Fix: Correct directory to run dist from.
bjones1 Aug 23, 2025
20af27b
Fix: correct tests.
bjones1 Aug 23, 2025
d27a7d8
Clean: bundle Mocha.
bjones1 Aug 24, 2025
aa38b0a
Update: to Chai v6.
bjones1 Aug 24, 2025
dad6c52
Update: use bundled Mathjax, instead of source version.
bjones1 Aug 24, 2025
1057f1f
Docs: Improve MathJax use docs.
bjones1 Aug 24, 2025
6b7b543
Docs: update changelog.
bjones1 Aug 24, 2025
3ddd7b0
Fix: skip tests which hangs CI on Windows.
bjones1 Aug 26, 2025
82fae67
Fix: increase delay after file change in tests.
bjones1 Aug 26, 2025
2891a27
Fix: increase delay after server startup in tests.
bjones1 Aug 26, 2025
ab044aa
Clean: prettier.
bjones1 Aug 27, 2025
7db5ba3
Fix: correctly order Client calls from the Framework.
bjones1 Aug 29, 2025
846e254
Fix: better error reporting
bjones1 Aug 30, 2025
d2ed400
Fix: better error formatting.
bjones1 Aug 30, 2025
18d71c6
Fix: update to newer pdfjs.
bjones1 Aug 30, 2025
80fbd85
Fix: Improve error reporting.
bjones1 Aug 30, 2025
d09f3e4
Clean: word wrap.
bjones1 Aug 31, 2025
bb96554
Freeze for release.
bjones1 Aug 31, 2025
2b0c31d
Docs: remove non-breaking space.
bjones1 Aug 31, 2025
d0331f4
Fix: consistent EOL handling of source code.
bjones1 Sep 1, 2025
650209e
Clean: No longer need to explicitly call `page_init()` on the Client.
bjones1 Sep 1, 2025
1befb7f
Freeze for release.
bjones1 Sep 1, 2025
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
147 changes: 84 additions & 63 deletions builder/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ edition = "2024"

[dependencies]
clap = { version = "4.5.19", features = ["derive"] }
cmd_lib = "1.9.5"
cmd_lib = "2.0.0"
current_platform = "0.2.0"
dunce = "1.0.5"
path-slash = "0.2.1"
Expand Down
14 changes: 6 additions & 8 deletions builder/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ fn patch_client_libs() -> io::Result<()> {
// Copy across the parts of MathJax that are needed, since bundling it is
// difficult.
quick_copy_dir(
"../client/node_modules/@mathjax/src/bundle/",
"../client/node_modules/mathjax/",
"../client/static/mathjax",
None,
)?;
Expand All @@ -338,12 +338,7 @@ fn run_install(dev: bool) -> io::Result<()> {
}
// See [the client manifest](../../client/package.json5) for an explanation
// of `--no-frozen-lockfile`.
run_script(
"pnpm",
&["install", "--no-frozen-lockfile"],
"../client",
true,
)?;
run_script("pnpm", &["install"], "../client", true)?;
patch_client_libs()?;
run_script("npm", &["install"], "../extensions/VSCode", true)?;
run_cmd!(
Expand Down Expand Up @@ -395,7 +390,10 @@ fn run_test() -> io::Result<()> {
)?;
run_build()?;
// Verify that compiling for release produces no errors.
run_cmd!(dist build;)?;
run_cmd!(
cd ..;
dist build;
)?;
run_cmd!(
cargo test --manifest-path=../builder/Cargo.toml;
cargo test;
Expand Down
42 changes: 11 additions & 31 deletions client/package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
url: 'https://github.com/bjones1/CodeChat_editor',
},
type: 'module',
version: '0.1.29',
version: '0.1.31',
dependencies: {
'@codemirror/lang-cpp': '^6.0.3',
'@codemirror/lang-css': '^6.3.1',
Expand All @@ -60,34 +60,12 @@
'@codemirror/state': '^6.5.2',
'@codemirror/view': '^6.38.1',
'@mathjax/mathjax-newcm-font': '4.0.0',
'@mathjax/src': '4.0.0',
codemirror: '^6.0.2',
'graphviz-webcomponent': '^2.0.0',
mermaid: '^11.10.0',
'npm-check-updates': '^18.0.2',
/* Per [this pdfjs-dist
issue](https://github.com/mozilla/pdf.js/issues/20127), avoid v5.4.54
of this library. Per [this pnpm
issue](https://github.com/pnpm/pnpm/issues/6714), `pnpm` will
auto-rewrite this incorrectly, so manually revert changes after each
`pnpm update`. However, reverting these changes causes the following
error:

```
ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.
yaml is not up to date with <ROOT>/package.json

Note that in CI environments this setting is true by default. If you still need to
run install in such cases, use "pnpm install --no-frozen-lockfile"

Failure reason:
specifiers in the lockfile don't match specifiers in package.json:
* 1 dependencies are mismatched:
- pdfjs-dist (lockfile: ^5.3.93, manifest: ~5 < 5.4.54 || ~5.4.55)
```

So, installs in CI must have the `--no-frozen-lockfile` CLI flag. */
'pdfjs-dist': '~5 < 5.4.54 || ~5.4.55',
mathjax: '4.0.0',
mermaid: '^11.10.1',
'npm-check-updates': '^18.0.3',
'pdfjs-dist': '^5.4.149',
tinymce: '^8.0.2',
'toastify-js': '^1.12.0',
},
Expand All @@ -97,14 +75,16 @@
'@types/mocha': '^10.0.10',
'@types/node': '^24.3.0',
'@types/toastify-js': '^1.12.4',
'@typescript-eslint/eslint-plugin': '^8.40.0',
'@typescript-eslint/parser': '^8.40.0',
chai: '^5.3.1',
'@typescript-eslint/eslint-plugin': '^8.41.0',
'@typescript-eslint/parser': '^8.41.0',
chai: '^6.0.1',
esbuild: '^0.25.9',
eslint: '^9.33.0',
eslint: '^9.34.0',
'eslint-config-prettier': '^10.1.8',
'eslint-plugin-import': '^2.32.0',
'eslint-plugin-prettier': '^5.5.4',
mocha: '^11.7.1',
prettier: '^3.6.2',
typescript: '^5.9.2',
},
scripts: {
Expand Down
Loading
Loading