A subset of @Shopify/themekit API written in JavaScript.
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'
]
})
theme.upload('templates/index.liquid', './path/to/file.liquid')
theme.remove('templates/index.liquid')
Replace all remote theme files with local versions.
theme.deploy()
MIT License (c) 2018 Friends of Friends