Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioBlazek committed Jun 4, 2020
0 parents commit feb4366
Show file tree
Hide file tree
Showing 460 changed files with 17,986 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
### IDE files
.idea/

### Composer files
auth.json

### GIT files
.git
# Skipped as it makes build very slow and since it is needed by composer when working on dev branches
#vendor/*/*/.git

### Symfony template
# Cache and logs (Symfony2)
app/cache/*
app/logs/*
!app/cache/.keep
!app/logs/.keep

# Email spool folder
app/spool/*

# Cache, session files and logs (Symfony3)
var/cache/*
var/logs/*
var/sessions/*
!var/cache/.gitkeep
!var/logs/.gitkeep
!var/sessions/.gitkeep

# Parameters (should be regenerated in container)
app/config/parameters.yml

# Managed by Composer
app/bootstrap.php.cache
var/bootstrap.php.cache
#bin/*
#!bin/console
#!bin/symfony_requirements

# Disabled as this is needed for dev setups unless we change dev to execute composer install automatically
#vendor/

# Assets and user uploads
web/bundles/
web/css/
web/js/
web/uploads/
web/fonts/

# Assets managed by Bower
web/assets/vendor/

# PHPUnit
app/phpunit.xml
phpunit.xml

# Build data
build/

# Composer PHAR
composer.phar

# Backup entities generated with doctrine:generate:entities command
*/Entity/*~

15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{js,jsx}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
32 changes: 32 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Allows us to set default values of env variables, see: https://docs.docker.com/compose/env-file/
COMPOSE_FILE=doc/docker/base-dev.yml
COMPOSE_DIR=.

# You'll need to adjust this for Windows and XDB Linux systems: https://getcomposer.org/doc/03-cli.md#composer-home
COMPOSER_HOME=~/.composer
COMPOSER_MEMORY_LIMIT=4G
DATABASE_USER=ezp
DATABASE_PASSWORD=SetYourOwnPassword
DATABASE_NAME=ezp

## Docker images (name and version)
PHP_IMAGE=ezsystems/php:7.3-v1
PHP_IMAGE_DEV=ezsystems/php:7.3-v1-dev
NGINX_IMAGE=nginx:stable
MYSQL_IMAGE=healthcheck/mariadb
SELENIUM_IMAGE=selenium/standalone-chrome-debug:3.141.59-oxygen
REDIS_IMAGE=healthcheck/redis

APP_DOCKER_FILE=doc/docker/Dockerfile-app

DATASET_VARDIR=my-ez-app

# Behat / Selenium config
## web host refer to the tip of the setup, so varnish if that is used.
WEB_HOST=web
SELENIUM_HOST=selenium

# Enable recommendations by setting valid id, key and uri
#RECOMMENDATIONS_CUSTOMER_ID=""
#RECOMMENDATIONS_LICENSE_KEY=""
#PUBLIC_SERVER_URI=""
42 changes: 42 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"extends": "airbnb",
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-len": 0,
"no-plusplus": 0,
"func-names": 0,
"no-unused-expressions": ["error", {
"allowShortCircuit": true,
"allowTernary": true
}
],
"no-param-reassign": ["error", {
"props": false
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"react/require-default-props": 0,
"react/forbid-prop-types": 0,
"react/jsx-filename-extension": 0,
"react/jsx-indent": 0,
"react/jsx-no-bind": 0,
"react/jsx-wrap-multilines": 0,
"react/no-array-index-key": 0,
"jsx-a11y/href-no-hash": 0
},
"plugins": [
"react",
"jsx-a11y",
"import"
],
"env": {
"browser": true,
"node": true
}
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web/build/app.css binary -merge
web/build/app.js binary -merge
60 changes: 60 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
.idea/
.sass-cache/
.tmp/
node_modules/
/bin/*
!bin/.ci/
!bin/.travis/
!bin/console
!bin/platformsh_prestart_cacheclear.sh
!bin/vhost.sh
!bin/sync_db_and_var.sh
/app/config/parameters.yml
/app/config/server/local/
/app/config/server/local.yml
/app/solr
/doc/docker/entrypoint/*/*.sql
/dfsdata
/extension/
/ezpublish_legacy/
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!/var/encore
/var/encore/*
!var/encore/.gitkeep
/vendor/
/web/assets/app/*
!/web/assets/app/build/
/web/assets/build/*
/web/assets/ezplatform/*
!/web/assets/ezplatform/build/
/web/bundles/
/web/design
/web/extension
/web/share
/web/var
/web/.htaccess
/web/index_treemenu.php
/web/index_rest.php
/web/index_cluster.php
/web/robots.txt
auth.json
behat.yml
composer.phar
ide-twig.json
package-lock.json
studio.json
yarn-error.log
.DS_Store
.php_cs.cache
.phpunit.result.cache
.web-server-pid
39 changes: 39 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,

// Overrides for rules included in PhpCsFixer rule sets
'concat_space' => ['spacing' => 'one'],
'method_chaining_indentation' => false,
'multiline_whitespace_before_semicolons' => false,
'native_function_invocation' => false,
'no_superfluous_phpdoc_tags' => false,
'php_unit_internal_class' => false,
'php_unit_set_up_tear_down_visibility' => false,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'php_unit_test_class_requires_covers' => false,
'phpdoc_align' => false,
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
'single_line_comment_style' => false,
'visibility_required' => ['elements' => ['property', 'method', 'const']],
'yoda_style' => false,

// Additional rules
'date_time_immutable' => true,
'declare_strict_types' => true,
'list_syntax' => ['syntax' => 'short'],
'mb_str_functions' => true,
'static_lambda' => true,
'ternary_to_null_coalescing' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['ezpublish_legacy'])
->in('src')
->append(['app/AppKernel.php'])
)
;
Loading

0 comments on commit feb4366

Please sign in to comment.