opdavies / sculpin-skeleton
A skeleton Sculpin site.
Installs: 79
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Language:Shell
Requires
- sculpin/sculpin: ^3.0
This package is auto-updated.
Last update: 2024-11-25 19:21:25 UTC
README
A minimal, generic skeleton project for the Sculpin static site generator.
Usage
- Download the project by running
composer create-project opdavies/sculpin-skeleton --no-interaction --no-progress --prefer-dist my-sculpin-site
. - Run
cd my-sculpin-site
to change into the project directory, andcomposer watch
to generate and serve the site. - Start adding content to
source/index.md
. - Add more content, settings, layouts, includes etc as needed.
Scripts
This project includes some custom Composer scripts that you can use rather than running vendor/bin/sculpin
directly, and that include some additional default options.
These are:
composer generate
andcomposer dev
- These generate the site in the development mode.composer watch
- Generates and serves the site in development mode, watching for any changes.composer prod
- Generates the site in production mode.
You can still pass additional options by separating the command and options with --
. For example, running composer watch -- --port=8002
would run the default watch command but also update the server port:
composer watch -- --port=8002
> composer generate -- --server --watch '--port=8002'
> sculpin generate --clean --no-interaction '--server' '--watch' '--port=8002'
Deleting /Users/opdavies/Code/Personal/sculpin-skeleton/output_dev
Detected new or updated files
Generating: 100% (1 sources / 0.00 seconds)
Converting: 100% (1 sources / 0.20 seconds)
Formatting: 100% (1 sources / 0.00 seconds)
Processing completed in 0.27 seconds
Starting Sculpin server for the dev environment with debug true
Development server is running at http://localhost:8002
Quit the server with CONTROL-C.
Notes
- The
posts
content type is disabled by default. Re-enable it if needed by removingenabled: false
fromapp/config/sculpin_kernel.yml
.