node wrapper for Shopify ThemeKit
This is based on node-themekit. I didn't agree with a lot of the ways that package was handling it, so I made my own.
yarn add shopify-themekit
# or npm
npm install --save shopify-themekit
See ThemeKit Docs for full list of commands and options
const themekit = require('shopify-themekit')
const options = {
files: ['assets/file.js', 'assets/file.css'],
ignore: false,
store: '...'
}
// equivalent to:
// theme upload assets/file.js assets/file.css --no-ignore --store=...
themekit('upload', options)
.then(...)
.catch(...)
# arguments passed directly to themekit
theme upload --allenvs