Add composer scripts

This commit is contained in:
Oliver Davies 2017-09-19 08:21:19 +01:00
parent 1c23d4afda
commit ee3087fb60
2 changed files with 5 additions and 1 deletions

View file

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

View file

@ -12,5 +12,9 @@
"require": {
"dflydev/embedded-composer": "^1.0@dev",
"sculpin/sculpin": "^2.1@dev"
},
"scripts": {
"dev": "sculpin generate --server --watch --clean --no-interaction",
"prod": "sculpin generate --env prod --clean --no-interaction"
}
}