My WordPress Build https://wp.davidwindham.com
|
4 years ago | |
---|---|---|
app | 5 years ago | |
tests | 11 years ago | |
wp @ da04189357 | 4 years ago | |
.editorconfig | 5 years ago | |
.env.example | 5 years ago | |
.gitignore | 5 years ago | |
.gitmodules | 5 years ago | |
.gitmodules.extra | 11 years ago | |
.gitmodules.remote | 11 years ago | |
.htaccess | 5 years ago | |
.jshintignore | 11 years ago | |
.jshintrc | 9 years ago | |
.travis.yml | 9 years ago | |
Gruntfile.js | 10 years ago | |
README.md | 5 years ago | |
_install.sh | 5 years ago | |
composer.json | 5 years ago | |
composer.lock | 4 years ago | |
config.yml | 11 years ago | |
index-wp-redis.php | 11 years ago | |
index.php | 5 years ago | |
package-lock.json | 5 years ago | |
package.json | 5 years ago | |
phpunit.xml.dist | 5 years ago | |
wp-cli.yml | 5 years ago | |
wp-config-sample.php | 5 years ago |
Git'ing My WordPress Workflow, so i'm machindependent.
ca·ve·at git·mptor: do not clone ( build your own )
2006 - ( v 0.1.0 ) Modern WordPress workflow ala develop.svn.wordpress.org & https://github.com/koop/develop with an enviroment that's easy to replicate between machines.
2020 - ( Updated v 0.2.0 ) Inspiration from Develop-Wordpress, Roots, Square-One, & Laravel. Trying to use the smallest dev footprint possible closely matching the WordPress core workflow alongside of a full suite of development tools. Prefer to use Git version of Wordpress to enable switching versions quickly. Prefer using Composer for plugins to avoid git submodule hell.
Wordpress, Node, NPM, Grunt, Composer, Travis CI
$ git clone git@github.com:windhamdavid/wp.git
$ npm install
$ git submodule update --init --recursive
$ cd wp
$ git git fetch --tags && git checkout 5.3.2(WordPress version you'd like)
$ cd ..
$ composer update
$ npm run dev
/* you know the drill */
setup tests add rsync have fun
Clean up old submodules.
# Remove the submodule entry from .git/config
git submodule deinit -f path/to/submodule
# Remove the submodule directory from the superproject's .git/modules directory
rm -rf .git/modules/path/to/submodule
# Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule
git rm -f path/to/submodule
[submodule "app/themes/_s"]
path = app/themes/_s
url = https://github.com/Automattic/_s.git
[submodule "app/plugins/vip-scanner"]
path = app/plugins/vip-scanner
url = https://github.com/Automattic/vip-scanner.git
[submodule "app/plugins/developer"]
path = app/plugins/developer
url = https://github.com/Automattic/developer.git
[submodule "app/plugins/wp-redis-cache"]
path = app/plugins/wp-redis-cache
url = https://github.com/windhamdavid/wp-redis-cache.git
[submodule "app/plugins/wp-debug-bar"]
path = app/plugins/wp-debug-bar
url = https://github.com/brandwaffle/wp-debug-bar.git
[submodule "app/plugins/debug-bar-slow-actions"]
path = app/plugins/debug-bar-slow-actions
url = https://github.com/kovshenin/debug-bar-slow-actions.git
[submodule "app/plugins/WP-API"]
path = app/plugins/WP-API
url = https://github.com/WP-API/WP-API.git