Skip to content

BGTFW 2.x Build Process

jamesros edited this page Jul 20, 2020 · 1 revision

Starting Point: gulp build gulpfile.js

The BGTFW 2.x build process starts by running 'gulp build'. This starts a process which runs the following gulp tasks.

dist L#115

This task creates the destination folder 'boldgrid-theme-framework'

clean L#120

This task removes unused files from the dist folder

readme, license

readme L#228

This task is apparently supposed to convert the readme.md file into a readme.txt but does not appear to do so.

license L#234

This just copies the license file from the src directory to the destination directory ( this and readme can be included in a simple copy command )

wpTextDomainLint, jsHint, jscs, frameworkJs, svgs, tgm

wpTextDomainLint

This runs an external script: ( yarn run script:wp-textdomain-lint ) to correct textdomains. This could be eliminated by combining Prime + Bgtfw into one repo

jsHint

This uses a gulp linter jshint() to lint the javascript files.

jscs

This uses jscs to do just about the same thing as jshint.

frameworkJs

This is used to minify the js files.

svgs

This moves svgs to the dist directory.

tgm

This runs an external script yarn run script:tgm to install the TGM Plugin Activation Library. Further research needs to be done, but I believe this can be removed. I believe this was added to automatically install certain plugins on theme installation but is no longer being used.

scssDeps, jsDeps, modernizr, fontDeps, phpDeps, frameworkFiles, copyScss

scssDeps

jsDeps

modernizr

fontDeps

phpDeps

frameworkFiles

copyScss

images

scssCompile, bootstrapCompile

fontFamilyCss, patterns

hovers

hoverColors

cleanHovers