The scripts in package.json
cover most front-end development tasks:
theme
: Compiles the common CSS for the theme's structurebase
: Compiles all Styles if the base changesstyles
: Compiles Style if it changesprint
: Compiles Print-CSScss
: Run all of the above at oncescripts:babel
: Compile JS with Babelscripts:watch
: Watch and compile JS with Parcelscripts:build
: Compile JS with Parceltest
: Test front-end accessibility with Cypress
All of these requires development-packages being installed through npm install
. PostCSS is used for compiling all CSS. Source for CSS- and JS-files are in /src
.
This plugin follows PSR-1, PSR-2, and PEAR coding standards (use CodeSniffer), as well as PSR-4.
As demonstrated by the API-options, you can fairly easily extend the PHP-behavior of the plugin. Extensions to the theme's API must use the namespace Grav\Theme\Scholar
.
Your Theme or Skeleton can extend or copy from the blueprints in /blueprints/partials
to create custom blueprints.