Skip to content

Commit

Permalink
Add shortcut for building static content for landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd committed Feb 2, 2024
1 parent 824f2da commit 7772110
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/landing/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.env.local
build/
vendor/
var/
public/assets
public/assets
Empty file added src/web/landing/build/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions src/web/landing/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
},
"config": {
"allow-plugins": {
"php-http/discovery": false,
"symfony/runtime": true
}
},
Expand All @@ -41,6 +42,10 @@
"@assets:clear",
"bin/console tailwind:build",
"bin/console asset-map:compile"
],
"page:build": [
"bin/console static-content-generator:generate:routes",
"bin/console static-content-generator:copy:assets -d assets"
]
}
}
2 changes: 2 additions & 0 deletions src/web/landing/config/packages/static_content_generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
static_content_generator:
output_directory: "%kernel.project_dir%/build"

0 comments on commit 7772110

Please sign in to comment.