@christian-slater/sync
shopify theme deployment utility
Last updated 9 months ago by christian-slater .
MIT · Original npm · Tarball · package.json
$ cnpm install @christian-slater/sync 
SYNC missed versions from official npm registry.

@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 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

Current Tags

  • 3.0.2-alpha.1                                ...           canary (9 months ago)
  • 3.1.4                                ...           latest (9 months ago)

10 Versions

  • 3.1.4                                ...           9 months ago
  • 3.1.3                                ...           9 months ago
  • 3.1.2                                ...           9 months ago
  • 3.1.0                                ...           9 months ago
  • 3.0.2                                ...           9 months ago
  • 3.0.2-alpha.1                                ...           9 months ago
  • 3.0.2-alpha.0                                ...           9 months ago
  • 2.0.2-alpha.0                                ...           9 months ago
  • 2.0.1                                ...           9 months ago
  • 2.0.1-alpha.1                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 10
This Month 10
Last Day 10
Last Week 0
Last Month 10
Dependencies (12)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |