TeamSubjectMatter / tsm-theme

Starter theme for TSM WordPress projects
0 stars 0 forks source link

Goal Setting #2

Open 0xZakk opened 7 years ago

0xZakk commented 7 years ago

This issue is for us to create a team wishlist of things to discuss adding to the base theme. Please provide each of the following with any submissions:

  1. A title/short description
  2. A short 3-4 sentence description of the feature and why it should be included
  3. Links to any samples or documentation for how this feature has been implemented elsewhere
0xZakk commented 7 years ago

Build a styleguide as part of the gulp build process.

It would be really cool if we could automate building a styleguide from our scss as part of the build process. There are many tools that will take comments in the scss files and turn those into nicely formatted styleguides with custom themes. Doing this would allow us to implement styleguides as part of handoff from design to dev.

http://sassdoc.com/

0xZakk commented 7 years ago

Generating page or template specific js bundles.

It would be great if we could organize our JS so that we could have page or template specific JS bundles. For Rhombus, we bundled all the JS into a single file that contains modules, 1 to fire on every page and 1 to fire on a specific page. We could take the next step and split these out into multiple files so that the JS file that is loaded on each page only contains the module that needs to fire on every page and then the specific module for that page. This would make each JS file much smaller and increase page load times and time to first interactivity

https://fettblog.eu/gulp-browserify-multiple-bundles/

0xZakk commented 7 years ago

CSS Linting

It could be super cool if we linted CSS according to a style guide, using one of the tools outlined in this article to automatically enforce style guide rules.