Skip to content

Migrate Smart Filters packages into the repo #16817

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

Draft
wants to merge 102 commits into
base: master
Choose a base branch
from

Conversation

AmoebaChant
Copy link
Contributor

No description provided.

… by ensuring dist has JS that has .js suffixes in the imports. Now following the existing pattern of /index instead of just / as well.
@bjsplat
Copy link
Collaborator

bjsplat commented Jun 27, 2025

Reviewer - this PR has made changes to one or more package.json files.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 27, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 27, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 27, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 1, 2025

Reviewer - this PR has made changes to one or more package.json files.

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 1, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 1, 2025

Copy link
Member

@sebavan sebavan left a comment

Choose a reason for hiding this comment

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

Only checked the general structure and it looks good

@@ -68,7 +69,7 @@
"build:umd:libs": "nx run-many --target=build --parallel --maxParallel=6 --projects=babylonjs,babylonjs-gui,babylonjs-loaders,babylonjs-materials,babylonjs-serializers,babylonjs-post-process,babylonjs-procedural-textures,babylonjs-ktx2decoder,babylonjs-accessibility,babylonjs-addons",
"build:umd:tools": "nx run-many --target=build --parallel --maxParallel=2 --projects=babylonjs-inspector,babylonjs-node-editor,babylonjs-node-geometry-editor,babylonjs-node-render-graph-editor,babylonjs-node-particle-editor,babylonjs-gui-editor",
"build:es6": "npm run build:es6:libs && npm run build:es6:tools",
"build:es6:libs": "nx run-many --target=build --parallel --maxParallel=6 --projects=@babylonjs/core,@babylonjs/gui,@babylonjs/loaders,@babylonjs/materials,@babylonjs/serializers,@babylonjs/post-processes,@babylonjs/procedural-textures,@babylonjs/viewer,@babylonjs/shared-ui-components,@babylonjs/addons,@babylonjs/accessibility,@babylonjs/ktx2decoder",
"build:es6:libs": "nx run-many --target=build --parallel --maxParallel=6 --projects=@babylonjs/core,@babylonjs/gui,@babylonjs/loaders,@babylonjs/materials,@babylonjs/serializers,@babylonjs/post-processes,@babylonjs/procedural-textures,@babylonjs/viewer,@babylonjs/shared-ui-components,@babylonjs/addons,@babylonjs/accessibility,@babylonjs/ktx2decoder,@babylonjs/smart-filters,@babylonjs/smart-filters-blocks",
"build:es6:tools": "nx run-many --target=build --parallel --maxParallel=2 --projects=@babylonjs/node-editor,@babylonjs/node-geometry-editor,@babylonjs/node-render-graph-editor,@babylonjs/node-particle-editor,@babylonjs/inspector,@babylonjs/gui-editor",
Copy link
Member

Choose a reason for hiding this comment

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

Should SFE be here?

@@ -82,7 +83,7 @@
"watch-and-serve:dev": "concurrently \"npm run watch-dev-test\" \"npm run serve -w @tools/babylon-server\"",
"watch-lts": "npx nx run-many --target=watch:lts --all --parallel --maxParallel=20",
"build:babylonjs": "nx build babylonjs",
"build:tools": "npm run build -w @dev/build-tools && npm run build -w eslint-plugin-babylonjs",
"build:tools": "npm run build -w @dev/build-tools && npm i @dev/build-tools -D && npm run compile:assets -w @dev/core && npm run build -w eslint-plugin-babylonjs",
Copy link
Member

Choose a reason for hiding this comment

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

Should the asset part be hidden in Smart Filters ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line has two changes: the first is to call "npm i" right after building build-tools - this used to be done in "prepare", but now we need to actually use the tools right away, so I call "npm i" immediately after building them.

The second change is to run "compile:assets" in @dev/core, and that's so the "build:assets" script (which is called by "prepare" next) will succeed, now that "build:assets" calls buildShaders in @dev/smart-filters which has a dependency on @dev/core which can't build unless it has built the assets already.

Does that answer your question?

Copy link
Member

@sebavan sebavan left a comment

Choose a reason for hiding this comment

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

Also, we should validate we do not override @babylonjs/core dependency version when deploying as we do for the other packages :-)

},
"files": [
"dist",
"src",
Copy link
Member

Choose a reason for hiding this comment

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

We don't typically distribute the source, right? I'm guessing in the other repo, this package did include the source, and so this is just keeping it the same?

"appendJS": true
}
],
"paths": {
Copy link
Member

Choose a reason for hiding this comment

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

Don't we use project references elsewhere?


## Debugger Browser Extension

This browser extension is intended to aid in the development of web applications that make use of Smart Filters.
Copy link
Member

Choose a reason for hiding this comment

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

Is this intended to be published to the chrome extension store, or only "side loaded"? Maybe some clarifications on this in the readme would be good.

@@ -0,0 +1,44 @@
# Babylon.js Smart Filters
Copy link
Member

Choose a reason for hiding this comment

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

Maybe a brief description of the purpose of this tool?

@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Babylon.js
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should it be 2025?

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.

5 participants