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

@dwadwadwa/sync

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

Install

npm i @dwadwadwa/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:

dwadwadwa-sync sync snippets/header.liquid # file
dwadwadwa-sync sync snippets/ # directory
dwadwadwa-sync unsync snippets/header.liquid

Commands

sync

Sync a file or directory.

dwadwadwa-sync sync snippets/header.liquid # file
dwadwadwa-sync sync snippets/ # directory

unsync

Un-sync a file or directory.

dwadwadwa-sync unsync snippets/header.liquid # file
dwadwadwa-sync unsync snippets/ # directory

API

@dwadwadwa/sync can also be used in node, as it is in @dwadwadwa/cli.

const sync = require('@dwadwadwa/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

  • 2.1.5-alpha.0                                ...           canary (9 months ago)
  • 2.1.4                                ...           latest (9 months ago)

9 Versions

  • 2.1.5-alpha.0                                ...           9 months ago
  • 2.1.4                                ...           9 months ago
  • 2.1.3                                ...           9 months ago
  • 2.1.2-alpha.1                                ...           9 months ago
  • 2.1.2-alpha.0                                ...           9 months ago
  • 2.1.1                                ...           9 months ago
  • 2.1.0                                ...           9 months ago
  • 2.0.2-alpha.4                                ...           9 months ago
  • 2.0.2-alpha.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 9
Last Month 0
Dependencies (12)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |