.. include:: ../Includes.txt .. _develop: =========== Development =========== Work with site ============== Installation ------------ #. Clone the repository .. code-block:: bash git clone https://github.com/buepro/typo3-grevman.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:delete Create tests ============ Create test db -------------- .. rst-class:: bignums #. Export db using preset **grevman-test-static** #. Remove the `header`-tag #. Rename the `T3RecordDocument` to `dataset` #. Remove `records`-tag #. Remove the following tags: `lockToDomain`-, `disableIPlock`, `createdbyaction`, `usergroup_cached_list`, `t3ver_.*?`, `legacy_overlay_uid`, `sitetitle` .. code-block:: bash <[TagName]>.*?\n\s* #. 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 #. Create columns tag using the following regular expression **Search:** .. code-block:: bash