2.0.24 • Published 8 months ago
@ffc-sync/sync v2.0.24
@slater/sync
Sync files between your local machine and a remote Shopify theme.
Install
npm i @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:
slater-sync sync snippets/header.liquid # file
slater-sync sync snippets/ # directory
slater-sync unsync snippets/header.liquid
Commands
sync
Sync a file or directory.
slater-sync sync snippets/header.liquid # file
slater-sync sync snippets/ # directory
unsync
Un-sync a file or directory.
slater-sync unsync snippets/header.liquid # file
slater-sync unsync snippets/ # directory
API
@slater/sync
can also be used in node, as it is in
@slater/cli.
const sync = require('@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
2.0.24
8 months ago
2.0.23
9 months ago
2.0.22
9 months ago
2.0.15
1 year ago
2.0.16
12 months ago
2.0.13
1 year ago
2.0.14
1 year ago
2.0.12
1 year ago
2.0.19
12 months ago
2.0.17
12 months ago
2.0.18
12 months ago
2.0.20
12 months ago
2.0.21
11 months ago
2.0.3
2 years ago
2.0.2
2 years ago
2.0.5
2 years ago
2.0.4
2 years ago
2.0.11
2 years ago
2.0.7
2 years ago
2.0.6
2 years ago
2.0.9
2 years ago
2.0.10
2 years ago
2.0.8
2 years ago
2.0.1
2 years ago
2.0.0
3 years ago
1.0.11
3 years ago
1.0.9
3 years ago
1.0.7
3 years ago