Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ services:
# User random static high port for database connection.
portforward: 34567
appserver:
build_as_root:
# To be able to run ESLint with GrumPHP, we need Node.js on appserver.
- "apt-get update"
- "apt-get install -y nodejs"
Copy link
Member

@tormi tormi Oct 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would avoid such things in a template - they slow down the build time. Perhaps we should consider using custom PHP images instead with nodejs included?

# Install dependencies when building lando.
build:
- "composer install"
Expand Down
3 changes: 3 additions & 0 deletions grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ grumphp:
# PHPUnit will fail with 0 tests.
phpunit:
testsuite: unit
eslint:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's consider other options as well like using Husky via node service.

bin: 'node_modules/.bin/eslint'
config: 'web/core/.eslintrc.passing.json'
extensions:
- Wunderio\GrumPHP\Task\PhpCompatibility\PhpCompatibilityExtensionLoader
- Wunderio\GrumPHP\Task\PhpCheckSyntax\PhpCheckSyntaxExtensionLoader
Expand Down
Loading