@slater/themekit
v1.0.2
Published
A subset of @shopify/themekit API written in JavaScript.
Downloads
5
Readme
@slater/themekit
A subset of @Shopify/themekit API written in JavaScript.
Usage
All methods return Promise
s.
First, create an instance:
const themekit = require('@slater/themekit')
const theme = themekit({
password: 'abcde12345',
store: 'slater-demo.myshopify.com',
theme_id: 123456789,
cwd: process.cwd(),
ignore_files: [
'settings_data.json'
]
})
upload
theme.upload('templates/index.liquid', './path/to/file.liquid')
remove
theme.remove('templates/index.liquid')
deploy
Replace all remote theme files with local versions.
theme.deploy()
License
MIT License (c) 2018 Friends of Friends