Update composer scripts

This commit is contained in:
Oliver Davies 2017-10-27 07:39:15 +01:00
parent ee3087fb60
commit 99ca964f70
2 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,7 @@ A skeleton project for the [Sculpin][1] static site generator.
## Usage ## Usage
1. Download the project by running `composer create-project opdavies/sculpin-skeleton --stability dev my-sculpin-site`. 1. Download the project by running `composer create-project opdavies/sculpin-skeleton --stability dev my-sculpin-site`.
1. Run `composer run dev` to generate and serve the site. 1. Run `composer run watch` to generate and serve the site.
1. Start adding content to `source/index.md`. 1. Start adding content to `source/index.md`.
## Notes ## Notes

View file

@ -14,7 +14,9 @@
"sculpin/sculpin": "^2.1@dev" "sculpin/sculpin": "^2.1@dev"
}, },
"scripts": { "scripts": {
"dev": "sculpin generate --server --watch --clean --no-interaction", "dev": "composer run-script generate",
"prod": "sculpin generate --env prod --clean --no-interaction" "generate": "sculpin generate --clean --no-interaction",
"prod": "composer run-script generate -- --env prod",
"watch": "composer run-script --timeout=0 generate -- --server --watch"
} }
} }