Closed neojp closed 7 years ago
Let's refactor our theme to bring the latest tools and ideas we have been using in our latest projects.
WDG
menu_class
get_template_part
Theme
functions.php
WP Widgets
WDG::add_body_class()
WDG::register_style()
WDG::register_script()
NPM script tasks
vendor
ES6
ES6 modules
Let's refactor our theme to bring the latest tools and ideas we have been using in our latest projects.
PHP
WDG
classmenu_class
is being repeated twiceget_template_part
Theme
class to its own file, reference it infunctions.php
WP Widgets
are being properly included and registered by defaultWDG::add_body_class()
WDG::register_style()
&WDG::register_script()
to include the version numberMarkup
Build pipeline
NPM script tasks
rather than installing global Build Task Runnersvendor
to its own taskCSS
JavaScript
ES6
andES6 modules
(tree shaking support) with RollupLinting
Docs