New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@christian-slater/sync

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@christian-slater/sync

shopify theme deployment utility

  • 2.0.1
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

@christian-slater/sync

Sync files between your local machine and a remote Shopify theme.

Install

npm i @christian-slater/sync -g

Getting Started

Create a christian-slater.config.js file, and define one or more themes:

module.exports = {
  themes: {
    development: {
      id: '12345...',
      password: 'abcde...',
      store: 'store-name.myshopify.com',
      ignore: []
    },
    production: { ... }
  }
}

Then, use the CLI to sync or unsync files or directories:

christian-slater-sync sync snippets/header.liquid # file
christian-slater-sync sync snippets/ # directory
christian-slater-sync unsync snippets/header.liquid

Commands

sync

Sync a file or directory.

christian-slater-sync sync snippets/header.liquid # file
christian-slater-sync sync snippets/ # directory
unsync

Un-sync a file or directory.

christian-slater-sync unsync snippets/header.liquid # file
christian-slater-sync unsync snippets/ # directory

API

@christian-slater/sync can also be used in node, as it is in @christian-slater/cli.

const sync = require('@christian-slater/sync')

const theme = sync({
  id: '12345...',
  password: 'abcde...',
  store: 'store-name.myshopify.com',
  ignore: []
})

Methods

sync
// single file
theme.sync('./build/snippets/nav.liquid')

// multiple files
theme.sync([
  './build/snippets/nav.liquid',
  './build/templates/index.liquid'
])

// or a directory
theme.sync([
  './build/snippets/'
])
unsync
theme.unsync([ 'templates/index.liquid' ])

License

MIT License © The Couch

Keywords

FAQs

Package last updated on 22 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc