Skip to content

Commit

Permalink
Shorten regenerate node-sources command syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Feb 26, 2015
1 parent e2e8ce4 commit 351daef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions intro/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ For this you will need to install the testing framework, this can easily be done

.. code-block:: console
composer update-dev
composer update
The unit tests can be launched by the command:

.. code-block:: console
./vendor/bin/phpunit -v --bootstrap=tests/bootstrap.php tests/
bin/phpunit -v --bootstrap=tests/bootstrap.php tests/
If your are writing a feature, don't forget to write a unit test for it. You can find some example in the folder ``tests``.

Expand All @@ -43,11 +43,11 @@ You can copy and paste the following command-lines to check easily:

.. code-block:: console
./vendor/bin/phpcs --report=full --report-file=./report.txt \
--extensions=php --warning-severity=0 \
--standard=PSR2 \
--ignore=*/node_modules/*,*/.AppleDouble,*/vendor/*,*/cache/*,*/gen-src/*,*/Tests/* \
-p ./
bin/phpcs --report=full --report-file=./report.txt \
--extensions=php --warning-severity=0 \
--standard=PSR2 \
--ignore=*/node_modules/*,*/.AppleDouble,*/vendor/*,*/cache/*,*/gen-src/*,*/tests/*,*/bin/* \
-p ./
Please take those rules into account, we aim to have a clean codebase. A coherent codestyle will contribute to Roadiz stability.
Your code will be checked when we’ll consider your pull requests.
2 changes: 1 addition & 1 deletion intro/moving.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ When you’ve edited your ``conf/config.yml`` file, regenerate your entities sou

.. code-block:: bash
bin/roadiz core:node-types --regenerateAllEntities;
bin/roadiz core:sources --regenerate;
Now you can perform a schema update without losing your nodes data

Expand Down
4 changes: 2 additions & 2 deletions intro/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ Use *Composer* to update dependancies
composer update -n --no-dev;
In order to avoid losing sensible node-sources data. You should
regenerate your node-types entities files:
regenerate your node-source entities classes files:

.. code-block:: bash
bin/roadiz core:node-types --regenerateAllEntities;
bin/roadiz core:sources --regenerate;
Then run database schema update, first review migration details
to see if no data will be removed:
Expand Down

0 comments on commit 351daef

Please sign in to comment.