Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Refactor our theme #4

Closed
32 of 43 tasks
neojp opened this issue May 2, 2016 · 0 comments
Closed
32 of 43 tasks

Refactor our theme #4

neojp opened this issue May 2, 2016 · 0 comments
Assignees
Milestone

Comments

@neojp
Copy link
Contributor

neojp commented May 2, 2016

Let's refactor our theme to bring the latest tools and ideas we have been using in our latest projects.

PHP

  • Enforce WordPress coding standards / naming conventions for files and code. PHP_CodeSniffer
  • Refactor WDG class
    • Remove unused methods
    • Nav menus menu_class is being repeated twice
    • Throw better errors on get_template_part
  • Move Theme class to its own file, reference it in functions.php
  • New PHP classes
    • Attachment
    • Breadcrumb
      • Implement caching
      • Support default post, pages, search & archives
      • Support custom post types
      • Support custom taxonomies
    • Post Type
    • String
    • SVG
      • Implement caching
    • Taxonomy
    • Visual Grid
  • Make sure WP Widgets are being properly included and registered by default
  • Replace Nav walker to not use SUIT CSS class names
  • Fix WDG::add_body_class()
  • Fix WDG::register_style() & WDG::register_script() to include the version number
  • Docs on how to use OOP and each PHP class
  • PHPDoc on all classes and methods
  • Unit test each class method
  • Composer support

Markup

  • Remove lorempixel.com images

Build pipeline

  • Use local NPM script tasks rather than installing global Build Task Runners
  • Move towards Gulp
  • Deprecate Bower usage
  • Move vendor to its own task
  • Docs on how to extend internals

CSS

JavaScript

  • Enforce coding standards
  • Use ES6 and ES6 modules (tree shaking support) with Rollup
  • Sourcemaps
  • JSDoc on all classes

Linting

  • Docs for editorconfig
  • Docs for stylelint
  • Docs for ESLint
  • Docs for phpcs

Docs

  • Simple recipes with common usage patterns
@neojp neojp self-assigned this May 2, 2016
@neojp neojp added this to the 0.6.0 milestone May 2, 2016
neojp added a commit that referenced this issue May 3, 2016
- Moving away from Grunt & Babel.
- JavaScript ES2015 and ES2015 modules
- JavaScript sourcemaps
@neojp neojp closed this as completed Jul 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant