Skip to content

Experimental repository for DDEV + WordPress + timber v2 + LaravelMix (or vite) 👷

Notifications You must be signed in to change notification settings

mandrasch/ddev-wp-timber-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Timber v2 is currently in beta, see https://github.com/mandrasch/ddev-wp-timber-v1 for an example repository of the current stable version.


DDEV + WordPress + Timber v2 + LaravelMix / Vite

🚧 Work in progress, currently broken, see issue #135 🚧

See more experiments: https://my-ddev-lab.mandrasch.eu/

Setup for local development

Clone this repo, then:

ddev start
ddev wp core download
# Finish installation in browser:
ddev launch

# Jump into DDEV container to work in sub-dir
ddev ssh
cd wp-content/themes/timber-starter-theme
composer install
exit

ddev wp theme activate timber-starter-theme/theme
ddev launch

How was this created?

# https://ddev.readthedocs.io/en/stable/users/quickstart/#wp-cli

ddev config --project-type=wordpress
ddev start
ddev wp core download

# Finish install in browser
ddev launch

# https://timber.github.io/docs/v2
# jump into DDEV container to work with composer in sub-directory
ddev ssh
cd wp-content/themes/
composer create-project upstatement/timber-starter-theme:2.x-dev --no-dev
#TODO: why is --no-dev used in docs?
exit
# TODO: to be continued

ddev wp theme activate timber-starter-theme/theme

Added .gitignore afterwards to only track the child theme.

About

Experimental repository for DDEV + WordPress + timber v2 + LaravelMix (or vite) 👷

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages