Note: Make sure your scripts have executable permissions, otherwise Nift will be unable to run them and should throw a build error.
Website-wide scripts should reside in the project root directory in a file to be named as follows:
pre-build.scripts post-build.scripts pre-build-all.scripts post-build-all.scripts pre-build-updated.scripts post-build-updated.scripts pre-serve.scripts post-serve.scripts
#scripts to run before building pages ./"test script.py" ./"test.py" ./test.py python "test this.py" python 'test this.py' curl -sS "https://pastebin.com/raw/1kYKafED"
Page specific scripts should reside in the same directory as the content file for the page in a file to be named as follows:
Each line should have a single script, though you can leave lines blank and any line starting with # will be treated as a comment.