first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
DB_NAME='wordpress'
|
||||
DB_USER='root'
|
||||
DB_PASSWORD='password'
|
||||
|
||||
# Optionally, you can use a data source name (DSN)
|
||||
# When using a DSN, you can remove the DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST variables
|
||||
# DATABASE_URL='mysql://database_user:database_password@database_host:database_port/database_name'
|
||||
|
||||
# Optional database variables
|
||||
DB_HOST='mariadb:3306'
|
||||
# DB_PREFIX='wp_'
|
||||
|
||||
WP_ENV='development'
|
||||
WP_HOME='https://localhost'
|
||||
WP_SITEURL="${WP_HOME}/wp"
|
||||
|
||||
# Specify optional debug.log path
|
||||
# WP_DEBUG_LOG='/path/to/debug.log'
|
||||
|
||||
# Generate your keys here: https://roots.io/salts.html
|
||||
AUTH_KEY='5>dGYuaw99)JE07_[yynF9fU%<6^Erck:M624#IDTGAf2#*?:offvHD(-1)E((=}'
|
||||
SECURE_AUTH_KEY='[]w#?SF3eWvt=)g%[Jr<`zNYe,q:v{R<vD^qzyfJV1[T403Z$N;4mwn1uQpItF]<'
|
||||
LOGGED_IN_KEY='#IF#OjR2Za7,6=M8m`{:k^k.x@uT5Uv{wA!DuX$!GmyDQ/4l[eGR$R4xKzwb_2|)'
|
||||
NONCE_KEY='c/S[x@|I?D=xuUMWZ6Ry2,myJEJ!y^Ah&t205{jx|vNvOkF:s[B(RJj$H6Y|mS3?'
|
||||
AUTH_SALT='F>2:thG6Td;98S}.Fq5(!2t(R|n0mXU#2%&A{^;EN_GUCs_}ma|jQ&k]Y+/7)g3U'
|
||||
SECURE_AUTH_SALT='[E}ZJfwaKeJ*GnjyD:UN(|lrF`uHcmIJVu+Qusbl!_aXl4!+PUM%7O6;q4;S(Q7V'
|
||||
LOGGED_IN_SALT=',dvcC]!(9l4XDVt.?a%RJC%0`A[|hf>UjqOol_fk^N%6Ori2hF9cX/%wKsRN_6%f'
|
||||
NONCE_SALT='?tXJ#$rYP*]iB|i!MsYaf*erF=.AU;wFyl%XK7yA2AKIl5gYmVy)rwg`&u[^h.vf'
|
||||
@@ -0,0 +1,10 @@
|
||||
FROM php:8.1-fpm-alpine
|
||||
|
||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/install-php-extensions && \
|
||||
install-php-extensions mysqli exif imagick zip memcached opcache redis intl xdebug && \
|
||||
echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
|
||||
echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
|
||||
RUN apk add --update nodejs npm
|
||||
WORKDIR /app/public
|
||||
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Compiler configuration
|
||||
*
|
||||
* @see {@link https://roots.io/docs/sage sage documentation}
|
||||
* @see {@link https://bud.js.org/guides/configure bud.js configuration guide}
|
||||
*
|
||||
* @param {import('@roots/bud').Bud} app
|
||||
*/
|
||||
export default async (app) => {
|
||||
/**
|
||||
* Application assets & entrypoints
|
||||
*
|
||||
* @see {@link https://bud.js.org/docs/bud.entry}
|
||||
* @see {@link https://bud.js.org/docs/bud.assets}
|
||||
*/
|
||||
app
|
||||
.entry('app', ['@scripts/app', '@styles/app'])
|
||||
.entry('editor', ['@scripts/editor', '@styles/editor'])
|
||||
.assets(['images']);
|
||||
|
||||
/**
|
||||
* Set public path
|
||||
*
|
||||
* @see {@link https://bud.js.org/docs/bud.setPublicPath}
|
||||
*/
|
||||
app.setPublicPath('/app/themes/sage/public/');
|
||||
|
||||
/**
|
||||
* Development server settings
|
||||
*
|
||||
* @see {@link https://bud.js.org/docs/bud.setUrl}
|
||||
* @see {@link https://bud.js.org/docs/bud.setProxyUrl}
|
||||
* @see {@link https://bud.js.org/docs/bud.watch}
|
||||
*/
|
||||
app
|
||||
.setUrl('http://localhost')
|
||||
.setProxyUrl('http://example.test')
|
||||
.watch(['resources/views', 'app']);
|
||||
|
||||
/**
|
||||
* Generate WordPress `theme.json`
|
||||
*
|
||||
* @note This overwrites `theme.json` on every build.
|
||||
*
|
||||
* @see {@link https://bud.js.org/extensions/sage/theme.json}
|
||||
* @see {@link https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-json}
|
||||
*/
|
||||
app.wpjson
|
||||
.set('settings.color.custom', false)
|
||||
.set('settings.color.customDuotone', false)
|
||||
.set('settings.color.customGradient', false)
|
||||
.set('settings.color.defaultDuotone', false)
|
||||
.set('settings.color.defaultGradients', false)
|
||||
.set('settings.color.defaultPalette', false)
|
||||
.set('settings.color.duotone', [])
|
||||
.set('settings.custom.spacing', {})
|
||||
.set('settings.custom.typography.font-size', {})
|
||||
.set('settings.custom.typography.line-height', {})
|
||||
.set('settings.spacing.padding', true)
|
||||
.set('settings.spacing.units', ['px', '%', 'em', 'rem', 'vw', 'vh'])
|
||||
.set('settings.typography.customFontSize', false)
|
||||
.useTailwindColors()
|
||||
.useTailwindFontFamily()
|
||||
.useTailwindFontSize()
|
||||
.enable();
|
||||
};
|
||||
Reference in New Issue
Block a user