npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@weareeight/armada-sync

v1.0.1

Published

A tool to ease syncing theme files and resources on shopify deployment

Downloads

13

Readme

Armada Sync

A utility designed to retrieve and overwrite all template json files for patching a published themes settings to another theme.

This cli surfaces a utility armada-sync or full package @weareeight/armada-sync that takes arguments, finds the published theme, gets a list of files ( settings_data.json and all content in the /templates/ folder) then saves them to a specified path locally.

This is designed to be used in our CI flow, to patch the theme and then overwrite with user controlled data.

Notes:

  • If breaking changes eg setting schema range files these may need manual management
  • If there are non json files in the templates or sub folders and these are amended in the base theme, manual updating of these files will be needed. All template files should be JSON!!!

installation

In theme dev it would be best to install this pacakage either into the theme or install implicitly in the github action.

npm install @weareeight/armada-sync then access from npm scripts in package JSON

Alternately using NPX you can execute and install from latest using

npx --yes @weareeight/armada-sync --ARGS --GO --HERE

Usage

npx @weareeight/armada-sync --shop='something' --token='CustomApDevtoken' --themeFolder='./src/theme'

Arguments

  • --shop='something' this is the store url WITHOUT myshopify.com ( it will try fix it )
  • --token='CustomAppGeneratedKey' Generated through the admin (replaces private app auth)
  • --themeFolder='./src/theme' optional defaults to ./src/theme
  • --themeId='XX' NOT REQUIRED: will pull down from this specific theme ID ---useEnv optional switches the params to dotEnv

Using .env

It is possible to use .env to replace all the arguments pass the cli --useEnv as a flag and add a .env or specify ENV VARS in your CI.

ENV VARS

SHOPIFY_SHOP=shopdomain
SHOPIFY_TOKEN=ShopifyTokenGoesHere

# Optional / not required
SHOPIFY_THEME_FOLDER=./src/theme
SHOPIFY_THEME_ID=not-required

---------------------||||||||||-------------------

Changelog

  • 1.0.0 - add support for section groups