File info: autotune build
KavyaSukumar edited this page
·
1 revision
Pages 22
- Home
- Blueprint tutorial (Step 1): Intializing your project
- Blueprint tutorial (Step 2): Add carousel code
- Blueprint tutorial (Step 3): Making your project a blueprint
- Contribution guidelines
- Converting an existing project to a blueprint
- Creating dummy data for blueprints
- Dependencies
- Example blueprints
- File info: autotune build
- File info: autotune config.json
- Getting Autotune data into apps
- Getting started
- How does Autotune work?
- How does it work?
- How to create a blueprint
- Pym.js Tips & Tricks
- Reporting bugs
- setup
- Troubleshooting
- Using a blueprint
- xcvcxcx
- Show 7 more pages…
autotune-build is an executable file that builds the static site. Usually a shell script, but could be python, ruby or whatevs.
It should...
- Read the data from
/dev/stdin. - Make the configuration data available to the project.
- Build the project.
Configuration is available to this file via standard input. Eg: DATA=$(</dev/stdin)
Make sure that the file has execution permission.
chmod +x autotune-buildExample Middleman blueprint build file
#!/bin/bash
BUILD_COMMAND="bundle exec middleman build"
INPUT_DATA=$(</dev/stdin)
SAVE_DATA_TO=data/autotune.json
echo "Saving autotune data to $SAVE_DATA_TO"
mkdir -p `dirname $SAVE_DATA_TO`
echo "$INPUT_DATA" > $SAVE_DATA_TO
$BUILD_COMMAND