Skip to content
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

Import the entire Bootstrap styles #1452

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

javiereguiluz
Copy link
Member

Here's another proposal to improve @weaverryan's work on #1449.

We already import 90% of Bootstrap so, why not import 100% of it?

@weaverryan
Copy link
Member

I think it makes sense. As a demo, we should show realistic things, but "splitting hairs" to this level reduces readability. So yes, I like it :).

@javiereguiluz javiereguiluz merged commit 206f0c9 into symfony:main Nov 10, 2023
@javiereguiluz javiereguiluz deleted the import_all_bootstrap branch November 10, 2023 07:36
javiereguiluz added a commit that referenced this pull request Dec 11, 2023
This PR was squashed before being merged into the main branch.

Discussion
----------

[WIP] Upgrading to AssetMapper 6.4

Hi!

This converts from Encore to AssetMapper 6.4 (and also upgrading to Symfony 6.4 in general). This was the final product of a live stream walking through this process - https://www.youtube.com/watch?v=pyj1hvhcxGc

There are still some TODOs to finish. The biggest is the first, as Sass is quite embedded in there.

- [X] ~~A) convert Sass->CSS (not a requirement for AssetMapper, but Javier & I talked about this). Then remove SassBundle & bootstrap in `composer.json`. Probably many Sass variables should be converted to CSS variables. See #1450 and #1452~~. Much of this was done, Sass kept just for Bootstrap.
- [X] ~~B) In `assets/app.js`, I should just be able to import from the individual `bootstrap` package instead of requiring each part~~ It's fine how it is. When we upgrade, perhaps we could look at it then.
- [X] C) commit `public/assets/` or `assets/vendor/` so the code works after clone with ZERO other commands. Else, the user will need to run `importmap:install`.
- [x] D) update `devcontainer.json`
- [x] E) fix the `admin` entrypoint & layout

It's a busy month! If anyone is interested in trying to fix any of the above points, just let me know here or on Slack. I'd be more than happy to coach someone through them.

Cheers!

Commits
-------

634f238 [WIP] Upgrading to AssetMapper 6.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants