From e3f81ebe77df97b770cdfbd8f568d64b1dddfa4c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 22 Jul 2018 23:21:58 +0100 Subject: [PATCH] Move build steps into netlify.toml --- deploy.sh | 21 --------------------- netlify.toml | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 636414ca..00000000 --- a/deploy.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -set -e - -# Build script for deploying on Netlify. -# -# "composer install" and "yarn install" are run automatically, so there's no -# need to add them here. - -# Run the tests to ensure that nothing is broken. -vendor/bin/phpunit - -# Generate the site once with no assets to that PurgeCSS has something to look -# at. -vendor/bin/sculpin generate -e prod - -# Generate the front-end assets. -yarn build - -# Re-generate the again with the assets in the correct location. -vendor/bin/sculpin generate -e prod diff --git a/netlify.toml b/netlify.toml index 01ad5570..12b9a6f6 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] - command = "./deploy.sh" + command = "vendor/bin/sculpin generate -e prod && yarn prod && cp -R source/build output_prod" publish = "output_prod"