"Bootstrapez" votre projet WordPress
et tout ce qui va bien dedans
(theme, plugins, tools, workflow et bien d'autres…)
en quelques secondes !
MONS WORDPRESS MEETUP - OCTOBRE 2016
EPIC
Me
Thierry MICHEL, belge, plus tout jeune,
presque 20 ans de web…
Après quelques années comme formateur,
je suis de retour IRL
pour dresser des pixels chez
EPIC,
une valeureuse agence digitale
et créative !
(but it's up to you)
more and
more and
(sorry, dudes)
Standardization
Reliability
Maintenability & scalability
epic:generator
⊢ setup:subgenerator
∟ serveur, env variables, readme
⊢ coding:subgenerator
∟ editor config, linters
⊢ wordpress:subgenerator (optional)
∟ wp-epic:repo
∟ download, config, install - core, plugins, theme
⊢ database:subgenerator (optional)
∟ create DB
⊢ bootstrap:subgenerator (optional)
∟ bootstrap-epic:repo
∟ scaffolding, libs, shared, partials, mixins, extends, …
⊢ gulp:subgenerator
∟ gulp-epic:repo
∟ workflow with shared breakpoints, Sass, autoprefixr,
Browserify, Babel, stripDebug
concatenation, minification, sourcemaps,
images optimization, SVG sprite,
browsersync, build with revision, …
∟ git:subgenerator (optional)
∟ git remote config + .gitignore + Gitlab CI :)
johnpbloch/wordpress
+
public / licensed / private plugins (wpackagist, gitlab)
$ wp core download (via composer)
$ wp core config
$ wp core install
$ wp option update siteurl <%= wpURL %>/wp
$ wp theme install ./tmp/wordpress/<%= themeName %>.zip --activate',
$ wp plugin activate --all
$ wp theme delete $(wp theme list --status=inactive --field=name)
-----
$ wp search-replace --url="<%= wpURLFrom %>"
"<%= domainFrom %>" "<%= domainTo %>" --all-tables
path: <%= wpRoot %>
url: <%= wpURL %>
core config:
dbuser: <%= dbUser %>
dbpass: <%= dbPassword %>
dbname: <%= dbName %>
dbhost: <%= dbHost %>
extra-php: |
/*
* Constante environnement
*/
if( isset ($_SERVER['APPLICATION_ENV']) ) {
define('APPLICATION_ENV', $_SERVER['APPLICATION_ENV']);
} else {
define('APPLICATION_ENV', 'dev');
}
if ( APPLICATION_ENV === 'dev' ) {
define( 'WP_DEBUG', true );
} else {
define( 'WP_DEBUG', false );
}
core install:
title: <%= wpTitle %>
admin_user: <%= wpUser%>
admin_password: <%= wpPassword %>
admin_email: <%= wpEmail %>
skip-email: true
WP Multisite
Gitlab API
Repositories CI (continuous improvement)
Browserify vs Google closure compiler
Vue.js
Yarn?, …
(before hitting the road … again)
Let's drink a beer
and keep in touch
#sharethespeed