wet-boew-styleguide icon indicating copy to clipboard operation
wet-boew-styleguide copied to clipboard

Minimum distribution

Open PaulCormier opened this issue 7 years ago • 6 comments
trafficstars

I'm looking for guidance on the minimum set of files needed from the Production Files archives available on the Downloads page. Specifically, when using the GCWeb theme, which subfolders are required and which are just part of the documentation and content examples pages?

Am I correct in assuming that the following is sufficent, and the correct structure?

  • /
    • ajax (Only if you are loading static content via data-ajax.)
    • assets
    • css
      • polyfills
    • fonts
    • js (Only the .min files)
      • deps
      • i18n (Just the languages you support?)
      • jquery (If you're not using the Google CDN.)
      • MathJax (Is this needed if you aren't using MathML?)
      • polyfills

PaulCormier avatar Nov 09 '18 13:11 PaulCormier

Alternatively, how about this structure:

  • /
    • wet-boew
      • assets
      • css
        • polyfills
      • fonts
      • js (Only the .min files)
        • deps
        • i18n (Just the languages you support?)
        • jquery (If you're not using the Google CDN.)
        • MathJax (Is this needed if you aren't using MathML?)
        • polyfills
    • GCWeb
      • assets
      • css (Only the .min files)
      • fonts
      • js (Only the .min files)

PaulCormier avatar Nov 09 '18 16:11 PaulCormier

For all our projects, we take two folders out of the downloads (the WET folder and the theme folder, like your second example):

In your case, with the GCWeb theme:

  1. \themes-dist-4.0.29-gcweb\wet-boew
  2. \themes-dist-4.0.29-gcweb\GCWeb

It's been noted that there is duplication in the folders: https://github.com/wet-boew/wet-boew/issues/7968.

RobJohnston avatar Nov 09 '18 17:11 RobJohnston

The CDTS uses the same as your first example. @duboisp wouldn't it be nice is there was a grunt task that just spits out those files? @nschonni I think we talked about this before. grunt slim or something.

shawnthompson avatar Nov 13 '18 14:11 shawnthompson

You can use the CDN download available in the GCWeb release here: https://github.com/wet-boew/GCWeb/releases

For example: themes-cdn-4.0.29-gcweb.zip

duboisp avatar Nov 13 '18 16:11 duboisp

Lots of options. Thank you! I think I'm wrapping my head around it now.

PaulCormier avatar Nov 13 '18 18:11 PaulCormier

@duboisp that doesn't solve what I'm looking for... I want a grunt task that doesn't do the example html files or any of the other folders not needed to run WET.

shawnthompson avatar Nov 13 '18 19:11 shawnthompson