-
Notifications
You must be signed in to change notification settings - Fork 147
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
Suggest installing Bootstrap assets via composer #402
Comments
Only |
I would prefer to have Bootstrap included using composer instead of npm as well. The |
That's intentional. It gives the freedom to users to manage the bootstrap assets as they wish. As for the use of |
Sure, I never meant to suggest to actually automatically install Bootstrap. Seems I wasn't clear enough, sorry about that. What I was suggesting it to tell people how to quickly get it with composer (and that they can actually do it) right next to where you already tell them how to install it with npm. In other words, just edit the docs. I can see how some can not think of composer as an option, and not wanting to deal with npm, will proceed to download the zip. |
While I am not good enough with phrasing things when writing the docs to suggest a PR, I did paste the commands that worked for me above. |
Should just need a command for "install from npm, composer, or zip", which would do the associated download and make the symlinks If no one gets to it in a month+, I'll probably do it. |
FriendsOfCake/bootstrap-ui does not come with Bootstrap itself, so we need to install the whole thing separately.
Right now the recommended way to do that seems to be via
npm
, either usingbin/cake bootstrap install
or manually:Consider recommending getting Bootstrap from
composer
. I think that's much faster, more native to PHP and does not requirenpm
to be available.(I had to install
twbs/bootstrap-icons
separately becausetwbs/bootstrap
doesn't seem to contain thefont
directory.)Link your application webroot to where Bootstrap files are actually located:
The default FriendsOfCake/bootstrap-ui layout expects the files to be available under
/bootstrap_u_i
, so by symlinking the path like that, it picks almost everything up right away automatically.The text was updated successfully, but these errors were encountered: