-
Notifications
You must be signed in to change notification settings - Fork 6
Atlas Shopify Blueprint Developer Notes
Ross Maguire edited this page Jun 1, 2023
·
4 revisions
The Atlas Shopify Blueprint stores configuration in an Atlas Content Modeler Blueprint zip file.
These files are exported from a WordPress installation where the Atlas Content Modeler plugin is installed using WP-CLI:
-
wp acm blueprint exportgenerates the zip file to save the state of the WP site. -
wp acm blueprint import [path-or-url]imports a zip file to restore the WP site state.
The acm-blueprint.zip file in the repo root is fetched by Local and Atlas when creating new sites based on this blueprint.
To update the blueprint:
- Create a fresh site in Local or your favourite dev environment.
- Choose “Open Site Shell” to open a terminal and run WP CLI commands.
- Install required plugins:
wp plugin install --activate atlas-content-modeler faustwp wp-graphql - Clear default posts and pages:
wp acm reset --yes --all - Import the current shopify blueprint directly from the main branch:
wp acm blueprint import https://github.com/wpengine/atlas-shopify-blueprint/raw/main/acm-blueprint.zip - Make any changes to your WordPress site manually.
- Make the new template:
wp acm blueprint export --open --min-wp=5.9.2 --min-acm=0.15.0 --wp-options=category_base,permalink_structure,nav_menu_options,theme_mods_twentytwentythree,current_theme,stylesheet,template,page_on_front,show_on_front --post-types=nav_menu_item,page - Replace the
acm-blueprint.zipfile in this repo with the one that opens in the Finder window. - Commit your changes.
- Copy the local path to your blueprint zip file. (On macOS, select the file in the Finder and press ⌘C to copy the path to your clipboard.)
- In WP-CLI, run
wp acm blueprint import [path you copied in step 1]