-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2.5.0' into craft-vite
- Loading branch information
Showing
12 changed files
with
471 additions
and
87 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
{# -- Root global variables that all templates inherit from -- #} | ||
{# -- This allows for defining site-wide Twig variables as needed -- #} | ||
{# | ||
┌─────────────────────────────────────────────────────────────────────────────┐ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ htmlPage │ | ||
└─────────────────────────────────────────────────────────────────────────────┘ | ||
#} | ||
{% spaceless %} | ||
{% spaceless %}{# -- Root global variables that all templates inherit from -- #} | ||
{# -- This allows for defining site-wide Twig variables as needed -- #} | ||
{# | ||
┌─────────────────────────────────────────────────────────────────────────────┐ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ htmlPage │ | ||
└─────────────────────────────────────────────────────────────────────────────┘ | ||
#} | ||
|
||
{# -- Prefetch & preconnect headers and links -- #} | ||
{% set prefetchUrls = [ | ||
alias("@assetsUrl"), | ||
] %} | ||
{# -- General global variables -- #} | ||
{% set baseUrl = alias('@assetsUrl') ~ '/' %} | ||
{% set gaTrackingId = getenv('GA_TRACKING_ID') %} | ||
|
||
{# -- Twig output from the render; this must be in a block -- #} | ||
{% block htmlPage %} | ||
{% endblock %} | ||
{# -- Prefetch & preconnect headers and links -- #} | ||
{% set prefetchUrls = [ | ||
alias("@assetsUrl"), | ||
] %} | ||
{# -- General global variables -- #} | ||
{% set baseUrl = alias('@assetsUrl') ~ '/' %} | ||
{% set gaTrackingId = getenv('GA_TRACKING_ID') %} | ||
|
||
{% endspaceless %} | ||
{# -- Twig output from the render; this must be in a block -- #} | ||
{% endspaceless %}{% block htmlPage %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# NPM Install shell script | ||
# | ||
# This shell script runs `npm install` if either the `package-lock.json` file or | ||
# the `node_modules/` directory is not present` | ||
# | ||
# @author nystudio107 | ||
# @copyright Copyright (c) 2022 nystudio107 | ||
# @link https://nystudio107.com/ | ||
# @license MIT | ||
|
||
cd /var/www/project/buildchain | ||
if [ ! -f "package-lock.json" ] || [ ! -d "node_modules" ]; then | ||
npm install | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Composer Install shell script | ||
# | ||
# This shell script runs `composer install` if either the `composer.lock` file or | ||
# the `vendor/` directory is not present` | ||
# | ||
# @author nystudio107 | ||
# @copyright Copyright (c) 2022 nystudio107 | ||
# @link https://nystudio107.com/ | ||
# @license MIT | ||
|
||
cd /var/www/project/cms | ||
if [ ! -f "composer.lock" ] || [ ! -d "vendor" ]; then | ||
su-exec www-data composer install --verbose --no-progress --no-scripts --optimize-autoloader --no-interaction | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters