/slater-themekit

A subset of @Shopify/themekit API written in JavaScript.

Primary LanguageJavaScript

@slater/themekit

A subset of @Shopify/themekit API written in JavaScript.

Usage

All methods return Promises.

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