-
Notifications
You must be signed in to change notification settings - Fork 159
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
Increment latest schema version to 5 #822
base: master
Are you sure you want to change the base?
Conversation
@@ -4,6 +4,30 @@ | |||
"fastboot": { | |||
"schemaVersion": 5, | |||
"moduleWhitelist": [], | |||
"htmlEntrypoint": "index.html" | |||
"htmlEntrypoint": "index.html", | |||
"config": { |
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.
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 haven't thought about this in a while but that seems fine to me.
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.
Done in latest commit. v5 schema after the fix is backwards compatible to embroider build
We should also ignore certain scripts like https://github.com/embroider-build/embroider/pull/455/files |
00dc159
to
9068d29
Compare
@@ -455,18 +455,4 @@ describe('FastBoot', function() { | |||
usedPrebuiltSandbox: true, | |||
}); | |||
}); | |||
|
|||
it('htmlEntrypoint works', function() { |
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.
Moved to test-packages/integration-tests/test/basic-test.js
ff128a5
to
78c8ec2
Compare
192d5ea
to
f2a4ec1
Compare
ab0945f
to
032b7c7
Compare
When using custom rootURL specified in environment.js, the fastboot-script is still having relative path to local dist path, not containing rootURL path. The fastboot-script should not be ignored.
032b7c7
to
9d8e702
Compare
9d8e702
to
92bfac9
Compare
html-oriented manifest format ----------------------------- In the new schema format, which is defined in ember-fastboot/fastboot@3fd5bc9 the manifest is written into HTML and later extracted by fastboot on server side instead of previously reading from dist/package.json Note: The new schema in fastboot does not handle fastboot config https://github.com/ember-fastboot/ember-cli-fastboot/tree/e4d0b7c7bcdf82def0dc8726835b49d707673f41#providing-additional-config The support is added in the #854. Allow to require module path from whitelisted dependency ------------------------------------------------------- Incrementing schema to 5 also included the changes in schema 4 strictWhitelist See ember-fastboot/fastboot#200 Revert back to put config in dist/package.json add data-fastboot-ignore to unexpected files properly ignore files that should not execute in fastboot
92bfac9
to
04f2181
Compare
html-oriented manifest format
In the new schema format, which is defined in
ember-fastboot/fastboot@3fd5bc9
the manifest is written into HTML and later extracted by fastboot on
server side instead of previously reading from dist/package.json
Note:
(1) fastboot config
The new schema in fastboot did not handle fastboot config
https://github.com/ember-fastboot/ember-cli-fastboot/tree/e4d0b7c7bcdf82def0dc8726835b49d707673f41#providing-additional-config
The support is added in the #854
The fastboot config meta has the name ending with
"config/fastboot-environement" to distinguish from regular
"config/environement" meta tags. If the new meta tags are not found,
which happens in embroider builds, we fallback to find regular meta
tags.
(2) keeping package.manifest
We cannot drop manifest field in the generated package.json until
broccoli-asset-rev support support reading config from html.
Allow to require module path from whitelisted dependency
Incrementing schema to 5 also included the changes in schema 4
strictWhitelist
See ember-fastboot/fastboot#200