Skip to content

Commit

Permalink
fix: YASSG common.mk doesn't pass YASSG_SKIP_BUNDLES (#135)
Browse files Browse the repository at this point in the history
* fix: YASSG common.mk doesn't pass YASSG_SKIP_BUNDLES

* fix: tests with YASSG_SKIP_BUNDLES

* fix: tests with YASSG_SKIP_BUNDLES
  • Loading branch information
dkarlovi authored Jun 13, 2023
1 parent 3182bc0 commit 389504f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/YASSG/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ start/dev: dev ## Start app in "dev" mode
dev: clean
@make dev/assets dev/server -j2
dev/server: vendor index.php
symfony server:start --no-tls --document-root=. --port=${APP_PORT}
YASSG_SKIP_BUNDLES=${YASSG_SKIP_BUNDLES} symfony server:start --no-tls --document-root=. --port=${APP_PORT}
dev/assets: node_modules
node_modules/.bin/encore dev-server
index.php:
ln -s vendor/sigwin/yassg/web/index.php

build: ${BUILD_DIR}/assets/entrypoints.json vendor ## Build app for "APP_ENV" target (defaults to "prod")
php vendor/sigwin/yassg/bin/yassg yassg:generate --env prod "$(BASE_URL)" ${BUILD_OPTS}
YASSG_SKIP_BUNDLES=${YASSG_SKIP_BUNDLES} php vendor/sigwin/yassg/bin/yassg yassg:generate --env prod "$(BASE_URL)" ${BUILD_OPTS}
.PHONY: build

${BUILD_DIR}:
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/YASSG/CompatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function getExpectedHelpCommandsExecutionPath(?array $env = null): arr
'mkdir -p public',
'npm install',
'BASE_URL=file://localhost$ROOT/public node_modules/.bin/encore production',
'php vendor/sigwin/yassg/bin/yassg yassg:generate --env prod "file://localhost$ROOT/public" ',
'YASSG_SKIP_BUNDLES= php vendor/sigwin/yassg/bin/yassg yassg:generate --env prod "file://localhost$ROOT/public" ',
];

$start = [
Expand Down Expand Up @@ -104,7 +104,7 @@ public function testDevServerWorks(): void
{
$this->testMakefileCommandsWork('dev/server', [
'ln -s vendor/sigwin/yassg/web/index.php',
'symfony server:start --no-tls --document-root=. --port=9988',
'YASSG_SKIP_BUNDLES= symfony server:start --no-tls --document-root=. --port=9988',
], []);
}

Expand Down

0 comments on commit 389504f

Please sign in to comment.