-
Notifications
You must be signed in to change notification settings - Fork 205
Miscellaneous repo cleanup #560
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
Conversation
A live preview of this PR will be available at the URL(s) below. https://pr560-d136940---lit-dev-5ftespv5na-uc.a.run.app/ |
a66584d
to
d136940
Compare
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.
Checked in the code and tried some test, build and format commands. Also skimmed some of the preview url. Not 100% sure where the risky areas are but from some random feature checking everything is working.
This cleanup is fantastic. Great formatting and factoring. Also thank you for attaching those search tests to the CI.
A little unsure why one of the CI checks is stuck on the build.
Apart from that this is a huge improvement! LGTM!
- if: ${{ always() && steps.test.outcome == 'failure' }} | ||
run: npm run test:integration:update-golden-screenshots | ||
|
||
- if: ${{ always() && steps.test.outcome == 'failure' }} |
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.
Brilliant!
"test:integration:install-deps": "npx playwright install-deps chromium", | ||
"test:integration:run": "npx playwright test", | ||
"test:integration:update-golden-screenshots": "npx playwright test --update-snapshots" | ||
"test:unit": "lerna run test --scope lit-dev-tools-cjs --scope lit-dev-tools-esm", |
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.
This was a bug - sorry! Good find and fix! Thank you!
5ee8310
to
f2e924b
Compare
Fixes a regression from #560 where we accidentally dropped from "target": "esnext" to "target": "es2020" in the tsconfig.json for sample files (I made a common tsconfig.base.json which defaults to es2020 but forgot to override that in the samples one). We want esnext output for samples because we want to emit standard static class fields (note that @lit/ts-transformers switches instance class field initializers to be constructor-initialized if they are decorated with @Property, to avoid that incompatibility).
lit-dev-tests
package because:playground-plugin
unit tests in CI (under newtest:unit
grouping).integration-tests
action, but only run it if the tests fail.webServer
feature instead ofrun-p
to launch the server used for integration testing.lit-dev-tools
tolit-dev-tools-cjs
to distinguish it fromlit-dev-tools-esm
.manrope
font download step if it hasn't already run (it was needlessly running every time we installed anything or bootstrapped through lerna)tsconfig.base.json
.