.. include:: /Includes.rst.txt
.. _develop:
=======
Develop
=======
Work with site
==============
Installation
------------
#. Clone the repository
.. code-block:: bash
git clone https://github.com/buepro/typo3-pizpalue.git
#. Create site
.. code-block:: bash
composer ddev:install
Development
-----------
Use the ddev container during development. Like this the system environment
is being respected. E.g.:
.. code-block:: bash
ddev composer update
Uninstallation
--------------
To remove the development site use:
.. code-block:: bash
composer ddev:uninstall
Create tests
============
Create test db
--------------
.. rst-class:: bignums
#. Export db using preset "Test"
#. Rename the `T3RecordDocument` to `dataset`
#. Remove the `header`-tag
#. Remove `files_fal`-tag
#. Remove `records`-tag
#. Remove `related`-tag using the following regular expression
.. code-block:: bash
[\w\W\s]*?\n
#. Create table tags using the following regular expression
**Search:**
.. code-block:: bash
[\n\s]+([\w\W\s]+?)<\/fieldlist>[\n\s]*<\/tablerow>
**Replace:**
.. code-block:: bash
<$1>$2$1>
#. Create columns tag using the following regular expression
**Search:**
.. code-block:: bash
([\w\W]*?)
**Replace:**
.. code-block:: bash
<$1>$2$1>
#. Remove columns `lang` and `mfa` from table `be_users`
Add needed extensions
---------------------
It might be needed to add the following extensions:
.. code-block:: php
protected $coreExtensionsToLoad = [
'impexp',
'seo',
];
.. code-block:: php
protected $testExtensionsToLoad = [
'typo3conf/ext/pvh',
'typo3conf/ext/container',
'typo3conf/ext/container_elements',
'typo3conf/ext/bootstrap_package',
'typo3conf/ext/pizpalue',
];
Notes
=====
- Bootstrap package sync status:
- Branch BP-12.0: 22.04.2022 / commit 16734ba6
- Branch BP-12.1: 26.11.2021 / commit 028a786b