Company
Date Published
Author
Davide Borsatto
Word count
1752
Language
English
Hacker News points
None

Summary

This tool promises to bring a Laravel-based approach to the world of PHP static site generators, but it doesn't provide a skeleton project like Sculpin does. Instead, users must create a normal project and add Jigsaw as a dependency before using its CLI. The default directory structure includes a config.php file with a configuration for collections, and a bootstrap.php file that hints at how events work. The tool uses Laravel Mix to handle assets, including Sass, and provides out-of-the-box support for webpack and Babel. Users can create a sample project, explore the default directory structure, and build their site using the Jigsaw CLI or npm's live reload capabilities provided by Browsersync. The tool also allows users to set up a basic blog with Markdown posts and collections, and integrates with Contentful to fetch content on demand. While it has some barebones configuration options, the developer behind Jigsaw is actively working to improve it and has already fixed several issues reported in the process of writing this article.