Skip to content

Commit

Permalink
Feature/update 2024 (#1)
Browse files Browse the repository at this point in the history
* Update stuff

* Update packages

* Fix styles

* Update to symfony 7, fix multiple small issues, update some stuff whatever

* Add vue stuff

* Fix vue loading on homepage

* Add mascot component, store, saving to memory and more

* Add more vue stuff

* Update vue stuff, add apis

* Update vue stuff

* Update gitignore

* Update php version

* Add npm install steps in ci workflow
  • Loading branch information
pkly authored Feb 12, 2024
1 parent ed4bd8d commit b8efb88
Show file tree
Hide file tree
Showing 85 changed files with 12,313 additions and 15,725 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}
12 changes: 11 additions & 1 deletion .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@ jobs:

- uses: php-actions/composer@v5
with:
php_version: 8.1
php_version: 8.3

- uses: actions/setup-node@v4
with:
node-version: 'lts'

- name: Install NPM packages
run: npm install

- name: Build VUE application
run: npm run build-only

- name: Build image
run: docker build --build-arg=COMMIT=$(git rev-parse --short HEAD) . --file $DOCKERFILE_PATH --tag $IMAGE_NAME
Expand Down
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,37 @@ node_modules
/.php-cs-fixer.php
/.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ###


# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

/public/vue/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
72 changes: 31 additions & 41 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,49 +17,39 @@

return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'no_superfluous_phpdoc_tags' => false,
'ternary_to_null_coalescing' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'@Symfony' => true,
'blank_line_before_statement' => [
'statements' => [
'declare',
'return',
'throw',
'try',
'if',
'for',
'while',
'foreach',
],
],
'cast_spaces' => ['space' => 'none'],
'constant_case' => ['case' => 'lower'],
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'phpdoc_align' => false,
'single_line_throw' => false,
'yoda_style' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
'array_indentation' => true,
'no_unused_imports' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'single_line_after_imports' => true,
'single_import_per_statement' => true,
'blank_line_after_opening_tag' => true,
'compact_nullable_typehint' => true,
'clean_namespace' => true,
'cast_spaces' => ['space' => 'single'],
'constant_case' => ['case' => 'lower'],
'full_opening_tag' => true,
'indentation_type' => true,
'lowercase_cast' => true,
'native_function_casing' => true,
'no_alternative_syntax' => true,
'new_with_braces' => true,
'no_empty_statement' => true,
'no_blank_lines_after_phpdoc' => true,
'no_closing_tag' => true,
'no_short_bool_cast' => true,
'no_trailing_whitespace' => true,
'no_unset_cast' => true,
'phpdoc_align' => ['align' => 'left'],
'phpdoc_indent' => true,
'phpdoc_annotation_without_dot' => true,
'phpdoc_trim' => true,
'single_blank_line_at_eof' => true,
'short_scalar_cast' => true,
'single_class_element_per_statement' => true,
'return_type_declaration' => ['space_before' => 'none'],
'visibility_required' => true,
'PedroTroller/line_break_between_method_arguments' => ['max-args' => false, 'max-length' => 1, 'automatic-argument-merge' => false],
'blank_line_before_statement' => true,
'phpdoc_to_comment' => false,
'phpdoc_types_order' => false,
'phpdoc_scalar' => false,
'phpdoc_types' => false,
'increment_style' => false,
'ordered_class_elements' => true,
'nullable_type_declaration_for_default_null_value' => false,
'nullable_type_declaration' => ['syntax' => 'union'],
'ordered_types' => ['sort_algorithm' => 'none', 'null_adjustment' => 'always_last'],
'PedroTroller/line_break_between_method_arguments' => [
'max-args' => false,
'max-length' => 1,
'automatic-argument-merge' => false,
'inline-attributes' => true,
],
])
->setFinder($finder)
->registerCustomFixers(new PedroTroller\CS\Fixer\Fixers())
Expand Down
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
83 changes: 37 additions & 46 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,63 +4,54 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^8.1",
"php": "^8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-simplexml": "*",
"ext-mbstring": "*",
"composer/package-versions-deprecated": "1.11.99.4",
"doctrine/annotations": "^1.0",
"doctrine/doctrine-bundle": "^2.5",
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.10",
"easycorp/easyadmin-bundle": "^4.0",
"phpdocumentor/reflection-docblock": "^5.3",
"sensio/framework-extra-bundle": "^6.2",
"symfony/asset": "5.4.*",
"symfony/console": "5.4.*",
"symfony/dotenv": "5.4.*",
"symfony/expression-language": "5.4.*",
"symfony/flex": "^1.17",
"symfony/form": "5.4.*",
"symfony/framework-bundle": "5.4.*",
"symfony/http-client": "5.4.*",
"symfony/intl": "5.4.*",
"symfony/mailer": "5.4.*",
"symfony/mime": "5.4.*",
"symfony/monolog-bundle": "^3.1",
"symfony/notifier": "5.4.*",
"symfony/process": "5.4.*",
"symfony/property-access": "5.4.*",
"symfony/property-info": "5.4.*",
"symfony/proxy-manager-bridge": "5.4.*",
"symfony/runtime": "5.4.*",
"symfony/security-bundle": "5.4.*",
"symfony/serializer": "5.4.*",
"symfony/string": "5.4.*",
"symfony/translation": "5.4.*",
"symfony/twig-bundle": "5.4.*",
"symfony/validator": "5.4.*",
"symfony/web-link": "5.4.*",
"symfony/yaml": "5.4.*",
"twig/extra-bundle": "^2.12|^3.0",
"twig/twig": "^2.12|^3.0"
"symfony/asset": "7.0.*",
"symfony/console": "7.0.*",
"symfony/dotenv": "7.0.*",
"symfony/expression-language": "7.0.*",
"symfony/flex": "^2",
"symfony/form": "7.0.*",
"symfony/framework-bundle": "7.0.*",
"symfony/http-client": "7.0.*",
"symfony/intl": "7.0.*",
"symfony/mime": "7.0.*",
"symfony/monolog-bundle": "^3",
"symfony/notifier": "7.0.*",
"symfony/process": "7.0.*",
"symfony/property-access": "7.0.*",
"symfony/property-info": "7.0.*",
"symfony/runtime": "7.0.*",
"symfony/security-bundle": "7.0.*",
"symfony/serializer": "7.0.*",
"symfony/string": "7.0.*",
"symfony/translation": "7.0.*",
"symfony/twig-bundle": "7.0.*",
"symfony/validator": "7.0.*",
"symfony/web-link": "7.0.*",
"symfony/yaml": "7.0.*",
"twig/extra-bundle": "^3.0",
"twig/twig": "^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3",
"pedrotroller/php-cs-custom-fixer": "^2",
"phpstan/phpstan": "^1.2",
"phpunit/phpunit": "^9.5",
"psalm/plugin-symfony": "^2.5.1",
"symfony/browser-kit": "5.4.*",
"symfony/css-selector": "5.4.*",
"symfony/debug-bundle": "5.4.*",
"phpstan/phpstan": "^1",
"phpunit/phpunit": "^10",
"psalm/plugin-symfony": "^5",
"symfony/browser-kit": "7.0.*",
"symfony/debug-bundle": "7.0.*",
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "^5.3",
"symfony/stopwatch": "5.4.*",
"symfony/web-profiler-bundle": "5.4.*",
"vimeo/psalm": "^4.13.1",
"weirdan/doctrine-psalm-plugin": "^1.1.0"
"symfony/stopwatch": "7.0.*",
"symfony/web-profiler-bundle": "7.0.*",
"vimeo/psalm": "^5",
"weirdan/doctrine-psalm-plugin": "^2"
},
"config": {
"optimize-autoloader": true,
Expand Down Expand Up @@ -114,7 +105,7 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.4.*"
"require": "7.0.*"
}
}
}
Loading

0 comments on commit b8efb88

Please sign in to comment.