mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-30 09:10:38 +02:00
Moved views out of resources folder and removed pre-compiled resouces from release artifacts
This commit is contained in:
9
Makefile
9
Makefile
@@ -20,15 +20,18 @@ test: # Run coding standards/static analysis checks and tests
|
||||
tunnel: # Expose the application via secure tunnel
|
||||
@ngrok http -host-header=rewrite http://directory-lister.local:80
|
||||
|
||||
clear-assets: # Clear the compiled assets
|
||||
@rm app/assets/* -rfv
|
||||
|
||||
clear-cache: # Clear the application cache
|
||||
@rm app/cache/* -rfv
|
||||
|
||||
tar: # Generate tarball
|
||||
@tar --verbose --create --gzip --exclude-vcs --exclude app/cache/* \
|
||||
@tar --verbose --create --gzip --exclude-vcs --exclude app/cache/* --exclude app/resources \
|
||||
--file artifacts/$(ARTIFACT_NAME).tar.gz $(ARTIFACT_FILES)
|
||||
|
||||
zip: # Generate zip file
|
||||
@zip --exclude "*.git*" --exclude "app/cache/**" \
|
||||
@zip --verbose --exclude "*.git*" "app/cache/**" "app/resources/*" \
|
||||
--recurse-paths artifacts/$(ARTIFACT_NAME).zip $(ARTIFACT_FILES)
|
||||
|
||||
artifacts: production tar zip # Generate release artifacts
|
||||
artifacts: clear-assets production tar zip # Generate release artifacts
|
||||
|
1
app/assets/.gitignore
vendored
1
app/assets/.gitignore
vendored
@@ -1,3 +1,2 @@
|
||||
*
|
||||
!/images/
|
||||
!.gitignore
|
||||
|
BIN
app/resources/images/favicon.dark.png
Normal file
BIN
app/resources/images/favicon.dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
app/resources/images/favicon.light.png
Normal file
BIN
app/resources/images/favicon.light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
@@ -50,7 +50,7 @@ class TwigProvider
|
||||
*/
|
||||
public function __invoke(): void
|
||||
{
|
||||
$twig = new Twig(new FilesystemLoader('app/resources/views'));
|
||||
$twig = new Twig(new FilesystemLoader('app/views'));
|
||||
|
||||
$twig->getEnvironment()->setCache(
|
||||
$this->config->get('view.cache', 'app/cache/views')
|
||||
|
@@ -15,6 +15,8 @@ mix.sass('app/resources/sass/app.scss', 'app/assets/app.css').options({
|
||||
|
||||
mix.js('app/resources/js/app.js', 'app/assets/app.js');
|
||||
|
||||
mix.copyDirectory('app/resources/images', 'app/assets/images');
|
||||
|
||||
mix.copyDirectory(
|
||||
'node_modules/@fortawesome/fontawesome-free/webfonts',
|
||||
'app/assets/webfonts'
|
||||
|
Reference in New Issue
Block a user