Skip to content

Conversation

@LucasLefevre
Copy link
Collaborator

Description:

Use references to tell that the root packages references o-spreadsheet-engine and that it must be build first.

TS uses the generated .d.ts files in o-spreadsheet-engine when type checking o-spreadsheet, instead of resolving all the types for second time.

npm run build:
before: 23s
after: 16s

Task: 5173883

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented Oct 16, 2025

Pull request status dashboard

@LucasLefevre LucasLefevre force-pushed the master-reference-build-lul branch 3 times, most recently from 58b6114 to b139401 Compare October 20, 2025 13:21
LucasLefevre and others added 5 commits October 21, 2025 09:14
Import from `@o-spreadsheet-engine` instead of using relative paths
across different packages.

Task: 5173883
Use `references` to tell that the root packages references
`o-spreadsheet-engine` and that it must be build first.

https://www.typescriptlang.org/docs/handbook/project-references.html

TS uses the generated `.d.ts` files in `o-spreadsheet-engine` when type
checking `o-spreadsheet`, instead of resolving all the types for second time.

`npm run build`:
before: 23s
after:  16s

Task: 5173883
With this commit, the `serve-static` command in the `dev` script
now waits for the `o_spreadsheet.iife.js` build to complete before
starting the static server. This ensures that the server serves the
latest build files, preventing potential issues with stale content.
@pro-odoo pro-odoo force-pushed the master-reference-build-lul branch from 4f93889 to f15b822 Compare October 21, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants