Skip to content

Commit

Permalink
add helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jan 20, 2021
1 parent fd47076 commit e66204c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions aemdesign-aem-compose/content-generator/generate.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Param(
[string]$LOG_PATH = "${PWD}\..\logs",
[string]$LOG_PEFIX = "${LOG_PATH}\generate-content",
[string]$LOG_SUFFIX = ".log",
[string]$DOCKER_LOGS_FOLDER = "${PWD}\..\logs\docker",
[switch]$DEBUG = $false,
[string]$COMMAND = "node generator.js --no-color --no-clean --no-console --config=core.yml "
)

$script:SKIP_CONFIG = $true

. "..\..\scripts\functions.ps1"

if ($DEBUG) {
$script:COMMAND = "$COMMAND --debug"
}

$script:LOG_PATH = $LOG_PATH
$script:TEST_SELENIUM_URL = $TEST_SELENIUM_URL

printSectionBanner "Generating Tags"

Invoke-Expression -Command "$COMMAND" | Tee-Object -Append -FilePath "${LOG_FILENAME}"

0 comments on commit e66204c

Please sign in to comment.