Optional installs of react, vue and bootstrap #20
Labels
enhancement
New feature or request
gitpod-config
Related to gitpod configuration (bash scripts etc...)
Needs Official QA
Dev QA is not always enough, this could use extra eyes on it.
passed-dev-qa
Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main
Problem this feature will solve
Since this is a configurable starter project it would be nice to have the ability to optionally install react and or vue and or bootstrap. We should be able to set the version and a flag to install the files for auth logins.
The version numbers should support Semantic Versioning.
An empty value for a
version
means no specific version will be set, rather use whatever version laravel/ui usesBackground
The current starter installs vanilla laravel so there is no react for the front end. Furthermore Laravel 8.x has some pretty hectic defaults as far as the learning curve goes (tailwindCSS. Jeststream, Breeze, inertia.js, only vue) and there is not out of the box option for react. With this system in place a user can use tools they are more familiaar with but keep all the great features core of Laravel 8.x
Proposed Solution
add the following configuration options to
starter.ini
starter.ini
.auth
andversion
are ignored ifinstall
is set to 0auth
value will be ignored forbootstrap
when eitherreact
orvue
are installed.install
must either be set to 0 or 1 for any optional installConstraints and Assumptions
Use
laravel/ui:^3.2.0
since it is a legacy library now in Laravel 8.xreact
will also installreact-dom
of the same version as specefied for react instarter.ini
artisan ui
to installreact
andvue
will also bring along alot of other packages. It will be at the users disgression to remove or upgrade and of them. Here is a typical list of packages from package json whenreact
(without auth) is installed:Alternatives or Workarounds
Install these packages manually.
Additional context
This feature should great deal flexibility to the starter and attract a wider user base. Users can get nitty gritty with the system and craft it as they like because that is the beauty of Laravel, however allowing and 'old school' front end swap like
react
andbootstrap
to use in Laravel 8 in place of Breeze or Jeststream will be really handy. Less learning curve if you are familiar with a bootstrap react front end stack.The text was updated successfully, but these errors were encountered: