fix path to doctrine-fixtures-bundles and prefix composer command by "symfony"

This commit is contained in:
Julien Fastré 2024-05-13 13:20:08 +00:00
parent d63e1a15bd
commit d0e27d51fe

View File

@ -56,7 +56,7 @@ We strongly encourage you to initialize a git repository at this step, to track
cat <<< "$(jq '.extra.symfony += {"endpoint": ["flex://defaults", "https://gitlab.com/api/v4/projects/57371968/repository/files/index.json/raw?ref=main"]}' composer.json)" > composer.json cat <<< "$(jq '.extra.symfony += {"endpoint": ["flex://defaults", "https://gitlab.com/api/v4/projects/57371968/repository/files/index.json/raw?ref=main"]}' composer.json)" > composer.json
# install chill and some dependencies # install chill and some dependencies
# TODO fix the suffix "alpha1" and replace by ^3.0.0 when version 3.0.0 will be released # TODO fix the suffix "alpha1" and replace by ^3.0.0 when version 3.0.0 will be released
composer require chill-project/chill-bundles v3.0.0-alpha1 champs-libres/wopi-lib dev-master@dev champs-libres/wopi-bundle dev-master@dev symfony composer require chill-project/chill-bundles v3.0.0-alpha1 champs-libres/wopi-lib dev-master@dev champs-libres/wopi-bundle dev-master@dev
We encourage you to accept the inclusion of the "Docker configuration from recipes": this is the documented way to run the database. We encourage you to accept the inclusion of the "Docker configuration from recipes": this is the documented way to run the database.
You must also accept to configure recipes from the contrib repository, unless you want to configure the bundles manually). You must also accept to configure recipes from the contrib repository, unless you want to configure the bundles manually).
@ -172,7 +172,7 @@ Install fixtures
.. code-block:: bash .. code-block:: bash
# generate fixtures for chill # generate fixtures for chill
composer require --dev doctrine/fixtures-bundle nelmio/alice symfony composer require --dev doctrine/doctrine-fixtures-bundle nelmio/alice
# now, you can generate fixtures (this will reset your database) # now, you can generate fixtures (this will reset your database)
symfony console doctrine:fixtures:load symfony console doctrine:fixtures:load
@ -192,7 +192,7 @@ Add web profiler and debugger
.. code-block:: bash .. code-block:: bash
composer require --dev symfony/web-profiler-bundle symfony/var-dumper symfony composer require --dev symfony/web-profiler-bundle symfony/var-dumper
Working on chill bundles Working on chill bundles
************************ ************************
@ -207,12 +207,13 @@ In your :code:`composer.json` file, add these lines:
{ {
"config": { "config": {
+ "preferred-install": { + "preferred-install": {
+ "chill-project/chill-bundles": "source", + "chill-project/chill-bundles": "source",
"*": "dist"
+ } + }
} }
Then, run :code:`composer update` to take changes into account. Then, run :code:`symfony composer reinstall chill-project/chill-bundles` to re-install the package from source.
Code style, code quality and other tools Code style, code quality and other tools
**************************************** ****************************************
@ -230,7 +231,7 @@ If multiple developers work on a project, you can commit your symfony project an
When another developer clones your project, they will have to: When another developer clones your project, they will have to:
- run :code:`composer install` and :code:`yarn install` to install the same dependencies as the initial developer; - run :code:`symfony composer install` and :code:`yarn install` to install the same dependencies as the initial developer;
- run :code:`yarn run encore production` to compile assets; - run :code:`yarn run encore production` to compile assets;
- copy any possible variables from the :code:`.env.local` files; - copy any possible variables from the :code:`.env.local` files;
- start the docker compose stack, using :code:`docker compose`, and run migrations, set up transports, and prepare chill db views - start the docker compose stack, using :code:`docker compose`, and run migrations, set up transports, and prepare chill db views
@ -242,7 +243,7 @@ Update
In order to update your app, you must update dependencies: In order to update your app, you must update dependencies:
- for chill-bundles, you can `set the last version <https://gitlab.com/Chill-Projet/chill-bundles/-/releases>`_ manually - for chill-bundles, you can `set the last version <https://gitlab.com/Chill-Projet/chill-bundles/-/releases>`_ manually
in the :code:`composer.json` file, or set the version to `^3.0.0` and run :code:`composer update` regularly in the :code:`composer.json` file, or set the version to `^3.0.0` and run :code:`symfony composer update` regularly
- run :code:`composer update` and :code:`yarn update` to maintain your dependencies up-to-date. - run :code:`composer update` and :code:`yarn update` to maintain your dependencies up-to-date.
After each update, you must update your database schema: After each update, you must update your database schema: