All Versions
8
Latest Version
Avg Release Cycle
46 days
Latest Release
406 days ago

Changelog History

  • v1.5.0 Changes

    October 21, 2020

    ๐Ÿš€ This is a pretty big release for Cleaver, the following changes and additions have been added:

    • ๐Ÿ“œ Markdown is now compiled with parsedown-extra, giving you the ability to add things like class names easily to your content
    • ๐Ÿ— The command php cleaver has been replaced with php cleaver build, and the CLI system has been overhauled to use Symfony's Console Command component
    • ๐Ÿ— You can specify single pages to build by referencing either the content item or the output path in the build command (e.g. php cleaver build posts/2020/test-post.json)
    • The entire site's content files are imported under a $cleaver variable as a Laravel collection, giving you the ability to sort, filter, and loop through parts of your site's content for things like article category pages
    • ๐Ÿ‘€ External JSON files can now be imported into content by storing them in a resources/data directory and then referencing their path in your content file's JSON (see hello-world.json for an example of this)
    • External URLs that return JSON can be imported into content by adding them under any heading in your content's JSON file, as long as the url is prepended with json:
    • ๐Ÿ’ป The BrowserSync feature has been modified to work alongside webpack-dev-server, running npm run watch will spin up that server on port :8080 while the hot-reload version of your site will be available at port :3000
    • ๐Ÿ— By default, tailwind's build-in purge system has been added in to remove any unused classes from the rendered CSS. This can be disabled by clearing out the purge array in tailwind.config.js
    • โœ… The path variable can be excluded from JSON and Markdown files, and will auto-generate based on the location and filename of your content files. For example, a file at resources/content/posts/2020/test.json will render at example.com/posts/2020/test
    • ๐Ÿ’… The CLI output shown while building a site has been updated for both style and substance. Error messages, build times, and runtime hints are more clear and helpful
  • v1.4.2 Changes

    August 15, 2020

    โšก๏ธ Updates package.json dependencies.

  • v1.4.1 Changes

    March 27, 2020

    โšก๏ธ Updates conflict with markdown $content variable and new Collection added in 1.4. Changes markdown content variable to $body.

  • v1.4.0 Changes

    March 27, 2020
    • ๐Ÿ“ฆ Uses the Symfony Finder package in FileEngine->getContentFiles() instead of scandir. This enables recursive directory searching, ignoring dotfiles, and filtering out just json and markdown files all in one line.
    • โž• Adds a basePath variable to the main Cleaver class, enabling nested or differently-organized codebases to access the content/dist directories by modifying a single line.
    • โž• Adds a $content variable to every single view, containing a Collection (via the tightenco/collect package) that contains all content across the entire site. Allows you to filter/map/sort pages and content previews for something like a latests posts page.
  • v1.3.0 Changes

    December 23, 2019

    โšก๏ธ Updates Laravel Mix to the latest version.

  • v1.2.0 Changes

    December 14, 2019

    โž• Adds new initial/demo page layout and content.

  • v1.1.0 Changes

    December 07, 2019

    Modified FileEngine to use Symfony's Filesystem component.

  • v1.0.0 Changes

    December 06, 2019

    ๐ŸŽ‰ Initial release!