-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
make bootstrapPath configurable through query string #255
Conversation
@vjpr this looks good. @alexfedoseev will have to review. Please include in this PR the README.md and changelog entry. Also, would this apply to the loader v1 and the upcoming v2 which supports only webpack? @alexfedoseev I'd like to see us soon stop adding any feature/capabilities to the v1 branch. |
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.
What is shrinkwrap.yaml
? The rest LGTM.
I don't think we should be doing anything except hotfixes for v1 as webpack v2 is released as stable. |
@vjpr Please update to master. That might fix the CI issue! thanks to @Judahmeek! |
@alexfedoseev Oops,
It should work fine with loader v1, but its probably not worth back porting.
Just need to fix some lint errors. |
Some suggestions! Looking awesome! Reviewed 4 of 4 files at r4. CHANGELOG.md, line 8 at r4 (raw file):
and see other ones for examples. Take credit! README.md, line 537 at r4 (raw file):
Please update https://github.com/shakacode/bootstrap-loader/blob/master/CONTRIBUTING.md with regards to how we can use link. Also, any need to update the examples? CC: @Judahmeek node_package/tests/utils/buildExtractStylesLoader.test.js, line 25 at r4 (raw file):
see a few lines up to avoid the eslint disable src/bootstrap.loader.js, line 58 at r4 (raw file):
should we allow passing src/bootstrap.loader.js, line 101 at r4 (raw file):
@vjpr @alexfedoseev @Judahmeek This is potentially a big change. Why is this needed? I'm not a fan of changing the default to v4 until: https://v4-alpha.getbootstrap.com/ changes from alpha to released. Thoughts? How about allowing the bootstrap version in the query? or reading it from the directory we get from the bootstrap path? src/bootstrap.loader.js, line 113 at r4 (raw file):
see tests for how to work around this string thing... Comments from Reviewable |
Review status: all files reviewed at latest revision, 6 unresolved discussions. src/bootstrap.loader.js, line 58 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
We have src/bootstrap.loader.js, line 101 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
We already have default version set: https://github.com/shakacode/bootstrap-loader/blob/master/src/bootstrap.config.js#L13 Comments from Reviewable |
Review status: all files reviewed at latest revision, 6 unresolved discussions. src/bootstrap.loader.js, line 101 at r4 (raw file): Previously, alexfedoseev (Alex Fedoseev) wrote…
So the Comments from Reviewable |
Review status: all files reviewed at latest revision, 6 unresolved discussions. src/bootstrap.loader.js, line 101 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
Yes, or Comments from Reviewable |
Review status: all files reviewed at latest revision, 6 unresolved discussions. src/bootstrap.loader.js, line 101 at r4 (raw file): Previously, alexfedoseev (Alex Fedoseev) wrote…
@vjpr Can you please make this change and we can get this merged. Comments from Reviewable |
@vjpr We're waiting on a tiny change from you so we can merge this and create a release. Review status: all files reviewed at latest revision, 6 unresolved discussions. Comments from Reviewable |
Review status: all files reviewed at latest revision, 6 unresolved discussions. CHANGELOG.md, line 8 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
Done. README.md, line 537 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
I would leave the testing setup as it is for now. This PR doesn't break it, and its for a different use case than testing with local examples. node_package/tests/utils/buildExtractStylesLoader.test.js, line 25 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
Why should we prefer template? src/bootstrap.loader.js, line 58 at r4 (raw file): Previously, alexfedoseev (Alex Fedoseev) wrote…
But if you wanted to pass it in as a query param. I think it is a good idea for another PR. src/bootstrap.loader.js, line 101 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
DEFAULT_VERSION is not available in src/bootstrap.loader.js, line 113 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
Just seemed less clean to escape single quotes which seem standard for quoting terms within strings. I will add the escapes though. Comments from Reviewable |
Reviewed 2 of 2 files at r5. node_package/tests/utils/buildExtractStylesLoader.test.js, line 25 at r4 (raw file): Previously, vjpr (Vaughan Rouesnel) wrote…
@vjpr it's not about path.join. It's about doing string concatenation with a src/bootstrap.loader.js, line 58 at r4 (raw file): Previously, vjpr (Vaughan Rouesnel) wrote…
I'm curious if the bootstrapPath can be in the configFile? Maybe the idea is that you don't need a config file? If you did pass in the bootstrapPath, then we should be checking the bootstrap version within that path. src/bootstrap.loader.js, line 118 at r5 (raw file):
Please use the ES6 template format for this string and remove the eslint-enable quotes. Comments from Reviewable |
Review status: all files reviewed at latest revision, 5 unresolved discussions. src/bootstrap.loader.js, line 113 at r4 (raw file): Previously, vjpr (Vaughan Rouesnel) wrote…
Please update for the linter. Comments from Reviewable |
Review status: 3 of 4 files reviewed at latest revision, 5 unresolved discussions. node_package/tests/utils/buildExtractStylesLoader.test.js, line 25 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
Done. src/bootstrap.loader.js, line 58 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
So for me, the bootstrap path needs to be set dynamically at build time depending on whether bootstrap-loader is npm linked or not, and depending on which package installer I am using. So for this use case, having it inside the config file would be useless. You you are right, if the bootstrapPath is being set, it would be great to check the version of the package automatically. src/bootstrap.loader.js, line 113 at r4 (raw file): Previously, justin808 (Justin Gordon) wrote…
Done. src/bootstrap.loader.js, line 118 at r5 (raw file): Previously, justin808 (Justin Gordon) wrote…
Oops, accidentally left that in there. Comments from Reviewable |
one question... Reviewed 1 of 1 files at r6. node_package/tests/utils/buildExtractStylesLoader.test.js, line 16 at r6 (raw file):
if there is only one parameter, why do we use path.join? node_package/tests/utils/buildExtractStylesLoader.test.js, line 21 at r6 (raw file):
if there is only one parameter, why do we use path.join? src/bootstrap.loader.js, line 118 at r5 (raw file): Previously, vjpr (Vaughan Rouesnel) wrote…
please change this msg to be a const and use the ES6 template syntax. You won't need to escape the single quotes since you're wrapping in back ticks. Comments from Reviewable |
Review status: 2 of 4 files reviewed at latest revision, 5 unresolved discussions. node_package/tests/utils/buildExtractStylesLoader.test.js, line 16 at r6 (raw file): Previously, justin808 (Justin Gordon) wrote…
Oops. src/bootstrap.loader.js, line 118 at r5 (raw file): Previously, justin808 (Justin Gordon) wrote…
Done. Comments from Reviewable |
Review status: 2 of 4 files reviewed at latest revision, 5 unresolved discussions. node_package/tests/utils/buildExtractStylesLoader.test.js, line 21 at r6 (raw file): Previously, justin808 (Justin Gordon) wrote…
Done. Comments from Reviewable |
But we need to rebase this on top of master. Let me know if you can do that. Also, I'm guessing we don't need this for the v1 branch. @Judahmeek @alexfedoseev Can we release 2.0.0 with this change? Reviewed 2 of 2 files at r7. Comments from Reviewable |
@vjpr Please let me know when you've resolved the conflict. |
See 2857d2b |
Merged |
2.0.0-beta.22 |
@vjpr Please test this out ASAP in case there are issues! I had to resolve some merge conflicts. |
#254
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)