-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate block onto the structurer #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| '@platforma-open/milaboratories.3d-structure-based-liabilities.model': patch | ||
| '@platforma-open/milaboratories.3d-structure-based-liabilities.ui': patch | ||
| '@platforma-open/milaboratories.3d-structure-based-liabilities.workflow': patch | ||
| '@platforma-open/milaboratories.3d-structure-based-liabilities.software': patch | ||
| '@platforma-open/milaboratories.3d-structure-based-liabilities': patch | ||
| --- | ||
|
|
||
| Migrate block onto the structurer (block-tools `structure refresh`) and upgrade the SDK toolchain. Tool-managed layout now owns tsconfig, oxlint/oxfmt, turbo, the block index, and per-package deps. Catalog bumped to block-tools 2.11.0, workflow-tengo 6.6.3, model/ui-vue/test 1.79.14, tengo-builder 4.0.8. |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"version":1} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,51 +1,3 @@ | ||
| { | ||
| "vitest.disableWorkspaceWarning": true, | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "[typescript]": { | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "editor.tabSize": 2 | ||
| }, | ||
| "[vue]": { | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "editor.tabSize": 2 | ||
| }, | ||
| "cSpell.words": [ | ||
| "datasource", | ||
| "pframe", | ||
| "prerun" | ||
| ], | ||
| "editor.codeActionsOnSave": { | ||
| "source.fixAll.eslint": "always" | ||
| }, | ||
| "eslint.enable": true, | ||
| "eslint.format.enable": true, | ||
| "[javascript]": { | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "editor.tabSize": 2 | ||
| }, | ||
| "[css]": { | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "editor.tabSize": 2 | ||
| }, | ||
| "[scss]": { | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "editor.tabSize": 2 | ||
| }, | ||
| "[html]": { | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "editor.tabSize": 2 | ||
| }, | ||
| "[yaml]": { | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "editor.tabSize": 2 | ||
| }, | ||
| "[markdown]": { | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "editor.tabSize": 2 | ||
| }, | ||
| "[json]": { | ||
| "editor.defaultFormatter": "oxc.oxc-vscode", | ||
| "editor.tabSize": 2 | ||
| }, | ||
| "typescript.tsdk": "./node_modules/typescript/lib" | ||
| "typescript.tsdk": "node_modules/typescript/lib" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| declare const blockSpec: { | ||
| type: "dev-v2"; | ||
| folder: string; | ||
| }; | ||
|
|
||
| export { blockSpec }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| const blockSpec = { | ||
| type: "dev-v2", | ||
| folder: __dirname, | ||
| }; | ||
|
|
||
| module.exports = { | ||
| blockSpec, | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| { | ||
| "ignorePatterns": ["dist", "CHANGELOG.md"] | ||
| "extends": ["node_modules/@milaboratories/ts-builder/configs/oxfmt.json"], | ||
| "ignorePatterns": ["dist", "coverage", "CHANGELOG.md"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,4 @@ | ||
| { | ||
| "extends": "@milaboratories/ts-configs/tsconfig.node.json", | ||
| "compilerOptions": { | ||
| "baseUrl": ".", | ||
| "outDir": "./dist", | ||
| "rootDir": "./src" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["node_modules"] | ||
| "extends": "@milaboratories/ts-configs/block/model", | ||
| "include": ["src/**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,13 +8,15 @@ | |
| "check": "turbo run check", | ||
| "build": "turbo run build", | ||
| "build:dev": "env PL_PKG_DEV=local turbo run build", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Removing Prompt To Fix With AIThis is a comment left during a code review.
Path: package.json
Line: 10
Comment:
**`--env-mode=loose` removal may silently hide env vars from tests**
Removing `--env-mode=loose` from the `test` script means Turbo now runs in its default (strict) mode where only env vars listed in `passThroughEnv` are forwarded. The `turbo.json` `test` task currently declares `["PL_ADDRESS", "PL_TEST_PASSWORD", "PL_TEST_USER", "PL_TEST_PROXY", "DEBUG"]`. Any test that consumes an env var not in this list will silently receive `undefined` rather than a CI failure, which can produce misleading test results.
How can I resolve this? If you propose a fix, please make it concise. |
||
| "test": "env PL_PKG_DEV=local turbo run test --concurrency 1 --env-mode=loose", | ||
| "test": "env PL_PKG_DEV=local turbo run test --concurrency 1", | ||
| "test:dry-run": "env PL_PKG_DEV=local turbo run test --dry-run=json", | ||
| "mark-stable": "turbo run mark-stable", | ||
| "watch": "turbo watch build", | ||
| "changeset": "changeset", | ||
| "version-packages": "changeset version", | ||
| "update-sdk": "block-tools update-deps" | ||
| "update-sdk": "block-tools structure refresh --update-deps-only", | ||
| "do-pack": "turbo run do-pack", | ||
| "upgrade-sdk": "block-tools structure refresh --update-deps-only && pnpm i && block-tools structure refresh && pnpm i && pnpm fmt" | ||
|
Comment on lines
+17
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "update-sdk": "block-tools structure refresh --update-deps-only",
"do-pack": "turbo run do-pack",
"fmt": "turbo run fmt",
"upgrade-sdk": "block-tools structure refresh --update-deps-only && pnpm i && block-tools structure refresh && pnpm i && pnpm fmt" |
||
| }, | ||
| "devDependencies": { | ||
| "@changesets/cli": "catalog:", | ||
|
|
@@ -25,7 +27,7 @@ | |
| }, | ||
| "peerDependencies": { | ||
| "oxfmt": "*", | ||
| "oxlint": "1.63.0" | ||
| "oxlint": "*" | ||
| }, | ||
| "packageManager": "pnpm@9.12.0" | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Block: 3D Structure-Based Liabilities'was changed to'Block: 3d Structure-Based Liabilities'(lowercased). The same inconsistency appears inmark-stable.yaml, where the name also loses its hyphens:'Block: 3d Structure Based Liabilities - Mark Stable'. If thisapp-nameis used to key dashboards, Slack notifications, or release tracking in the CI system, both workflows should use the same casing, and any existing references to the original name will no longer match.Prompt To Fix With AI