Skip to content

Instantly share code, notes, and snippets.

@yosymfony
Created September 19, 2019 15:29
Show Gist options
  • Save yosymfony/bf7b80192aa1717b763bdcf45c572935 to your computer and use it in GitHub Desktop.
Save yosymfony/bf7b80192aa1717b763bdcf45c572935 to your computer and use it in GitHub Desktop.
Create a Jigsaw site
name: "Create a Jigsaw site"
extra:
rr:
packages:
"recipe-runner/io-module": "1.0.x-dev"
"recipe-runner/system-module": "1.0.x-dev"
steps:
- name: "Infrastructure"
actions:
- name: "Name of the site"
ask: "Name of the site:"
register: site_name
- name: "Create site directory"
make_dir: "{{current_dir}}/{{registered.get('site_name.response')}}"
- name: "Install Jigsaw"
run:
command: "composer require tightenco/jigsaw"
timeout: null
cwd: "{{current_dir}}/{{registered.get('site_name.response')}}"
- name: "Create site"
actions:
- name: "Starter template: blog, docs"
ask: "Write a starter template:"
register: "template_name"
- name: "Initialize"
run:
command: "./vendor/bin/jigsaw init {{registered.get('template_name.response')}} -q"
cwd: "{{current_dir}}/{{registered.get('site_name.response')}}"
timeout: null
- name: "Summary"
actions:
- write:
- "Go to {{current_dir}}/{{registered.get('site_name.response')}}"
- "run ./vendor/bin/jigsaw build"
- "and php -S 0.0.0.0:8000 -t build_local"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment