Remove Blaze repo based dependencies from static-html #10267
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(Replaces #9781)
meteor create --minimal
pullstracker
into new minimal apps as a dependency. This is because it's being pulled in as one of the dependencies on the Blaze templating tools side. Currently thestatic-html
package is dependent on several Blaze repo based packages, a lot of which include Blaze specific utilities / helpers, that are really not needed when using non-Blaze apps. Thestatic-html
package really only needs the following Blaze repo functionality to accomplish its role:caching-html-compiler
html-scanner.js
file from thetemplating-tools
package.static-html
package.Since the above functionality isn't specific to Blaze, let's extract those files / packages from the Blaze repo, and bring them back into Meteor core. By doing so we can reduce a lot of template based dependency overhead, when not using Blaze.
This PR creates a new copy of the
static-html
andcaching-html-compiler
packages in core, and creates a new package calledhtml-scanner
, to house thehtml-scanner.js
functionality from thetemplating-tools
package. With these changes in place, we're able to replace the following dependencies in ameteor create --minimal
app:with:
(And this change will of course benefit non minimal
static-html
dependent apps as well.)