jigsaw:tldr:e26c2
The command "jigsaw init" is used to initialize a new Jigsaw project or workspace.
Jigsaw is a static site generator written in PHP that allows you to create and manage websites easily. To start using Jigsaw for a new project, you need to run the "jigsaw init" command.
When you execute "jigsaw init" in your terminal or command prompt, Jigsaw will generate a basic project structure for you. This includes setting up the necessary directories and files required for your Jigsaw-powered website.
The "jigsaw init" command creates the following folders and files in your project directory:
- source folder: This folder contains the source files for your website, like the Markdown files for your pages, and the Blade templates for rendering your web pages.
- config.php file: This file allows you to configure various aspects of your Jigsaw project, such as the destination directory for the generated website, and the utility functions to be used in your templates.
- tasks.php file: This file allows you to define custom tasks that can be executed with the Jigsaw build process.
- bootstrap.php file: This file sets up the Jigsaw environment and includes necessary dependencies.
After running the "jigsaw init" command, you can start adding content to your website by creating Markdown files in the source/_posts directory and editing the Blade templates in the source/_layouts directory.
In summary, the "jigsaw init" command initializes a new Jigsaw project by generating the necessary project structure and files to get started with creating a static website.