Skip to content
Milan Felix Šulc edited this page Oct 18, 2016 · 3 revisions

Contributing

Back-end

  • Clone this repo (git@github.com:componette/componette.com.git)
  • Rename app/config/config.local.sample to config.local.neon and fill parameters
  • Create database and setup tables (and fixtures)
  • Run composer install

Front-end

  • Run npm install
  • Run gulp deploy

For developing you can use gulp watch, it's monitor every CSS and JS files in www/assets.

Linter

Make sure there are any PHP errors / warnings.

  • Run vendor/bin/parallel-lint app tests
  • Run bin/linter

Code Sniffer

Make sure you are not break a coding standards.

  • Run vendor/bin/phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 -nsp app tests
  • Run bin/codesniffer

Tests

Make sure you are not break a consistency.

  • Run vendor/bin/tester tests/cases -s -p php
  • Run bin/tester