-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add engine-specific 'start' commands for running integration tests/examples #95
Add engine-specific 'start' commands for running integration tests/examples #95
Conversation
…amples. In the root, you may now run `start-core`, `start-three`, or `start-babylon`. These all run webpack dev server, but will open relevant tabs for the package you have selected. This is either integration tests, or both integration tests and examples. More work is still required to integrate the integration test code/pages into webpack so they support hot reload This change also enables source maps for non-production builds.
README.md
Outdated
- [Babylon.js](packages/amazon-sumerian-hosts-babylon/test/integration_test/README.md) | ||
- [Three.js](packages/amazon-sumerian-hosts-three/test/integration_test/README.md) | ||
|
||
### Examples Folder | ||
Each of the implementation packages have their own examples attached to them. Each of these files contain enough code to stand up and verify the code is working properly. To verify, open up a local server for the package you are modifying: | ||
``` | ||
npm run --workspaces=./packages/amazon-sumerian-hosts-{package} start | ||
npm run start-{engine-name} start |
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.
i think the last start
is not necessary
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.
yep, thanks!
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.
Something in this PR has broken the Babylon demos. When attempting to access any of the demos in the browser the JS console reports a 404 for the main JS file belonging to the demo (ex. "helloWorldDemo.js"). Perhaps this has something to do with the removal of the copy-webpack-plugin?
Forgot to mention this in the review I just submitted, but another problem with this PR is that the code scan is reporting a number of CodeQL issues. |
Some more changes:
|
I've also tested all of the examples and integration tests and have fixed these |
Issue #, if available:
Description of changes:
In the root, you may now run
start-core
,start-three
, orstart-babylon
.These all run webpack dev server, but will open relevant tabs for the package you have selected. This is either integration tests, or both integration tests and examples.
More work is still required to integrate the integration test code/pages into webpack so they support hot reload
This change also enables source maps for non-production builds.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.