monkeyzbox-artist-theme-assets

1.1.0 • Public • Published

Monkeyzbox Artist - theme assets

An NPM package providing the latest assets for use with the Monkeyzbox Artist Wordpress theme, minified and ready for a production environment.

How it works

Monkeyzbox Artist Theme includes this package as a dependancy. The default Gulp task inside the theme copies the production ready assets from this package into an assets directory used by that theme, e.g. themes/mzb-artist/assets

How the assets are included

Scripts

At the bottom of all the HTML in the Monkeyzbox Artist Theme the path to the scripts is defined and the index script is loaded (along with RequireJS).

The following lines are included in base.php:

<script>
  var MZB = {
    PATH_TO_THEME: "/full/path/to/wp-content/themes/mzb-artist/"
  } 
</script>
<script data-main="<?= get_template_directory_uri(); ?>/assets/scripts/main.js" src="<?= get_template_directory_uri(); ?>/assets/scripts/require.js"></script>

Styles

All the CSS is provided via main.css. This file is enqueued by Monkeyzbox Artist theme, and or the child theme.

Source files

The assets are built by a development lab in a private repo: monkeyzbox-artist-theme-development

Package Sidebar

Install

npm i monkeyzbox-artist-theme-assets

Weekly Downloads

12

Version

1.1.0

License

ISC

Last publish

Collaborators

  • ll782